mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
add std flag to clang
This commit is contained in:
parent
1aefb02da7
commit
43f5760a7e
2 changed files with 1 additions and 10 deletions
|
|
@ -1,5 +1,5 @@
|
|||
CC=clang
|
||||
COMMON_FLAGS=-g2 -fstack-protector-all
|
||||
COMMON_FLAGS=-g2 -std=gnu99 -fstack-protector-all -Wimplicit-function-declaration
|
||||
PROD_FLAGS=$(COMMON_FLAGS) -DLAMA_ENV
|
||||
TEST_FLAGS=$(COMMON_FLAGS) -DDEBUG_VERSION
|
||||
UNIT_TESTS_FLAGS=$(TEST_FLAGS)
|
||||
|
|
|
|||
|
|
@ -476,10 +476,6 @@ extern void *Lsubstring (void *subj, aint p, aint l) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
extern const char *re_compile_pattern (const char *__pattern, size_t __length,
|
||||
struct re_pattern_buffer *__buffer)
|
||||
_Attr_access_ ((__read_only__, 1, 2));
|
||||
|
||||
extern struct re_pattern_buffer *Lregexp (char *regexp) {
|
||||
regex_t *b = (regex_t *)malloc(sizeof(regex_t));
|
||||
|
||||
|
|
@ -494,11 +490,6 @@ extern struct re_pattern_buffer *Lregexp (char *regexp) {
|
|||
return b;
|
||||
}
|
||||
|
||||
extern regoff_t re_match (struct re_pattern_buffer *__buffer,
|
||||
const char *__String, regoff_t __length,
|
||||
regoff_t __start, struct re_registers *__regs)
|
||||
_Attr_access_ ((__read_only__, 2, 3));
|
||||
|
||||
extern aint LregexpMatch (struct re_pattern_buffer *b, char *s, aint pos) {
|
||||
aint res;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue