diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 15:24:08 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 15:24:08 -0700 |
| commit | fac3fd97721958c8570869d24dd112fc6cbc468e (patch) | |
| tree | ec00770c187f26923dc3d6aaf145ca9876754774 /pattern.h | |
| parent | 8e1e6572feabd291cbd5048459c0a58c6460ff91 (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.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); |
