- Subject: Re: [slang-users] incomplete typedefs in slang.h
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Fri, 17 Jun 2005 13:38:11 -0400
Theodoros V. Kalamatianos <thkala@xxxxxxxxxxxxxxxxxxx> 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
_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]