aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/cc/sym.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-05-17 16:19:17 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-05-17 16:19:17 -0700
commit9ec5bed6a7d715ffa69851569485a685dd69db2e (patch)
treec25eaef1000f52caacf25ee398e54f63067b8feb /sys/cmd/cc/sym.c
parentc92c89280d036240a75ff122084dd58cde473394 (diff)
prototype of front end cli
Diffstat (limited to 'sys/cmd/cc/sym.c')
-rw-r--r--sys/cmd/cc/sym.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/sys/cmd/cc/sym.c b/sys/cmd/cc/sym.c
deleted file mode 100644
index ef40bce..0000000
--- a/sys/cmd/cc/sym.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include "cc.h"
-
-#include <libn/macro/map.h>
-
-#define PTR_HASH(p) (uintptr)(p)
-#define PTR_EQUAL(p1, p2) ((uintptr)(p1) == (uintptr)(p2))
-
-#if 0
-struct SymTab
-{
- MAP_STRUCT_BODY(string, Sym*);
-};
-
-Sym*
-getsym(SymTab *tab, string key)
-{
- MAP_GET(tab, key, PTR_HASH, PTR_EQUAL, nil);
-}
-
-static
-int
-moresymtab(SymTab *tab, int n)
-{
- MAP_GROW(tab, string, Sym*, n, PTR_HASH);
-}
-
-int
-putsym(SymTab *tab, Sym *sym, error *err)
-{
- MAP_PUT(tab, sym->name, sym, PTR_HASH, PTR_EQUAL, moresymtab, err);
-}
-#endif