diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-18 01:08:36 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-18 01:08:36 -0400 |
| commit | c9ff2b0a8aebdc2a46490717ef27e288bd822499 (patch) | |
| tree | 0680bb7acc9396e4eb34d7793a72a07724524d85 /stdlib | |
| parent | 7baf36e2ae9a1c3da919336102a591ab25ed4cfe (diff) | |
Move USE_COLOR into stdlib
Diffstat (limited to 'stdlib')
| -rw-r--r-- | stdlib/stdlib.c | 2 | ||||
| -rw-r--r-- | stdlib/stdlib.h | 2 | ||||
| -rw-r--r-- | stdlib/util.c | 2 | ||||
| -rw-r--r-- | stdlib/util.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/stdlib.c b/stdlib/stdlib.c index b8e40a54..db60ca98 100644 --- a/stdlib/stdlib.c +++ b/stdlib/stdlib.c @@ -19,6 +19,8 @@ #include "text.h" #include "util.h" +public bool USE_COLOR; + public void tomo_init(void) { GC_INIT(); diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index da3ddbf7..2037fae4 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -10,6 +10,8 @@ #include "types.h" #include "util.h" +extern bool USE_COLOR; + void tomo_init(void); __attribute__((format(printf, 1, 2))) _Noreturn void fail(const char *fmt, ...); diff --git a/stdlib/util.c b/stdlib/util.c index 7749b22c..1fe33dfa 100644 --- a/stdlib/util.c +++ b/stdlib/util.c @@ -9,8 +9,6 @@ #include "text.h" #include "util.h" -public bool USE_COLOR; - __attribute__((format(printf, 1, 2))) public char *heap_strf(const char *fmt, ...) { diff --git a/stdlib/util.h b/stdlib/util.h index a24264cd..82f83ab1 100644 --- a/stdlib/util.h +++ b/stdlib/util.h @@ -34,8 +34,6 @@ #define CONSTFUNC __attribute__ ((const)) #endif -extern bool USE_COLOR; - #define REVERSE_LIST(list) do { \ __typeof(list) _prev = NULL; \ __typeof(list) _next = NULL; \ |
