From 88a4be2d536751188a1812848212246a419cd425 Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 24 Aug 2023 04:45:07 +0200 Subject: [PATCH] more logical syntax header ordering --- config.mk | 2 +- source/main.c | 2 +- source/hl_c.inc => syntax/c.h | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename source/hl_c.inc => syntax/c.h (100%) diff --git a/config.mk b/config.mk index 9397d4a..517dfe6 100644 --- a/config.mk +++ b/config.mk @@ -6,7 +6,7 @@ PREFIX:=/usr/bin CFLAGS:=-std=c99 -CPPFLAGS:=-D_GNU_SOURCE -D_FORTIFY_SOURCE=2 +CPPFLAGS:=-Isyntax/ -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 DEBUG=1 diff --git a/source/main.c b/source/main.c index 7a7390e..4946dc5 100644 --- a/source/main.c +++ b/source/main.c @@ -36,7 +36,7 @@ int main(int argc, // Highlight init terminal_hl_init(); // - #include "hl_c.inc" + #include "c.h" // render_string(buffer, "cterm"); putchar('\n'); diff --git a/source/hl_c.inc b/syntax/c.h similarity index 100% rename from source/hl_c.inc rename to syntax/c.h -- 2.39.5