diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-03-09 21:48:07 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-03-09 21:48:07 -0700 |
commit | 776446f65064c3795919b5d88effa90bdb636113 (patch) | |
tree | 4a5780418fa0c590f74343b471048c883f2efd12 /struct.c | |
parent | b6f7c83a321f8043bc4edef12530ae25b1917579 (diff) | |
download | txr-776446f65064c3795919b5d88effa90bdb636113.tar.gz txr-776446f65064c3795919b5d88effa90bdb636113.tar.bz2 txr-776446f65064c3795919b5d88effa90bdb636113.zip |
tags: don't scan files twice.
* tags.tl (collect-tags): Snarf the file as a string from
which we can make a string byte input stream suitable for
parsing. Having that string, we can handle hash bang by
detecting it and commenting it out with a semicolon. We obtain
the lines by splitting the string. When calling read, we
pass the path as the name argument, so error messages still
use the correct file name.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions