summaryrefslogtreecommitdiff
path: root/support/tools/Burg/symtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/tools/Burg/symtab.c')
-rw-r--r--support/tools/Burg/symtab.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/support/tools/Burg/symtab.c b/support/tools/Burg/symtab.c
deleted file mode 100644
index 3ecab2fc5f..0000000000
--- a/support/tools/Burg/symtab.c
+++ /dev/null
@@ -1,38 +0,0 @@
-char rcsid_symtab[] = "$Id$";
-
-#include <stdio.h>
-#include <string.h>
-#include "b.h"
-#include "fe.h"
-
-static List symtab;
-
-Symbol
-newSymbol(name) char *name;
-{
- Symbol s;
-
- s = (Symbol) zalloc(sizeof(struct symbol));
- assert(s);
- s->name = name;
- return s;
-}
-
-Symbol
-enter(name, new) char *name; int *new;
-{
- List l;
- Symbol s;
-
- *new = 0;
- for (l = symtab; l; l = l->next) {
- s = (Symbol) l->x;
- if (!strcmp(name, s->name)) {
- return s;
- }
- }
- *new = 1;
- s = newSymbol(name);
- symtab = newList(s, symtab);
- return s;
-}