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 --- pattern.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pattern.h') diff --git a/pattern.h b/pattern.h index c0a5ed4..c237b50 100644 --- a/pattern.h +++ b/pattern.h @@ -15,10 +15,12 @@ __attribute__((nonnull(1,2))) 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); +__attribute__((nonnull(1))) +pat_t *chain_together(file_t *f, pat_t *first, pat_t *second); __attribute__((nonnull)) pat_t *bp_pattern(file_t *f, const char *str); __attribute__((nonnull)) -def_t *bp_definition(file_t *f, const char *str); +def_t *bp_definition(def_t *defs, file_t *f, const char *str); __attribute__((nonnull)) void destroy_pat(pat_t *pat); -- cgit v1.2.3