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:
parent
0d037244ba
commit
a2e5fa0890
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user