diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 12:12:56 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 12:12:56 -0800 |
| commit | cbe1d97b37963a7ab75900463570cb6a109be8b4 (patch) | |
| tree | 70f89a2ce638aa96cf617b3badef13bad2179871 /grammar.h | |
| parent | b29060f38b30e6e379769582a0cf7cc3e9ae5056 (diff) | |
Fixed bug with backrefs. The backref pushing was overly greedy and
has been updated to only push backrefs when a capture is directly
in the chain and not recursively contained within it.
Diffstat (limited to 'grammar.h')
| -rw-r--r-- | grammar.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,8 +9,8 @@ __attribute__((nonnull(2,4,5), returns_nonnull)) def_t *with_def(def_t *defs, file_t *f, size_t namelen, const char *name, vm_op_t *op); -__attribute__((nonnull(2,3))) -def_t *with_backrefs(def_t *defs, file_t *f, match_t *m); +__attribute__((nonnull(2,3,4), returns_nonnull)) +def_t *with_backref(def_t *defs, file_t *f, const char *name, match_t *m); __attribute__((nonnull(2))) def_t *load_grammar(def_t *defs, file_t *f); __attribute__((pure, nonnull(2))) |
