From ef07c8a22ea2a5450bb3b303edbcead50b3b37ee Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 21 Apr 2022 12:54:09 -0400 Subject: Made NULL end values default to strlen() --- pattern.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pattern.h') diff --git a/pattern.h b/pattern.h index dd763d5..a39f5bf 100644 --- a/pattern.h +++ b/pattern.h @@ -108,13 +108,13 @@ typedef struct { __attribute__((nonnull, returns_nonnull)) pat_t *bp_raw_literal(const char *str, size_t len); -__attribute__((nonnull)) +__attribute__((nonnull(1))) maybe_pat_t bp_stringpattern(const char *str, const char *end); -__attribute__((nonnull)) +__attribute__((nonnull(1,2))) maybe_pat_t bp_replacement(pat_t *replacepat, const char *replacement, const char *end); pat_t *chain_together(pat_t *first, pat_t *second); pat_t *either_pat(pat_t *first, pat_t *second); -__attribute__((nonnull)) +__attribute__((nonnull(1))) maybe_pat_t bp_pattern(const char *str, const char *end); void free_all_pats(void); __attribute__((nonnull)) -- cgit v1.2.3