summaryrefslogtreecommitdiffstats
path: root/linenoise/example.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-10-10 09:45:35 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-10-10 09:45:35 -0700
commit0c09759df87cdbbd33296a086debe58e58587f7e (patch)
tree1fcf56007ee3207058291a642ae2fff039804818 /linenoise/example.c
parent2d173febd859a05708e14273397df61f75bea895 (diff)
downloadtxr-0c09759df87cdbbd33296a086debe58e58587f7e.tar.gz
txr-0c09759df87cdbbd33296a086debe58e58587f7e.tar.bz2
txr-0c09759df87cdbbd33296a086debe58e58587f7e.zip
Simplify some regex tree walking code.
* regex.c (reg_expand_nongreedy, reg_compile_csets): Generalize the compound_s case slightly by referring to sym rather than hard-coded compound_s. Then handle most of the regex operators under this same case. Their semantics are not relevant to the expansions being performed in these functions: all their arguments are regexes to be recursed over.
Diffstat (limited to 'linenoise/example.c')
0 files changed, 0 insertions, 0 deletions