From 17dbe5d9e8fcbe2c5f2f494658868b28857a25ca Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 10 May 2021 23:46:46 -0700 Subject: Added {word} feature and cleaned up the code some. --- pattern.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pattern.h') diff --git a/pattern.h b/pattern.h index 908d3b1..b3f21e9 100644 --- a/pattern.h +++ b/pattern.h @@ -7,8 +7,8 @@ #include "files.h" #include "types.h" -__attribute__((returns_nonnull, nonnull)) -pat_t *new_pat(file_t *f, const char *start, enum pattype_e type); +__attribute__((returns_nonnull, nonnull(1,2))) +pat_t *new_pat(file_t *f, const char *start, const char *end, enum pattype_e type); __attribute__((nonnull(1,2))) pat_t *bp_stringpattern(file_t *f, const char *str); __attribute__((nonnull(1,2))) -- cgit v1.2.3