diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-23 13:10:44 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-23 13:10:44 -0400 |
| commit | b033c491b8df6e6c4bc11f9941f2bba93bb9d10f (patch) | |
| tree | eaa6831a9b5b4a9372b978dd303cc595ad1894ec /src | |
| parent | 950c8a63be4cdb6bcbcc6c380d59238a36a3b932 (diff) | |
Remove some unused imports
Diffstat (limited to 'src')
| -rw-r--r-- | src/ast.c | 2 | ||||
| -rw-r--r-- | src/enums.c | 2 | ||||
| -rw-r--r-- | src/environment.c | 2 | ||||
| -rw-r--r-- | src/naming.c | 2 | ||||
| -rw-r--r-- | src/parse.c | 3 | ||||
| -rw-r--r-- | src/structs.c | 3 | ||||
| -rw-r--r-- | src/tomo.c | 1 | ||||
| -rw-r--r-- | src/typecheck.c | 1 | ||||
| -rw-r--r-- | src/types.c | 1 |
9 files changed, 0 insertions, 17 deletions
@@ -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) @@ -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" |
