[slang-users] incomplete typedefs in slang.h
John E. Davis
davis at space.mit.edu
Fri Jun 17 13:38:11 EDT 2005
Theodoros V. Kalamatianos <thkala at softlab.ece.ntua.gr> wrote:
>I checked the struct definition. At least _pSLRegexp_Type is meant to be
>passed as a function argument, so it must be set by the calling routine.
It must be created by a call to SLregexp_compile. The resulting
opaque pointer can be passed to the other SLregexp routines. When
finished with it, call SLregexp_free.
> Therefore its definition has to be public. On the other hand if these
> structs are meant to be internal, then slang.h should be edited to remove
> all references to them. IMHO, having references to private interfaces in a
> public header is a Bad Thing(tm).
Exposing the fields to such objects would be a Bad Thing. Opaque
pointers are Good Things.
--John
More information about the slang-users-l
mailing list