slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] incomplete typedefs in slang.h


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]