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;