[slang-users] incomplete typedefs in slang.h

Theodoros V. Kalamatianos thkala at softlab.ece.ntua.gr
Fri Jun 17 11:40:51 EDT 2005


On Fri, 17 Jun 2005, Pavel Roskin wrote:

> Maybe the structures are hidden for a reason?  See, they even start with
> underscore, which means they are private.  Perhaps you should only use
> pointers to the opaque types without trying to dereference or allocate
> them.

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. 
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).

> Regards,
> Pavel Roskin

Cheers,

Theodoros Kalamatianos




More information about the slang-users-l mailing list