Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison files.c @ 160:d6e6b3940780
Fully implement #line.
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Fri, 27 Feb 2015 02:06:49 +0100 |
parents | ed45f2d8d3bc |
children | f14f5352956c |
comparison
equal
deleted
inserted
replaced
159:8cef6d7227a8 | 160:d6e6b3940780 |
---|---|
273 /* count how many commented-out newlines we swallowed */ | 273 /* count how many commented-out newlines we swallowed */ |
274 nextlinestartplace.line += countnls(buf, linestart, lineend); | 274 nextlinestartplace.line += countnls(buf, linestart, lineend); |
275 | 275 |
276 /* if the line isn't empty, process it */ | 276 /* if the line isn't empty, process it */ |
277 if (lineend > linestart) { | 277 if (lineend > linestart) { |
278 directive_gotline(&linestartplace, | 278 directive_gotline(&linestartplace, &nextlinestartplace, |
279 buf+linestart, lineend-linestart); | 279 buf+linestart, lineend-linestart); |
280 } | 280 } |
281 | 281 |
282 linestart = nextlinestart; | 282 linestart = nextlinestart; |
283 lineend = findeol(buf, linestart, bufend); | 283 lineend = findeol(buf, linestart, bufend); |