summaryrefslogtreecommitdiff
path: root/src/ecs.c
diff options
context:
space:
mode:
authorMightyjo <mightyjo@gmail.com>2015-11-27 21:38:23 -0500
committerWill Estes <westes575@gmail.com>2015-11-29 17:20:22 -0500
commita97cf48486226d538797ef721c62a80b9327c43f (patch)
tree9744e98330df3c31dbeced82f7ad128bb5268221 /src/ecs.c
parent45db9033fefa30cdc263db6ede60807da7da89c5 (diff)
Replaced CHAR macro with unsigned char type.
Thanks to Michael McConville for pointing out that the old Char macro causes problems with static analysis. The macro has been removed and replaced with 'unsigned char' throughout the flex sources. The macro is not needed at best and was confusing at worst. It was not used in any of the example files nor was it mentioned in the manual at all.
Diffstat (limited to 'src/ecs.c')
-rw-r--r--src/ecs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ecs.c b/src/ecs.c
index 9250fe3..b2afc1f 100644
--- a/src/ecs.c
+++ b/src/ecs.c
@@ -99,9 +99,9 @@ int cre8ecs (int fwd[], int bck[], int num)
/* mkeccl - update equivalence classes based on character class xtions
*
* synopsis
- * Char ccls[];
+ * unsigned char ccls[];
* int lenccl, fwd[llsiz], bck[llsiz], llsiz, NUL_mapping;
- * void mkeccl( Char ccls[], int lenccl, int fwd[llsiz], int bck[llsiz],
+ * void mkeccl( unsigned char ccls[], int lenccl, int fwd[llsiz], int bck[llsiz],
* int llsiz, int NUL_mapping );
*
* ccls contains the elements of the character class, lenccl is the
@@ -111,7 +111,7 @@ int cre8ecs (int fwd[], int bck[], int num)
* NUL_mapping is the value which NUL (0) should be mapped to.
*/
-void mkeccl (Char ccls[], int lenccl, int fwd[], int bck[], int llsiz, int NUL_mapping)
+void mkeccl (unsigned char ccls[], int lenccl, int fwd[], int bck[], int llsiz, int NUL_mapping)
{
int cclp, oldec, newec;
int cclm, i, j;