=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/sym.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/lex/sym.c 2001/06/17 07:30:42 1.4 +++ src/usr.bin/lex/sym.c 2001/11/19 19:02:14 1.5 @@ -1,4 +1,4 @@ -/* $OpenBSD: sym.c,v 1.4 2001/06/17 07:30:42 deraadt Exp $ */ +/* $OpenBSD: sym.c,v 1.5 2001/11/19 19:02:14 mpech Exp $ */ /* sym - symbol table routines */ @@ -28,14 +28,14 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -/* $Header: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/sym.c,v 1.4 2001/06/17 07:30:42 deraadt Exp $ */ +/* $Header: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/sym.c,v 1.5 2001/11/19 19:02:14 mpech Exp $ */ #include "flexdef.h" /* declare functions that have forward references */ -int hashfunct PROTO((register char[], int)); +int hashfunct PROTO((char[], int)); struct hash_entry *ndtbl[NAME_TABLE_HASH_SIZE]; @@ -51,16 +51,16 @@ */ int addsym( sym, str_def, int_def, table, table_size ) -register char sym[]; +char sym[]; char *str_def; int int_def; hash_table table; int table_size; { int hash_val = hashfunct( sym, table_size ); - register struct hash_entry *sym_entry = table[hash_val]; - register struct hash_entry *new_entry; - register struct hash_entry *successor; + struct hash_entry *sym_entry = table[hash_val]; + struct hash_entry *new_entry; + struct hash_entry *successor; while ( sym_entry ) { @@ -130,7 +130,7 @@ /* findsym - find symbol in symbol table */ struct hash_entry *findsym( sym, table, table_size ) -register char sym[]; +char sym[]; hash_table table; int table_size; { @@ -139,7 +139,7 @@ (struct hash_entry *) 0, (struct hash_entry *) 0, (char *) 0, (char *) 0, 0, } ; - register struct hash_entry *sym_entry = + struct hash_entry *sym_entry = table[hashfunct( sym, table_size )]; while ( sym_entry ) @@ -156,11 +156,11 @@ /* hashfunct - compute the hash value for "str" and hash size "hash_size" */ int hashfunct( str, hash_size ) -register char str[]; +char str[]; int hash_size; { - register int hashval; - register int locstr; + int hashval; + int locstr; hashval = 0; locstr = 0;