diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 15:40:45 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 15:40:45 -0700 |
| commit | ce915a543371efab0652de1bbc4cec77b1214319 (patch) | |
| tree | 1bb3f415c1f39f44d794e0fa347f6ebdfe953f86 /pattern.h | |
| parent | fac3fd97721958c8570869d24dd112fc6cbc468e (diff) | |
Patterns don't need to reference a separate `start` value anymore
Diffstat (limited to 'pattern.h')
| -rw-r--r-- | pattern.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -110,13 +110,13 @@ typedef struct { __attribute__((nonnull, returns_nonnull)) 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); +maybe_pat_t bp_stringpattern(const char *str, const char *end); +__attribute__((nonnull)) +maybe_pat_t bp_replacement(pat_t *replacepat, const char *replacement, const char *end); 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); +maybe_pat_t bp_pattern(const char *str, const char *end); void free_pat(pat_t *pat); |
