follow-up 3
This commit is contained in:
@@ -1832,6 +1832,7 @@ extern boolean regex_compile(const char *, struct nhregex *);
|
|||||||
extern const char *regex_error_desc(struct nhregex *);
|
extern const char *regex_error_desc(struct nhregex *);
|
||||||
extern boolean regex_match(const char *, struct nhregex *);
|
extern boolean regex_match(const char *, struct nhregex *);
|
||||||
extern void regex_free(struct nhregex *);
|
extern void regex_free(struct nhregex *);
|
||||||
|
extern void regex_at_exit(void);
|
||||||
|
|
||||||
/* ### consoletty.c ### */
|
/* ### consoletty.c ### */
|
||||||
|
|
||||||
|
|||||||
@@ -63,3 +63,13 @@ extern "C" {
|
|||||||
delete re;
|
delete re;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
regex_at_exit(void)
|
||||||
|
{
|
||||||
|
if (cppregex_static_buffer != 0) {
|
||||||
|
free((genericptr_t) cppregex_static_buffer);
|
||||||
|
cppregex_static_buffer = (char *) 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,3 +65,9 @@ regex_free(struct nhregex *re)
|
|||||||
free((genericptr_t) re);
|
free((genericptr_t) re);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
regex_at_exit(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -104,3 +104,9 @@ regex_free(struct nhregex *re)
|
|||||||
regfree(&re->re);
|
regfree(&re->re);
|
||||||
free(re);
|
free(re);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
regex_at_exit(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user