clean up imports a bit
authorcassowarii <cassowary@cassowary.me>
Sun, 28 Jun 2026 01:25:18 +0000 (18:25 -0700)
committercassowarii <cassowary@cassowary.me>
Sun, 28 Jun 2026 01:25:18 +0000 (18:25 -0700)
src/common.h
src/data/hashtable.c
src/data/string.c
src/data/symbol.c
src/parse/filereader.c
src/parse/lexer.c

index 842d51d..75541ee 100644 (file)
@@ -3,5 +3,7 @@
 
 #include "global.h"
 #include "mem/mem.h"
+#include "data/value.h"
+#include <string.h> // for memcpy/memset
 
 #endif
index 23a8505..89244f6 100644 (file)
@@ -1,7 +1,6 @@
 #include "data/hashtable.h"
 
 #include "data/string.h"
-#include "data/value.h"
 
 #define HASHES_PER_BLOCK 256
 #define INLINE_TABLE_LENGTH 64
index c4b07d7..db710d7 100644 (file)
@@ -1,9 +1,7 @@
 #include "data/string.h"
 
-#include "mem/mem.h"
 #include "gc/gcinfo.h"
 #include "gc/rc.h"
-#include <string.h>
 
 #define INLINE_BUFFER_SIZE 256
 #define STRINGS_PER_BLOCK 256
index 666a954..f2b5bf2 100644 (file)
@@ -2,8 +2,6 @@
 
 #include "data/string.h"
 #include "data/hashtable.h"
-#include <string.h>
-#include "mem/mem.h"
 
 #define NAME_BLOCK_SIZE 4096
 
index 38a7196..b96dce7 100644 (file)
@@ -1,7 +1,5 @@
 #include "filereader.h"
 
-#include "mem/mem.h"
-
 #define N_READBACK_LINES 3
 
 /* reads in files a line at a time and provides the file data one character
index f679acd..569d1ca 100644 (file)
@@ -1,8 +1,5 @@
 #include "lexer.h"
 
-#include <string.h>
-#include "mem/mem.h"
-
 /* OK so this is a module that takes in a series of tokens output by the scanner and modifies
  * the token stream before it gets passed to the parser. In particular, this replaces the
  * spaces and newlines sent from the scanner with various configurations of parentheses and