summaryrefslogtreecommitdiff
path: root/dfa.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:18:27 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:18:27 +0300
commite1ef22d366abd1f9ec95eb495c727d55181c8584 (patch)
treecc0fee624202820eb928e60b6a096362c85ff807 /dfa.h
parentcae8bc6ced84c12590e3554a06a952283735363a (diff)
downloadgawk-e1ef22d366abd1f9ec95eb495c727d55181c8584.tar.gz
Move to 2.15.gawk-2.15
Diffstat (limited to 'dfa.h')
-rw-r--r--dfa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/dfa.h b/dfa.h
index b4869808..65fc4956 100644
--- a/dfa.h
+++ b/dfa.h
@@ -175,13 +175,17 @@ what you give them. Help stamp out software-hoarding! */
#endif
/* Number of bits in an unsigned char. */
+#ifndef CHARBITS
#define CHARBITS 8
+#endif
/* First integer value that is greater than any character code. */
#define _NOTCHAR (1 << CHARBITS)
/* INTBITS need not be exact, just a lower bound. */
+#ifndef INTBITS
#define INTBITS (CHARBITS * sizeof (int))
+#endif
/* Number of ints required to hold a bit for every character. */
#define _CHARSET_INTS ((_NOTCHAR + INTBITS - 1) / INTBITS)