commit 2203bdd7da2f51dcdc8662ab2008efac8c8169eb
parent 4c4ca1b2ebf0700f0ea862f51f043d10bc80c0bf
Author: Ed van Bruggen <edvb@uw.edu>
Date: Sat, 21 Sep 2019 00:04:13 -0700
Remove need for tib headers
Diffstat:
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/main.c b/main.c
@@ -7,8 +7,8 @@
#include "tisp.h"
#ifndef TIB_DYNAMIC
-# include "tibs/math.h"
-# include "tibs/io.h"
+ tsp_include_tib(math);
+ tsp_include_tib(io);
#endif
int
diff --git a/test.c b/test.c
@@ -6,7 +6,8 @@
#include <unistd.h>
#include "tisp.h"
-#include "tibs/math.h"
+
+tsp_include_tib(math);
#define LEN(X) (sizeof(X) / sizeof((X)[0]))
diff --git a/tibs/io.h b/tibs/io.h
@@ -1 +0,0 @@
-void tib_env_io(Env env);
diff --git a/tibs/math.h b/tibs/math.h
@@ -1 +0,0 @@
-void tib_env_math(Env env);
diff --git a/tisp.h b/tisp.h
@@ -52,6 +52,7 @@
#define tsp_env_name_fn(NAME, FN) tisp_env_add(env, #NAME, mk_prim(prim_##FN))
#define tsp_env_fn(NAME) tsp_env_name_fn(NAME, NAME)
+#define tsp_include_tib(NAME) void tib_env_##NAME(Env)
#define car(P) ((P)->v.p.car)
#define cdr(P) ((P)->v.p.cdr)