Make sure codebase is C90.
This commit is contained in:
parent
4e7632f3c0
commit
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)
|
||||||
|
|
||||||
|
|
|
@ -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