structs called by reference only
Klaus Schilling (klaus@pessoa.none)
Fri, 31 Oct 1997 10:56:31 +0100 (MET)
While trying to wrap ncurses, I wonder if it is necessary to define the struct
WINDOW as scheme object. The library functions themselves only call and return
pointers to WINDOW -objects. My first approach is to hide that struct from
the interface at all and just cast pointers into integers and back before
applying libguile's conversion functions, or let g-wrap do that for me.
But I know that the SCM-ncurses-interface of J.Leveling creates windows as
scheme objects. So is there a flaw in the former naive approach which hides
structs that are called by reference only from the interface-file ?
Klaus Schilling