aboutsummaryrefslogtreecommitdiff
path: root/pattern.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-23 14:55:30 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-23 14:55:30 -0700
commitd20afd10b693180b667ebdb0bfab7b9afabc0b42 (patch)
treed91d5aa978c28d8a0cccc59e8ef0e6c35f7b18ad /pattern.h
parent89c5888dd66c09cb304d21e2ce6f96c9cc42461f (diff)
API update: made new_pat() internal and added public bp_backref() to
cover that use case
Diffstat (limited to 'pattern.h')
-rw-r--r--pattern.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pattern.h b/pattern.h
index d12a25b..005e658 100644
--- a/pattern.h
+++ b/pattern.h
@@ -17,8 +17,8 @@ typedef struct {
} value;
} maybe_pat_t;
-__attribute__((returns_nonnull, nonnull(1,2)))
-pat_t *new_pat(file_t *f, const char *start, const char *end, size_t minlen, ssize_t maxlen, enum pattype_e type);
+__attribute__((nonnull, returns_nonnull))
+pat_t *bp_backref(file_t *f, match_t *m);
__attribute__((nonnull))
maybe_pat_t bp_stringpattern(file_t *f, const char *str);
__attribute__((nonnull(1,2)))