summaryrefslogtreecommitdiff
path: root/usr.bin/yacc/symtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/yacc/symtab.c')
-rw-r--r--usr.bin/yacc/symtab.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/yacc/symtab.c b/usr.bin/yacc/symtab.c
index 9874b994eb5..472ea1dc9b0 100644
--- a/usr.bin/yacc/symtab.c
+++ b/usr.bin/yacc/symtab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: symtab.c,v 1.3 1996/06/26 05:44:39 deraadt Exp $ */
+/* $OpenBSD: symtab.c,v 1.4 2001/07/16 06:29:45 pvalchev Exp $ */
/* $NetBSD: symtab.c,v 1.4 1996/03/19 03:21:48 jtc Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)symtab.c 5.3 (Berkeley) 6/1/90";
#else
-static char rcsid[] = "$OpenBSD: symtab.c,v 1.3 1996/06/26 05:44:39 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: symtab.c,v 1.4 2001/07/16 06:29:45 pvalchev Exp $";
#endif
#endif /* not lint */
@@ -57,6 +57,8 @@ bucket **symbol_table;
bucket *first_symbol;
bucket *last_symbol;
+int hash __P((char *));
+
int
hash(name)
@@ -126,6 +128,7 @@ char *name;
}
+void
create_symbol_table()
{
register int i;
@@ -146,6 +149,7 @@ create_symbol_table()
}
+void
free_symbol_table()
{
FREE(symbol_table);
@@ -153,6 +157,7 @@ free_symbol_table()
}
+void
free_symbols()
{
register bucket *p, *q;