Compare commits

...

2 Commits

Author SHA1 Message Date
Danila Fedorin 6123d03471 Update libds. 2018-02-04 00:27:45 -08:00
Danila Fedorin 71b32a6b08 Make sure codebase is C90. 2018-02-04 00:27:25 -08:00
4 changed files with 9 additions and 3 deletions

View File

@ -6,10 +6,14 @@ endif(TARGET regex)
project(libregex)
add_compile_options(-pedantic -Wall)
add_library(regex STATIC src/libregex.c)
add_executable(libregex src/main.c)
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(libregex PUBLIC include)

2
external/libds vendored

@ -1 +1 @@
Subproject commit 936b2835b28082d83f9716ffc2470ae0621ab52a
Subproject commit 276d38a292bc03939e854deac077b7d71b21eb8e

View File

@ -325,4 +325,5 @@ libregex_result regex_match_string(regex_node* root, char* string, regex_result*
*/
void regex_result_free(regex_result* result);
#endif
#endif

View File

@ -597,4 +597,5 @@ void regex_result_free(regex_result* result){
free(result->groups[index]);
}
result->matches = 0;
}
}