Mercurial > gnulib
changeset 33537:64368c0f156d
pmccabe2html: bug fixes: don't skip last input line; quote filename in shell command
* build-aux/pmccabe2html: Fixed a off-by-one error, so last input line is
also considered for output. Quoted function name in shell command, so
temporary files for functions like MyClass::operator() are removed
correctly without errors.
Signed-off-by: Simon Josefsson <simon@josefsson.org>
author | Torsten Scheck <Torsten.Scheck@Leica-Microsystems.com> |
---|---|
date | Wed, 10 Nov 2010 09:15:44 +0100 |
parents | 88f172446f0d |
children | 956807df0a4c |
files | ChangeLog build-aux/pmccabe2html |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Sep 29 21:56:27 2010 +0100 +++ b/ChangeLog Wed Nov 10 09:15:44 2010 +0100 @@ -1,3 +1,10 @@ +2010-11-11 Torsten Scheck <Torsten.Scheck@Leica-Microsystems.com> (tiny change) + + * build-aux/pmccabe2html: Fixed a off-by-one error, so last input + line is also considered for output. Quoted function name in shell + command, so temporary files for functions like MyClass::operator() + are removed correctly without errors. + 2010-11-09 Bruno Haible <bruno@clisp.org> * doc/posix-functions/strerror.texi: List more failing platforms.
--- a/build-aux/pmccabe2html Wed Sep 29 21:56:27 2010 +0100 +++ b/build-aux/pmccabe2html Wed Nov 10 09:15:44 2010 +0100 @@ -144,7 +144,7 @@ num_lines_p, first_line_p, file_p) - for (nfnc = 1; nfnc < nfuncs; nfnc++) + for (nfnc = 1; nfnc <= nfuncs; nfnc++) { html_fnc(nfnc, fname_p, @@ -425,7 +425,7 @@ print codeline } close(fname nfun "_fn.txt") - system("rm " fname nfun "_fn.txt") + system("rm " "'" fname "'" nfun "_fn.txt") print "</pre>" print "</div>" print "</td>" @@ -653,7 +653,7 @@ num_lines_p, first_line_p, file_p) - for (nfnc = 1; nfnc < nfuncs; nfnc++) + for (nfnc = 1; nfnc <= nfuncs; nfnc++) { wiki_fnc(nfnc, fname_p,