Compare commits
3 Commits
b2024931d1
...
bb07382b59
Author | SHA1 | Date |
---|---|---|
Danila Fedorin | bb07382b59 | |
Danila Fedorin | b850afce37 | |
Danila Fedorin | 32af31d14a |
|
@ -6,10 +6,14 @@ endif(TARGET lex)
|
||||||
|
|
||||||
project(liblex)
|
project(liblex)
|
||||||
|
|
||||||
|
add_compile_options(-pedantic -Wall)
|
||||||
|
|
||||||
add_library(lex STATIC src/pattern.c src/pairmap.c src/eval.c)
|
add_library(lex STATIC src/pattern.c src/pairmap.c src/eval.c)
|
||||||
add_executable(liblex src/main.c)
|
add_executable(liblex src/main.c)
|
||||||
add_subdirectory(external/libds)
|
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(lex PUBLIC include)
|
||||||
target_include_directories(liblex PUBLIC include)
|
target_include_directories(liblex PUBLIC include)
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 32de4e478fc332b35de2906f0030c217c3b4eba2
|
Subproject commit 276d38a292bc03939e854deac077b7d71b21eb8e
|
|
@ -127,8 +127,9 @@ int _eval_foreach_check_node(void *data, va_list args){
|
||||||
|
|
||||||
liblex_result _eval_step(eval *eval){
|
liblex_result _eval_step(eval *eval){
|
||||||
ht* tmp;
|
ht* tmp;
|
||||||
|
liblex_result result;
|
||||||
eval->matched = 0;
|
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)];
|
eval)];
|
||||||
|
|
||||||
tmp = eval->set_current;
|
tmp = eval->set_current;
|
||||||
|
|
Loading…
Reference in New Issue