Ensure codebase is C90.

This commit is contained in:
Danila Fedorin 2018-02-04 00:21:03 -08:00
parent b2024931d1
commit 32af31d14a
2 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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;