diff --git a/lib/parser.c b/lib/parse.c similarity index 99% rename from lib/parser.c rename to lib/parse.c index 206c0c9..36ec3cf 100644 --- a/lib/parser.c +++ b/lib/parse.c @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -#include "parser.h" +#include "parse.h" #include #include diff --git a/lib/parser.h b/lib/parse.h similarity index 96% rename from lib/parser.h rename to lib/parse.h index f88d5ec..04c9bc3 100644 --- a/lib/parser.h +++ b/lib/parse.h @@ -3,8 +3,8 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -#ifndef PARSER_H -#define PARSER_H +#ifndef PARSE_H +#define PARSE_H #include diff --git a/scripts/build.sh b/scripts/build.sh index 5bb1c13..6d89232 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -7,10 +7,10 @@ CFLAGS="$CFLAGS -O0 -ggdb" mkdir -p build # Build library -clang $CFLAGS -Ilib -c lib/parser.c -o build/parser.o -ar -crs build/lib.a build/parser.o +clang $CFLAGS -Ilib -c lib/parse.c -o build/parse.o +ar -crs build/lib.a build/parse.o build/regex.o # Build tests clang $CFLAGS -Itests -c tests/testing.c -o build/testing.o -clang $CFLAGS -Ilib -Itests -o build/parser_tests \ - tests/parser_tests.c build/testing.o build/lib.a +clang $CFLAGS -Ilib -Itests -o build/parse_tests \ + tests/parse_tests.c build/testing.o build/lib.a diff --git a/scripts/test.sh b/scripts/test.sh index be0de71..981ecfc 100644 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -2,6 +2,6 @@ cd "$(git rev-parse --show-toplevel)" fails=0 -build/parser_tests || fails=`expr $fails + 1` +build/parse_tests || fails=`expr $fails + 1` if [ $fails -eq 0 ]; then echo Tests OK; fi diff --git a/tests/parser_tests.c b/tests/parse_tests.c similarity index 99% rename from tests/parser_tests.c rename to tests/parse_tests.c index c120767..c86ec56 100644 --- a/tests/parser_tests.c +++ b/tests/parse_tests.c @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -#include "parser.h" +#include "parse.h" #include "testing.h" #define PARSE_EXPR_STRING(s, r) parse_expr(s, strlen(s), r)