Ensure codebase is C90.
This commit is contained in:
parent
b2024931d1
commit
32af31d14a
|
@ -6,10 +6,14 @@ endif(TARGET lex)
|
|||
|
||||
project(liblex)
|
||||
|
||||
ADD_COMPILE_OPTIONS(-pedantic -Wall)
|
||||
|
||||
add_library(lex STATIC src/pattern.c src/pairmap.c src/eval.c)
|
||||
add_executable(liblex src/main.c)
|
||||
add_subdirectory(external/libds)
|
||||
|
||||
set_property(TARGET lex PROPERTY C_STANDARD 90)
|
||||
set_property(TARGET liblex PROPERTY C_STANDARD 90)
|
||||
target_include_directories(lex PUBLIC include)
|
||||
target_include_directories(liblex PUBLIC include)
|
||||
|
||||
|
|
|
@ -127,8 +127,9 @@ int _eval_foreach_check_node(void *data, va_list args){
|
|||
|
||||
liblex_result _eval_step(eval *eval){
|
||||
ht* tmp;
|
||||
liblex_result result;
|
||||
eval->matched = 0;
|
||||
liblex_result result = foreach_errors[ht_foreach(eval->set_current, NULL, compare_always, _eval_foreach_check_node,
|
||||
result = foreach_errors[ht_foreach(eval->set_current, NULL, compare_always, _eval_foreach_check_node,
|
||||
eval)];
|
||||
|
||||
tmp = eval->set_current;
|
||||
|
|
Loading…
Reference in New Issue
Block a user