From 3cc645f2d0393e6e2d1d03a099a0c3320acb2a20 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 17 Jan 2021 13:33:10 -0800 Subject: Improved argument parsing and added support for prompting user for a pattern if none is provided --- definitions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'definitions.h') diff --git a/definitions.h b/definitions.h index 5a006b4..8c3ae87 100644 --- a/definitions.h +++ b/definitions.h @@ -7,8 +7,8 @@ #include "files.h" #include "types.h" -__attribute__((nonnull(2,4,5), returns_nonnull)) -def_t *with_def(def_t *defs, file_t *f, size_t namelen, const char *name, pat_t *pat); +__attribute__((nonnull(3,4), returns_nonnull)) +def_t *with_def(def_t *defs, size_t namelen, const char *name, pat_t *pat); __attribute__((nonnull(2,3,4), returns_nonnull)) def_t *with_backref(def_t *defs, file_t *f, const char *name, match_t *m); __attribute__((nonnull(2))) -- cgit v1.2.3