summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2026-01-02 03:15:41 -0500
committerWormHeamer2026-01-02 03:15:41 -0500
commit44d71549612a5224e201495393ded27f43f1f9ea (patch)
tree7706d993dac63be77364e4b46a10e3b10df67acf
parente46cc3125e9feb52788ae7ab37d1119053978af0 (diff)
separate *_IMPL into their own compilation unit
-rw-r--r--impl.c7
-rw-r--r--main.c4
2 files changed, 7 insertions, 4 deletions
diff --git a/impl.c b/impl.c
new file mode 100644
index 0000000..5699218
--- /dev/null
+++ b/impl.c
@@ -0,0 +1,7 @@
+#define ARENA_IMPL
+#define UTF8_IMPL
+#define STR_IMPL
+
+#include "arena.h"
+#include "utf8.h"
+#include "str.h"
diff --git a/main.c b/main.c
index e64b8d9..1576c65 100644
--- a/main.c
+++ b/main.c
@@ -13,10 +13,6 @@
#include <signal.h>
#include <poll.h>
-#define ARENA_IMPL
-#define UTF8_IMPL
-#define STR_IMPL
-
#include "wrmr.h"
#include "arena.h"
#include "txt.h"