From 90c3c13a02e501d3bea839dceb00f09c89bfb5fe Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 21 Sep 2021 18:45:43 -0700 Subject: Moving cache logic into match, cleaner next_match() API, and slightly less tightly coupled UTF8 API --- pattern.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pattern.h') diff --git a/pattern.h b/pattern.h index 39aba63..b903d5b 100644 --- a/pattern.h +++ b/pattern.h @@ -9,7 +9,7 @@ __attribute__((returns_nonnull, nonnull(1,2))) pat_t *new_pat(file_t *f, const char *start, const char *end, size_t minlen, ssize_t maxlen, enum pattype_e type); -__attribute__((nonnull(1,2))) +__attribute__((nonnull)) pat_t *bp_stringpattern(file_t *f, const char *str); __attribute__((nonnull(1,2))) pat_t *bp_replacement(file_t *f, pat_t *replacepat, const char *replacement); -- cgit v1.2.3