diff options
author | will <will@FreeBSD.org> | 2001-01-21 08:24:41 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-01-21 08:24:41 +0000 |
commit | 9e75a55e4ba3ce9b7eec70c9fa00d439225321c5 (patch) | |
tree | 3097cea8ddb0d8ead53f36053c2949d7d4c5bdb1 /usr.bin/make/make.h | |
parent | dd1ea82faf371a2bb93353a5b494e8b04c429427 (diff) | |
download | FreeBSD-src-9e75a55e4ba3ce9b7eec70c9fa00d439225321c5.zip FreeBSD-src-9e75a55e4ba3ce9b7eec70c9fa00d439225321c5.tar.gz |
Fix style(9) bug; use ISDOT[DOT,]() macro available in util.c by moving
it to make.h so both dir.c and util.c can use it, although bde didn't
particularly like this part of the idea, IMO it's cleaner than it was.
Submitted by: bde
Diffstat (limited to 'usr.bin/make/make.h')
-rw-r--r-- | usr.bin/make/make.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/make/make.h b/usr.bin/make/make.h index 003663b..81aabcb 100644 --- a/usr.bin/make/make.h +++ b/usr.bin/make/make.h @@ -365,6 +365,8 @@ extern int debug; #endif /* __STDC__ */ #define DEBUG(module) (debug & CONCAT(DEBUG_,module)) +#define ISDOT(c) ((c)[0] == '.' && (((c)[1] == '\0') || ((c)[1] == '/'))) +#define ISDOTDOT(c) ((c)[0] == '.' && ISDOT(&((c)[1]))) /* * Since there are so many, all functions that return non-integer values are |