aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-12-05 06:53:03 -0800
committerNicholas Noll <nbnoll@eml.cc>2021-12-05 06:53:03 -0800
commit158d9b84f14457136379f42e7c071eb79d87ee6b (patch)
tree1be32a072934357bc8a777f562fd431af9e3229b /src/cmd
parent861897dd86ca96410b1c11a8a9cc3086bbcb054f (diff)
Feat: libbase partitioning. Cleaned up hash map macros.
Additionally, fixed varargs cleanup when done with fmt.write. Some system constants were added to allow for directory walking.
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/cc/cc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/cc/cc.c b/src/cmd/cc/cc.c
index 8ad0022..2f136cb 100644
--- a/src/cmd/cc/cc.c
+++ b/src/cmd/cc/cc.c
@@ -43,15 +43,14 @@ streq(byte *s, byte *t)
#define HASH(s) hash_string(s)
#define EQUAL(s, t) (streq(s, t))
-static
-int
+static int
getstr(string key, int *ok)
{
int idx;
MAP_GET(idx, (&C.strs), key, HASH, EQUAL);
*ok = idx < C.strs.n_buckets;
- return idx;
+ return idx;
}
static