summaryrefslogtreecommitdiffstats
path: root/syslog.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-21 03:31:45 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-21 03:31:45 -0700
commit77f63c2a9e338207cb1fbe59b410958ce2ecda6d (patch)
tree85507cb1d398ab7a02183baeebc6fa4b71431692 /syslog.c
parent9bf70a553426b49ae0a2967207472bcd35b2754c (diff)
downloadtxr-77f63c2a9e338207cb1fbe59b410958ce2ecda6d.tar.gz
txr-77f63c2a9e338207cb1fbe59b410958ce2ecda6d.tar.bz2
txr-77f63c2a9e338207cb1fbe59b410958ce2ecda6d.zip
awk macro: streamline field splitting.
* share/txr/awk.tl (sys:awk-state rec-to-f): Check for empty record only in the fs case; it's not necessary when tokenizing with ft. Check (not self.kfs) first, since it's the common case. Handle default case (no fs or ft) using tok-str using the regex #/[^ \t\n]+/, which requires no trim-str and no empty record check.
Diffstat (limited to 'syslog.c')
0 files changed, 0 insertions, 0 deletions