summaryrefslogtreecommitdiff
path: root/make.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-08-25 21:39:28 +0000
committerPaul Smith <psmith@gnu.org>1999-08-25 21:39:28 +0000
commitb134da55059775759b6e2d1ab8d6425033c3834a (patch)
tree84397021e8aee4f343da2b08c22ac3d6043789e4 /make.h
parentd0b03e9355d18a6e035c3ee2e7f0ba895739ab28 (diff)
downloadgunmake-b134da55059775759b6e2d1ab8d6425033c3834a.tar.gz
* A few cleanups, and 3.77.94 release.3.77.94
Diffstat (limited to 'make.h')
-rw-r--r--make.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/make.h b/make.h
index b25318b..a50334f 100644
--- a/make.h
+++ b/make.h
@@ -299,6 +299,17 @@ extern char *alloca ();
# endif /* HAVE_ALLOCA_H. */
#endif /* GCC. */
+/* ISDIGIT offers the following features:
+ - Its arg may be any int or unsigned int; it need not be an unsigned char.
+ - It's guaranteed to evaluate its argument exactly once.
+ NOTE! Make relies on this behavior, don't change it!
+ - It's typically faster.
+ Posix 1003.2-1992 section 2.5.2.1 page 50 lines 1556-1558 says that
+ only '0' through '9' are digits. Prefer ISDIGIT to isdigit() unless
+ it's important to use the locale's definition of `digit' even when the
+ host does not conform to Posix. */
+#define ISDIGIT(c) ((unsigned) (c) - '0' <= 9)
+
#ifndef iAPX286
# define streq(a, b) \
((a) == (b) || \