[slang-users] incomplete typedefs in slang.h

Theodoros V. Kalamatianos thkala at softlab.ece.ntua.gr
Fri Jun 17 04:43:08 EDT 2005


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


Cheers,

Theodoros




More information about the slang-users-l mailing list