Implement a new macro LST_NEXT which is like Lst_Succ but doesn't check

for its argument to be non-NULL.
This commit is contained in:
Hartmut Brandt 2005-03-09 16:53:31 +00:00
parent 0d037244ba
commit a2e5fa0890

View File

@ -143,6 +143,7 @@ void Lst_Concat(Lst *, Lst *, int);
? (LST)->lastPtr : NULL)
/* Return successor to given element */
#define Lst_Succ(NODE) (((NODE) == NULL) ? NULL : (NODE)->nextPtr)
#define LST_NEXT(NODE) ((NODE)->nextPtr)
/* Get datum from LstNode */
#define Lst_Datum(NODE) ((NODE)->datum)