]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: pattern: export pat_ref_push()
authorWilly Tarreau <w@1wt.eu>
Wed, 28 Oct 2020 10:18:06 +0000 (11:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 31 Oct 2020 12:13:48 +0000 (13:13 +0100)
Strangely this one was marked static inline within the file itself.
Let's export it.

include/haproxy/pattern.h
src/pattern.c

index e689a134b438560db9e210f8ab6b2de41bf3efbe..40553725dc393f1b6591e51e0492e4e8bfdaca7e 100644 (file)
@@ -190,6 +190,7 @@ struct pat_ref *pat_ref_new(const char *reference, const char *display, unsigned
 struct pat_ref *pat_ref_newid(int unique_id, const char *display, unsigned int flags);
 struct pat_ref_elt *pat_ref_find_elt(struct pat_ref *ref, const char *key);
 struct pat_ref_elt *pat_ref_append(struct pat_ref *ref, const char *pattern, const char *sample, int line);
+int pat_ref_push(struct pat_ref_elt *elt, struct pattern_expr *expr, int patflags, char **err);
 int pat_ref_add(struct pat_ref *ref, const char *pattern, const char *sample, char **err);
 int pat_ref_set(struct pat_ref *ref, const char *pattern, const char *sample, char **err);
 int pat_ref_set_by_id(struct pat_ref *ref, struct pat_ref_elt *refelt, const char *value, char **err);
index 0890fb25f4367842ef182740063ae166a8f073f3..f1accdcb6e43f11ebedc0e935c51bb91dc6abd51 100644 (file)
@@ -1934,7 +1934,6 @@ struct pat_ref_elt *pat_ref_append(struct pat_ref *ref, const char *pattern, con
  * in <expr>. If the function fails, it returns0 and <err> is filled.
  * In success case, the function returns 1.
  */
-static inline
 int pat_ref_push(struct pat_ref_elt *elt, struct pattern_expr *expr,
                  int patflags, char **err)
 {