chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Define flags with macros, to ensure unsignedness.
[mLib]
/
crc-mktab.c
diff --git
a/crc-mktab.c
b/crc-mktab.c
index def53613df0b431b691bf9a45d0e1408e2de8586..a3ba4301486b7a835a847316cb18cdae0c24d8b4 100644
(file)
--- a/
crc-mktab.c
+++ b/
crc-mktab.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: crc-mktab.c,v 1.
2 2000/10/08 11:07:2
1 mdw Exp $
+ * $Id: crc-mktab.c,v 1.
3 2001/01/20 12:06:0
1 mdw Exp $
*
* Build CRC tables
*
*
* Build CRC tables
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: crc-mktab.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: crc-mktab.c,v $
+ * Revision 1.3 2001/01/20 12:06:01 mdw
+ * Define flags with macros, to ensure unsignedness.
+ *
* Revision 1.2 2000/10/08 11:07:21 mdw
* With no arguments, give an error rather than spewing a big table at the
* user.
* Revision 1.2 2000/10/08 11:07:21 mdw
* With no arguments, give an error rather than spewing a big table at the
* user.
@@
-66,11
+69,9
@@
static const char *type = 0;
static const char *inc = 0;
static FILE *fp;
static const char *inc = 0;
static FILE *fp;
-enum {
- f_bogus = 1,
- f_ctab = 2,
- f_reverse = 4
-};
+#define f_bogus 1u
+#define f_ctab 2u
+#define f_reverse 4u
#define BSCOL 72
#define BSCOL 72