diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-12-17 19:26:38 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-12-17 19:26:38 -0800 |
| commit | b37359b4503d447457646e8f8e01810b6525bd56 (patch) | |
| tree | 4b2c7aee6dc9a6ae7a89188d500a645b2f9e311e | |
| parent | 14ae16d9871188af0a663d3f5d101e802dbdef64 (diff) | |
Cleanup
| -rw-r--r-- | viz.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -128,7 +128,7 @@ static void _visualize_matches(match_node_t *firstmatch, int depth, const char * static void _visualize_patterns(match_t *m) { - if (m->op->op == VM_REF && strcmp(m->op->args.s, "pattern") == 0) { + if (m->op->op == VM_REF && streq(m->op->args.s, "pattern")) { m = m->child; match_node_t first = {.m = m}; _visualize_matches(&first, 0, m->start, (size_t)(m->end - m->start)); |
