diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 14:55:30 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 14:55:30 -0700 |
| commit | d20afd10b693180b667ebdb0bfab7b9afabc0b42 (patch) | |
| tree | d91d5aa978c28d8a0cccc59e8ef0e6c35f7b18ad /pattern.h | |
| parent | 89c5888dd66c09cb304d21e2ce6f96c9cc42461f (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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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))) |
