Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJurijs Klopovskis <jurijs.klopovskis@zabbix.com>2021-12-04 21:05:18 +0300
committerJurijs Klopovskis <jurijs.klopovskis@zabbix.com>2021-12-04 21:26:58 +0300
commit44d5616ff1cffd25b7b382accd839136f278f51f (patch)
tree532c860424195da9984571adf968298ab45c8b5f /include/zbxregexp.h
parentbc2a488838d10f04072939d91e8739a891fa86f4 (diff)
...G...PS. [ZBXNEXT-4922] fixed pcre2 error message reporting
Diffstat (limited to 'include/zbxregexp.h')
-rw-r--r--include/zbxregexp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/zbxregexp.h b/include/zbxregexp.h
index 81ed3bb4d24..8a50ee65d16 100644
--- a/include/zbxregexp.h
+++ b/include/zbxregexp.h
@@ -37,8 +37,8 @@ typedef struct
zbx_expression_t;
/* regular expressions */
-int zbx_regexp_compile(const char *pattern, zbx_regexp_t **regexp, const char **err_msg_static);
-int zbx_regexp_compile_ext(const char *pattern, zbx_regexp_t **regexp, int flags, const char **err_msg_static);
+int zbx_regexp_compile(const char *pattern, zbx_regexp_t **regexp, const char **err_msg);
+int zbx_regexp_compile_ext(const char *pattern, zbx_regexp_t **regexp, int flags, const char **err_msg);
void zbx_regexp_free(zbx_regexp_t *regexp);
int zbx_regexp_match_precompiled(const char *string, const zbx_regexp_t *regexp);
char *zbx_regexp_match(const char *string, const char *pattern, int *len);
@@ -62,4 +62,6 @@ void zbx_regexp_escape(char **string);
void zbx_wildcard_minimize(char *str);
int zbx_wildcard_match(const char *value, const char *wildcard);
+void zbx_regexp_err_msg_free(const char *err_msg);
+
#endif /* ZABBIX_ZBXREGEXP_H */