aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-23 13:10:44 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-23 13:10:44 -0400
commitb033c491b8df6e6c4bc11f9941f2bba93bb9d10f (patch)
treeeaa6831a9b5b4a9372b978dd303cc595ad1894ec /src
parent950c8a63be4cdb6bcbcc6c380d59238a36a3b932 (diff)
Remove some unused imports
Diffstat (limited to 'src')
-rw-r--r--src/ast.c2
-rw-r--r--src/enums.c2
-rw-r--r--src/environment.c2
-rw-r--r--src/naming.c2
-rw-r--r--src/parse.c3
-rw-r--r--src/structs.c3
-rw-r--r--src/tomo.c1
-rw-r--r--src/typecheck.c1
-rw-r--r--src/types.c1
9 files changed, 0 insertions, 17 deletions
diff --git a/src/ast.c b/src/ast.c
index 54df3109..a1bcac58 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -3,9 +3,7 @@
#include <stdarg.h>
#include "ast.h"
-#include "types.h"
#include "stdlib/datatypes.h"
-#include "stdlib/integers.h"
#include "stdlib/tables.h"
#include "stdlib/text.h"
diff --git a/src/enums.c b/src/enums.c
index 113eb91d..ae15d71c 100644
--- a/src/enums.c
+++ b/src/enums.c
@@ -1,5 +1,4 @@
// Logic for compiling tagged unions (enums)
-#include <ctype.h>
#include <gc.h>
#include <stdio.h>
@@ -8,7 +7,6 @@
#include "environment.h"
#include "naming.h"
#include "stdlib/text.h"
-#include "stdlib/util.h"
#include "structs.h"
#include "typecheck.h"
diff --git a/src/environment.c b/src/environment.c
index f43e8daf..22b13e65 100644
--- a/src/environment.c
+++ b/src/environment.c
@@ -1,14 +1,12 @@
// Logic for the environmental context information during compilation
// (variable bindings, code sections, etc.)
#include <stdlib.h>
-#include <signal.h>
#include <sys/stat.h>
#include "environment.h"
#include "naming.h"
#include "parse.h"
#include "stdlib/datatypes.h"
-#include "stdlib/paths.h"
#include "stdlib/tables.h"
#include "stdlib/text.h"
#include "stdlib/util.h"
diff --git a/src/naming.c b/src/naming.c
index ba5098fd..664fd970 100644
--- a/src/naming.c
+++ b/src/naming.c
@@ -1,12 +1,10 @@
// Logic for converting user's Tomo names into valid C identifiers
-#include <ctype.h>
#include <string.h>
#include <sys/stat.h>
#include "environment.h"
#include "stdlib/paths.h"
-#include "stdlib/print.h"
#include "stdlib/text.h"
static const char *c_keywords[] = { // Maintain sorted order:
diff --git a/src/parse.c b/src/parse.c
index 181aae58..06184b97 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -1,7 +1,6 @@
// Recursive descent parser for parsing code
#include <ctype.h>
#include <gc.h>
-#include <math.h>
#include <setjmp.h>
#include <stdarg.h>
#include <stdbool.h>
@@ -20,8 +19,6 @@
#include <signal.h>
#include "ast.h"
-#include "stdlib/integers.h"
-#include "stdlib/paths.h"
#include "stdlib/print.h"
#include "stdlib/stacktrace.h"
#include "stdlib/stdlib.h"
diff --git a/src/structs.c b/src/structs.c
index 873300c5..2d71fbac 100644
--- a/src/structs.c
+++ b/src/structs.c
@@ -1,14 +1,11 @@
// Logic for compiling new struct types defined in code
-#include <ctype.h>
#include <gc.h>
-#include <stdio.h>
#include "ast.h"
#include "compile.h"
#include "environment.h"
#include "naming.h"
#include "stdlib/text.h"
-#include "stdlib/util.h"
#include "typecheck.h"
Text_t compile_struct_typeinfo(env_t *env, type_t *t, const char *name, arg_ast_t *fields, bool is_secret, bool is_opaque)
diff --git a/src/tomo.c b/src/tomo.c
index 89ff2fcc..c9414393 100644
--- a/src/tomo.c
+++ b/src/tomo.c
@@ -29,7 +29,6 @@
#include "stdlib/random.h"
#include "stdlib/siphash.h"
#include "stdlib/text.h"
-#include "typecheck.h"
#include "types.h"
#define run_cmd(...) ({ const char *_cmd = String(__VA_ARGS__); if (verbose) print("\033[34;1m", _cmd, "\033[m"); popen(_cmd, "w"); })
diff --git a/src/typecheck.c b/src/typecheck.c
index dc312cde..13a1c31e 100644
--- a/src/typecheck.c
+++ b/src/typecheck.c
@@ -2,7 +2,6 @@
#include <ctype.h>
#include <gc.h>
#include <glob.h>
-#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/types.c b/src/types.c
index f2dc5ddd..3e39c682 100644
--- a/src/types.c
+++ b/src/types.c
@@ -8,7 +8,6 @@
#include "environment.h"
#include "stdlib/integers.h"
#include "stdlib/print.h"
-#include "stdlib/tables.h"
#include "stdlib/text.h"
#include "stdlib/util.h"
#include "types.h"