Compare commits
2 Commits
4e7632f3c0
...
6123d03471
Author | SHA1 | Date | |
---|---|---|---|
6123d03471 | |||
71b32a6b08 |
@ -6,10 +6,14 @@ endif(TARGET regex)
|
|||||||
|
|
||||||
project(libregex)
|
project(libregex)
|
||||||
|
|
||||||
|
add_compile_options(-pedantic -Wall)
|
||||||
|
|
||||||
add_library(regex STATIC src/libregex.c)
|
add_library(regex STATIC src/libregex.c)
|
||||||
add_executable(libregex src/main.c)
|
add_executable(libregex src/main.c)
|
||||||
add_subdirectory(external/libds)
|
add_subdirectory(external/libds)
|
||||||
|
|
||||||
|
set_property(TARGET regex PROPERTY C_STANDARD 90)
|
||||||
|
set_property(TARGET libregex PROPERTY C_STANDARD 90)
|
||||||
target_include_directories(regex PUBLIC include)
|
target_include_directories(regex PUBLIC include)
|
||||||
target_include_directories(libregex PUBLIC include)
|
target_include_directories(libregex PUBLIC include)
|
||||||
|
|
||||||
|
2
external/libds
vendored
2
external/libds
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 936b2835b28082d83f9716ffc2470ae0621ab52a
|
Subproject commit 276d38a292bc03939e854deac077b7d71b21eb8e
|
@ -325,4 +325,5 @@ libregex_result regex_match_string(regex_node* root, char* string, regex_result*
|
|||||||
*/
|
*/
|
||||||
void regex_result_free(regex_result* result);
|
void regex_result_free(regex_result* result);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -597,4 +597,5 @@ void regex_result_free(regex_result* result){
|
|||||||
free(result->groups[index]);
|
free(result->groups[index]);
|
||||||
}
|
}
|
||||||
result->matches = 0;
|
result->matches = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user