Make sure codebase is C90.

This commit is contained in:
Danila Fedorin 2018-02-04 00:27:25 -08:00
parent 4e7632f3c0
commit 71b32a6b08
3 changed files with 8 additions and 2 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)

View File

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

View File

@ -598,3 +598,4 @@ void regex_result_free(regex_result* result){
}
result->matches = 0;
}