Compare commits

..

No commits in common. "bb07382b5986ccd1ee6ba76717316d87a9808b99" and "b2024931d102ca7a7f03525f63899d9434f915e6" have entirely different histories.

3 changed files with 2 additions and 7 deletions

View File

@ -6,14 +6,10 @@ 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 276d38a292bc03939e854deac077b7d71b21eb8e
Subproject commit 32de4e478fc332b35de2906f0030c217c3b4eba2

View File

@ -127,9 +127,8 @@ int _eval_foreach_check_node(void *data, va_list args){
liblex_result _eval_step(eval *eval){
ht* tmp;
liblex_result result;
eval->matched = 0;
result = foreach_errors[ht_foreach(eval->set_current, NULL, compare_always, _eval_foreach_check_node,
liblex_result result = foreach_errors[ht_foreach(eval->set_current, NULL, compare_always, _eval_foreach_check_node,
eval)];
tmp = eval->set_current;