commit 7ed8bc653eb91897b89f175c2fee23db3a7d1018
parent d0fab8b1e80f9486151ec4a2be7f496be17e25a0
Author: Ed van Bruggen <edvb@uw.edu>
Date: Sat, 3 Oct 2020 19:55:57 -0700
Rename tibs header variable
Diffstat:
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
@@ -24,7 +24,7 @@ options:
tibs.tsp.h: $(TSP)
@echo xxd $@
- @echo "char libs_tsp[] = { 0x28, " > $@
+ @echo "char tibs[] = { 0x28, " > $@
@cat $(TSP) | xxd -i - >> $@
@echo ", 0x29, 0x00};" >> $@
diff --git a/main.c b/main.c
@@ -8,6 +8,7 @@
#include "tisp.h"
#ifndef TIB_DYNAMIC
+# include "tibs.tsp.h"
tsp_include_tib(math);
tsp_include_tib(io);
tsp_include_tib(time);
@@ -26,8 +27,7 @@ main(int argc, char *argv[])
tib_env_io(st);
tib_env_time(st);
tib_env_string(st);
-# include "tibs.tsp.h"
- tisp_env_lib(st, libs_tsp);
+ tisp_env_lib(st, tibs);
#endif
/* TODO SIGTERM to handle garbage collection */
@@ -67,6 +67,5 @@ readstr:
puts("");
-
return 0;
}
diff --git a/test.c b/test.c
@@ -572,7 +572,7 @@ main(void)
Tsp st = tisp_env_init(1024);
tib_env_math(st);
tib_env_string(st);
- tisp_env_lib(st, libs_tsp);
+ tisp_env_lib(st, tibs);
for (int i = 0; ; i++) {
if (!tests[i][1]) {