From 158d9b84f14457136379f42e7c071eb79d87ee6b Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 5 Dec 2021 06:53:03 -0800 Subject: 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. --- src/cmd/cc/cc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/cmd') 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 -- cgit v1.2.1