Mercurial > ~dholland > hg > tradcpp > index.cgi
diff files.c @ 199:1d2bad7151f9
Add a -debuglog option to send an execution trace to a file.
Intended to be used when debugging imake templates and other complex
input, not for debugging tradcpp itself.
author | David A. Holland |
---|---|
date | Sun, 04 Sep 2016 17:14:42 -0400 (2016-09-04) |
parents | 8c7e508da6cc |
children | 3a25180d3a5c |
line wrap: on
line diff
--- a/files.c Sat Dec 05 18:08:24 2015 -0500 +++ b/files.c Sun Sep 04 17:14:42 2016 -0400 @@ -182,6 +182,12 @@ place_setfilestart(&places.current, pf); places.nextline = places.current; + if (name) { + debuglog(&places.current, "Reading file %s", name); + } else { + debuglog(&places.current, "Reading standard input"); + } + bufmax = 128; bufend = 0; linestart = 0;