HAVE_IMMEDIATE_STRUCTURES and splint

andreas moroder claudiamoroder at st-ulrich.suedtirol.net
Sat Feb 9 01:41:39 GMT 2002


Hello,

as I wrote few weeks ago I am trying to catch errors in samba using splint ( 
and I found ). 

The problem is that splint does not like very much the definition  of NTSTATUS

typedef struct {uint32 v;} NTSTATUS.

Would it be possible to change the creation of config.h this way

#ifdef _SPLINT_
#undef HAVE_IMMEDIATE_STRUCTURES
#else
#define HAVE_IMMEDIATE_STRUCTURES 1
#end if

naturaly only for the case the compiler accepts immediate structures.

When splint finds this construct it stops to parse the rest of the source.

Bye

Andreas




More information about the samba-technical mailing list