summaryrefslogtreecommitdiffstats
path: root/yacc/symtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'yacc/symtab.c')
-rw-r--r--yacc/symtab.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/yacc/symtab.c b/yacc/symtab.c
index 5b88d3b7e..87e280a09 100644
--- a/yacc/symtab.c
+++ b/yacc/symtab.c
@@ -33,7 +33,7 @@ hash(char *name)
s = name;
k = *s;
while ((c = *++s))
- k = (31*k + c) & (TABLE_SIZE - 1);
+ k = (31*k + c) & (TABLE_SIZE - 1);
return (k);
}
@@ -77,9 +77,9 @@ lookup(char *name)
while (bp)
{
- if (strcmp(name, bp->name) == 0) return (bp);
- bpp = &bp->link;
- bp = *bpp;
+ if (strcmp(name, bp->name) == 0) return (bp);
+ bpp = &bp->link;
+ bp = *bpp;
}
*bpp = bp = make_bucket(name);
@@ -98,7 +98,7 @@ void create_symbol_table(void)
symbol_table = (bucket **) MALLOC(TABLE_SIZE*sizeof(bucket *));
if (symbol_table == 0) no_space();
for (i = 0; i < TABLE_SIZE; i++)
- symbol_table[i] = 0;
+ symbol_table[i] = 0;
bp = make_bucket("error");
bp->index = 1;
@@ -123,7 +123,7 @@ void free_symbols(void)
for (p = first_symbol; p; p = q)
{
- q = p->next;
- FREE(p);
+ q = p->next;
+ FREE(p);
}
}