summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2003-11-16 18:46:46 +0000
committerColin Watson <cjwatson@debian.org>2003-11-16 18:46:46 +0000
commit885ae4915d1e4963166d4484f23761e1b720cace (patch)
tree30d60d72b12792436042ac946b0c3e6eb07245ba /include
parent8dffec249de727cc235ba846cee2d3fe7e21da74 (diff)
* include/manconfig.h.in (CTYPE): New macro to help get <ctype.h>
calls right. * libdb/db_lookup.c (name_to_key): Use it. * src/globbing.c (parse_layout, look_for_file): Likewise. * src/man.c (manopt_to_env, main): Likewise. * src/manp.c (add_to_dirlist): Likewise. * src/ult_src.c (ult_softlink, test_for_include): Likewise. * src/whatis.c (lower, match, word_fnmatch): Likewise.
Diffstat (limited to 'include')
-rw-r--r--include/manconfig.h.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/manconfig.h.in b/include/manconfig.h.in
index 662b85d9..184f0dad 100644
--- a/include/manconfig.h.in
+++ b/include/manconfig.h.in
@@ -360,6 +360,11 @@ extern char *program_name; /* the basename of the program (as called) */
#define STREQ(a,b) (strcmp(a,b) == 0)
#define STRNEQ(a,b,d) (strncmp(a,b,d) == 0)
+/* Functions in <ctype.h> require their argument to be either an unsigned
+ * char promoted to int or EOF. This macro helps get that right.
+ */
+#define CTYPE(func,arg) (func((unsigned char)(arg)))
+
/* FSSTND directories */
#define CAT_ROOT "/var/catman" /* required by fsstnd() */
#define MAN_ROOT "/usr" /* required by fsstnd() */