aboutsummaryrefslogtreecommitdiff
path: root/pattern.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-23 15:24:08 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-23 15:24:08 -0700
commitfac3fd97721958c8570869d24dd112fc6cbc468e (patch)
treeec00770c187f26923dc3d6aaf145ca9876754774 /pattern.h
parent8e1e6572feabd291cbd5048459c0a58c6460ff91 (diff)
Moving pattern lifetime tracking off of files and onto its own list of
allocated pats.
Diffstat (limited to 'pattern.h')
-rw-r--r--pattern.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/pattern.h b/pattern.h
index 1407cd1..2f63d98 100644
--- a/pattern.h
+++ b/pattern.h
@@ -108,15 +108,13 @@ typedef struct {
} maybe_pat_t;
__attribute__((nonnull, returns_nonnull))
-pat_t *bp_raw_literal(file_t *f, const char *str, size_t len);
+pat_t *bp_raw_literal(const char *str, size_t len);
__attribute__((nonnull))
maybe_pat_t bp_stringpattern(file_t *f, const char *str);
__attribute__((nonnull(1,2)))
maybe_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(1)))
-pat_t *either_pat(file_t *f, pat_t *first, pat_t *second);
+pat_t *chain_together(pat_t *first, pat_t *second);
+pat_t *either_pat(pat_t *first, pat_t *second);
__attribute__((nonnull))
maybe_pat_t bp_pattern(file_t *f, const char *str);