Displaying 3 results from an estimated 3 matches for "free_regexp_".
Did you mean:
free_regexps
2014 Nov 28
2
[PATCH] lib: Add COMPILE_REGEXP macro to hide regexp constructors/destructors.
...s___match6
+/* Macro which compiles the regexp once when the library is loaded,
+ * and frees it when the library is unloaded.
+ */
+#define COMPILE_REGEXP(name,pattern,options) \
+ static void compile_regexp_##name (void) __attribute__((constructor)); \
+ static void free_regexp_##name (void) __attribute__((destructor)); \
+ static pcre *name; \
+ static void \
+ compile_regexp_##name (void) \
+ {...
2014 Nov 28
0
Re: [PATCH] lib: Add COMPILE_REGEXP macro to hide regexp constructors/destructors.
...ich compiles the regexp once when the library is loaded,
> + * and frees it when the library is unloaded.
> + */
> +#define COMPILE_REGEXP(name,pattern,options) \
> + static void compile_regexp_##name (void) __attribute__((constructor)); \
> + static void free_regexp_##name (void) __attribute__((destructor)); \
> + static pcre *name; \
> + static void \
> + compile_regexp_##name (void) \
> + {...
2016 Feb 23
3
[PATCH 1/2] lib: Allow the COMPILE_REGEXP macro to be used everywhere.
...if
+/* Macro which compiles the regexp once when the program/library is
+ * loaded, and frees it when the library is unloaded.
+ */
+#define COMPILE_REGEXP(name,pattern,options) \
+ static void compile_regexp_##name (void) __attribute__((constructor)); \
+ static void free_regexp_##name (void) __attribute__((destructor)); \
+ static pcre *name; \
+ \
+ static void \
+ compile_regexp_##name (v...