summaryrefslogtreecommitdiffstats
path: root/contrib/flex/sym.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-05-21 19:11:11 +0000
committerjkim <jkim@FreeBSD.org>2013-05-21 19:11:11 +0000
commitaf3aaf871a18c81e9986f6470064ec11a6d7ef1a (patch)
treedb324438fe5e24d91a790f6cf907e699c942bbc0 /contrib/flex/sym.c
parente2a508e1d1ac5da23d6007aedaff12dba4def7d7 (diff)
downloadFreeBSD-src-af3aaf871a18c81e9986f6470064ec11a6d7ef1a.zip
FreeBSD-src-af3aaf871a18c81e9986f6470064ec11a6d7ef1a.tar.gz
Apply still relevant local changes.
r124183: Work around a `label defined but not used' warning. r179549: De-register declarations. r179657: De-register declarations in non-dot-c files. r181269: Mark yy_fatal_error() as __dead2. r228992: Spelling fixes. r240518: Correct double "the the".
Diffstat (limited to 'contrib/flex/sym.c')
-rw-r--r--contrib/flex/sym.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/contrib/flex/sym.c b/contrib/flex/sym.c
index 8d0b2e9..56450ce 100644
--- a/contrib/flex/sym.c
+++ b/contrib/flex/sym.c
@@ -59,12 +59,12 @@ static struct hash_entry *ccltab[CCL_HASH_SIZE];
/* declare functions that have forward references */
-static int addsym PROTO ((register char[], char *, int, hash_table, int));
-static struct hash_entry *findsym PROTO ((register const char *sym,
+static int addsym PROTO ((char[], char *, int, hash_table, int));
+static struct hash_entry *findsym PROTO ((const char *sym,
hash_table table,
int table_size));
-static int hashfunct PROTO ((register const char *, int));
+static int hashfunct PROTO ((const char *, int));
/* addsym - add symbol and definitions to symbol table
@@ -73,16 +73,16 @@ static int hashfunct PROTO ((register const char *, int));
*/
static 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) {
if (!strcmp (sym, sym_entry->name)) { /* entry already exists */
@@ -147,7 +147,7 @@ int ccllookup (ccltxt)
/* findsym - find symbol in symbol table */
static struct hash_entry *findsym (sym, table, table_size)
- register const char *sym;
+ const char *sym;
hash_table table;
int table_size;
{
@@ -155,7 +155,7 @@ static struct hash_entry *findsym (sym, table, table_size)
(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)];
@@ -171,11 +171,11 @@ static struct hash_entry *findsym (sym, table, table_size)
/* hashfunct - compute the hash value for "str" and hash size "hash_size" */
static int hashfunct (str, hash_size)
- register const char *str;
+ const char *str;
int hash_size;
{
- register int hashval;
- register int locstr;
+ int hashval;
+ int locstr;
hashval = 0;
locstr = 0;
OpenPOWER on IntegriCloud