From e1b701f3e6fc393bd2e4e58e689709f8737861e3 Mon Sep 17 00:00:00 2001 From: xolatile Date: Sun, 29 Oct 2023 06:58:09 -0400 Subject: [PATCH] A lot of stuff changed, might even delete some in the future... --- compile.sh | 7 +++++++ install.sh | 1 + xyntax.c | 2 ++ xyntax.h | 2 -- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 compile.sh diff --git a/compile.sh b/compile.sh new file mode 100644 index 0000000..2b4e3d0 --- /dev/null +++ b/compile.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -xe + +gcc -g -ansi -Wall -Wextra -Wpedantic -Werror -Ofast -c -o xyntax.o xyntax.c + +exit diff --git a/install.sh b/install.sh index 0dcea64..208c69c 100644 --- a/install.sh +++ b/install.sh @@ -6,5 +6,6 @@ mkdir -p /usr/include/xolatile cp xyntax.h /usr/include/xolatile/xyntax.h cp xyntax.c /usr/include/xolatile/xyntax.c +cp xyntax.o /usr/include/xolatile/xyntax.o exit diff --git a/xyntax.c b/xyntax.c index 2defdd3..64d0f0c 100644 --- a/xyntax.c +++ b/xyntax.c @@ -9,6 +9,8 @@ It is distributed in the hope that it will be useful or harmful, it really depen #ifndef XYNTAX_SOURCE #define XYNTAX_SOURCE +#include + #include int syntax_count = 0; diff --git a/xyntax.h b/xyntax.h index 1e8ceab..9d5609d 100644 --- a/xyntax.h +++ b/xyntax.h @@ -9,8 +9,6 @@ It is distributed in the hope that it will be useful or harmful, it really depen #ifndef XYNTAX_HEADER #define XYNTAX_HEADER -#include - extern int syntax_count; extern int * syntax_enrange; extern int * syntax_derange;