diff options
-rw-r--r-- | src/flexdef.h | 4 | ||||
-rw-r--r-- | src/scan.l | 4 | ||||
-rw-r--r-- | src/sym.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/flexdef.h b/src/flexdef.h index ed65f05..d879d92 100644 --- a/src/flexdef.h +++ b/src/flexdef.h @@ -991,10 +991,10 @@ extern void set_input_file(char *); /* from file sym.c */ /* Save the text of a character class. */ -extern void cclinstal(unsigned char[], int); +extern void cclinstal(char[], int); /* Lookup the number associated with character class. */ -extern int ccllookup(unsigned char[]); +extern int ccllookup(char[]); extern void ndinstal(const char *, unsigned char[]); /* install a name definition */ extern unsigned char *ndlookup(const char *); /* lookup a name definition */ @@ -628,7 +628,7 @@ M4QEND "]]" * The reason it was disabled is so yacc/bison can parse * ccl operations, such as ccl difference and union. */ - && (cclval = ccllookup( (unsigned char *) nmstr )) != 0 ) + && (cclval = ccllookup( nmstr )) != 0 ) { if ( input() != ']' ) synerr( _( "bad character class" ) ); @@ -642,7 +642,7 @@ M4QEND "]]" /* We fudge a bit. We know that this ccl will * soon be numbered as lastccl + 1 by cclinit. */ - cclinstal( (unsigned char *) nmstr, lastccl + 1 ); + cclinstal( nmstr, lastccl + 1 ); /* Push back everything but the leading bracket * so the ccl can be rescanned. @@ -111,7 +111,7 @@ static int addsym (char sym[], char *str_def, int int_def, hash_table table, int /* cclinstal - save the text of a character class */ -void cclinstal (unsigned char ccltxt[], int cclnum) +void cclinstal (char ccltxt[], int cclnum) { /* We don't bother checking the return status because we are not * called unless the symbol is new. @@ -127,9 +127,9 @@ void cclinstal (unsigned char ccltxt[], int cclnum) * Returns 0 if there's no CCL associated with the text. */ -int ccllookup (unsigned char ccltxt[]) +int ccllookup (char ccltxt[]) { - return findsym ((char *) ccltxt, ccltab, CCL_HASH_SIZE)->int_val; + return findsym (ccltxt, ccltab, CCL_HASH_SIZE)->int_val; } |