diff options
author | Hartmut Brandt <harti@FreeBSD.org> | 2005-03-09 16:53:31 +0000 |
---|---|---|
committer | Hartmut Brandt <harti@FreeBSD.org> | 2005-03-09 16:53:31 +0000 |
commit | a2e5fa0890165eaa948138e1fa9e6427d14256e6 (patch) | |
tree | 2490e9131d935dc0f2a7e599fd8a5245f5795d9e /usr.bin/make/lst.h | |
parent | 0d037244baed79d855c0313413f2754753f483fc (diff) | |
download | src-a2e5fa0890165eaa948138e1fa9e6427d14256e6.tar.gz src-a2e5fa0890165eaa948138e1fa9e6427d14256e6.zip |
Implement a new macro LST_NEXT which is like Lst_Succ but doesn't check
for its argument to be non-NULL.
Notes
Notes:
svn path=/head/; revision=143328
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 76535cc81f5a..b6b57a0ad3c4 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) |