Rename parser* files to parse*
This commit is contained in:
parent
5011e516e4
commit
316cba949d
@ -3,7 +3,7 @@
|
|||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "parser.h"
|
#include "parse.h"
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
@ -3,8 +3,8 @@
|
|||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PARSER_H
|
#ifndef PARSE_H
|
||||||
#define PARSER_H
|
#define PARSE_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
@ -7,10 +7,10 @@ CFLAGS="$CFLAGS -O0 -ggdb"
|
|||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
|
||||||
# Build library
|
# Build library
|
||||||
clang $CFLAGS -Ilib -c lib/parser.c -o build/parser.o
|
clang $CFLAGS -Ilib -c lib/parse.c -o build/parse.o
|
||||||
ar -crs build/lib.a build/parser.o
|
ar -crs build/lib.a build/parse.o build/regex.o
|
||||||
|
|
||||||
# Build tests
|
# Build tests
|
||||||
clang $CFLAGS -Itests -c tests/testing.c -o build/testing.o
|
clang $CFLAGS -Itests -c tests/testing.c -o build/testing.o
|
||||||
clang $CFLAGS -Ilib -Itests -o build/parser_tests \
|
clang $CFLAGS -Ilib -Itests -o build/parse_tests \
|
||||||
tests/parser_tests.c build/testing.o build/lib.a
|
tests/parse_tests.c build/testing.o build/lib.a
|
||||||
|
@ -2,6 +2,6 @@ cd "$(git rev-parse --show-toplevel)"
|
|||||||
|
|
||||||
fails=0
|
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
|
if [ $fails -eq 0 ]; then echo Tests OK; fi
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "parser.h"
|
#include "parse.h"
|
||||||
#include "testing.h"
|
#include "testing.h"
|
||||||
|
|
||||||
#define PARSE_EXPR_STRING(s, r) parse_expr(s, strlen(s), r)
|
#define PARSE_EXPR_STRING(s, r) parse_expr(s, strlen(s), r)
|
Loading…
x
Reference in New Issue
Block a user