summaryrefslogtreecommitdiff
path: root/sym.c
diff options
context:
space:
mode:
authorvern <vern>1990-01-15 17:49:14 +0000
committervern <vern>1990-01-15 17:49:14 +0000
commit48f18bf70ce2c62874b7bea6a590de2a47431922 (patch)
tree924c22742e001435bebbdc04e91dbe68c11456fe /sym.c
parent6f88d2f4eea6916a73a9bfbff1d54fa6efe90f30 (diff)
downloadflex-48f18bf70ce2c62874b7bea6a590de2a47431922.tar.gz
Unsigned char support.
2.2 Release.
Diffstat (limited to 'sym.c')
-rw-r--r--sym.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/sym.c b/sym.c
index cbe335e..9bc277d 100644
--- a/sym.c
+++ b/sym.c
@@ -31,7 +31,7 @@ static char copyright[] =
static char CR_continuation[] = "@(#) All rights reserved.\n";
static char rcsid[] =
- "@(#) $Header: /cvsroot/flex/flex/sym.c,v 2.0 1989/06/20 15:50:17 vern Exp $ (LBL)";
+ "@(#) $Header: /cvsroot/flex/flex/sym.c,v 2.1 1990/01/15 17:49:14 vern Exp $ (LBL)";
#endif
@@ -108,22 +108,22 @@ int table_size;
/* cclinstal - save the text of a character class
*
* synopsis
- * char ccltxt[];
+ * Char ccltxt[];
* int cclnum;
* cclinstal( ccltxt, cclnum );
*/
cclinstal( ccltxt, cclnum )
-char ccltxt[];
+Char ccltxt[];
int cclnum;
{
/* we don't bother checking the return status because we are not called
* unless the symbol is new
*/
- char *copy_string();
+ Char *copy_unsigned_string();
- (void) addsym( copy_string( ccltxt ), (char *) 0, cclnum,
+ (void) addsym( (char *) copy_unsigned_string( ccltxt ), (char *) 0, cclnum,
ccltab, CCL_HASH_SIZE );
}
@@ -131,16 +131,16 @@ int cclnum;
/* ccllookup - lookup the number associated with character class text
*
* synopsis
- * char ccltxt[];
+ * Char ccltxt[];
* int ccllookup, cclval;
* cclval/0 = ccllookup( ccltxt );
*/
int ccllookup( ccltxt )
-char ccltxt[];
+Char ccltxt[];
{
- return ( findsym( ccltxt, ccltab, CCL_HASH_SIZE )->int_val );
+ return ( findsym( (char *) ccltxt, ccltab, CCL_HASH_SIZE )->int_val );
}
@@ -206,17 +206,20 @@ int hash_size;
/* ndinstal - install a name definition
*
* synopsis
- * char nd[], def[];
+ * char nd[];
+ * Char def[];
* ndinstal( nd, def );
*/
ndinstal( nd, def )
-char nd[], def[];
+char nd[];
+Char def[];
{
char *copy_string();
+ Char *copy_unsigned_string();
- if ( addsym( copy_string( nd ), copy_string( def ), 0,
+ if ( addsym( copy_string( nd ), (char *) copy_unsigned_string( def ), 0,
ndtbl, NAME_TABLE_HASH_SIZE ) )
synerr( "name defined twice" );
}
@@ -230,11 +233,11 @@ char nd[], def[];
* def/NULL = ndlookup( nd );
*/
-char *ndlookup( nd )
+Char *ndlookup( nd )
char nd[];
{
- return ( findsym( nd, ndtbl, NAME_TABLE_HASH_SIZE )->str_val );
+ return ( (Char *) findsym( nd, ndtbl, NAME_TABLE_HASH_SIZE )->str_val );
}