Compare commits

...

3 Commits

Author SHA1 Message Date
Danila Fedorin bb07382b59 Make CMake calls consistent. 2018-02-04 00:25:52 -08:00
Danila Fedorin b850afce37 Update libds. 2018-02-04 00:22:07 -08:00
Danila Fedorin 32af31d14a Ensure codebase is C90. 2018-02-04 00:21:03 -08:00
3 changed files with 7 additions and 2 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)

2
external/libds vendored

@ -1 +1 @@
Subproject commit 32de4e478fc332b35de2906f0030c217c3b4eba2
Subproject commit 276d38a292bc03939e854deac077b7d71b21eb8e

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;