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


On Fri, 2005-06-17 at 11:43 +0300, Theodoros V. Kalamatianos wrote:
> I was trying to compile the rgrep utility from the latest jed prerelease 
> and encountered a series of errors such as:
> 
> src/rgrep.c:364: error: invalid use of incomplete typedef `SLRegexp_Type'
> src/rgrep.c:377: error: invalid use of incomplete typedef `SLsearch_Type'
> 
> A quick look in the slang-2.0.3 tarball showed that, for example,  the 
> definition of SLRegexp_Type is in slang.h:
> 
> typedef struct _pSLRegexp_Type SLRegexp_Type;
> 
> ...but the struct _pSLRegexp_Type is defined in a .c file, therefore 
> resulting in an incomplete definition. There must be several errors of 
> this type in slang.h. I believe that the struct definitions should be 
> moved to slang.h to fix this and achieve maximum compatibility. I'd really 
> like to have this fixed in the next slang release...

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.

-- 
Regards,
Pavel Roskin


_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]