Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison main.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 |
parents | f5981d0ee2b4 |
children | 3a25180d3a5c |
comparison
equal
deleted
inserted
replaced
198:4158b974e23f | 199:1d2bad7151f9 |
---|---|
827 | 827 |
828 static const struct arg_option arg_options[] = { | 828 static const struct arg_option arg_options[] = { |
829 { "MF", commandline_setdependoutput }, | 829 { "MF", commandline_setdependoutput }, |
830 { "MQ", commandline_setdependtarget_quoted }, | 830 { "MQ", commandline_setdependtarget_quoted }, |
831 { "MT", commandline_setdependtarget }, | 831 { "MT", commandline_setdependtarget }, |
832 { "debuglog", debuglog_open }, | |
832 { "idirafter", commandline_addincpath_late }, | 833 { "idirafter", commandline_addincpath_late }, |
833 { "imacros", commandline_addfile_nooutput }, | 834 { "imacros", commandline_addfile_nooutput }, |
834 { "include", commandline_addfile_output }, | 835 { "include", commandline_addfile_output }, |
835 { "iprefix", commandline_setprefix }, | 836 { "iprefix", commandline_setprefix }, |
836 { "iquote", commandline_addincpath_quote }, | 837 { "iquote", commandline_addincpath_quote }, |
1012 place_cleanup(); | 1013 place_cleanup(); |
1013 | 1014 |
1014 commandline_files_cleanup(); | 1015 commandline_files_cleanup(); |
1015 commandline_macros_cleanup(); | 1016 commandline_macros_cleanup(); |
1016 incpath_cleanup(); | 1017 incpath_cleanup(); |
1018 debuglog_close(); | |
1017 | 1019 |
1018 num = stringarray_num(&freestrings); | 1020 num = stringarray_num(&freestrings); |
1019 for (i=0; i<num; i++) { | 1021 for (i=0; i<num; i++) { |
1020 dostrfree(stringarray_get(&freestrings, i)); | 1022 dostrfree(stringarray_get(&freestrings, i)); |
1021 } | 1023 } |