diff options
author | harti <harti@FreeBSD.org> | 2005-03-09 16:53:31 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-03-09 16:53:31 +0000 |
commit | ba42fcc40975c92b3a0c87a413d1966d49ea5eca (patch) | |
tree | 2490e9131d935dc0f2a7e599fd8a5245f5795d9e /usr.bin/make/lst.h | |
parent | bb218a7c0265f4eb84b468f06e32761b0adb5ba3 (diff) | |
download | FreeBSD-src-ba42fcc40975c92b3a0c87a413d1966d49ea5eca.zip FreeBSD-src-ba42fcc40975c92b3a0c87a413d1966d49ea5eca.tar.gz |
Implement a new macro LST_NEXT which is like Lst_Succ but doesn't check
for its argument to be non-NULL.
Diffstat (limited to 'usr.bin/make/lst.h')
-rw-r--r-- | usr.bin/make/lst.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/make/lst.h b/usr.bin/make/lst.h index 76535cc..b6b57a0 100644 --- a/usr.bin/make/lst.h +++ b/usr.bin/make/lst.h @@ -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) |