# HG changeset patch # User Torsten Scheck # Date 1289376944 -3600 # Node ID 571aae732449555e4cd21c8b58ca49a5eefb17b9 # Parent b3ccbcf1940e9c911472a99b619ec15569665049 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 diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-11-11 Torsten Scheck (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 * doc/posix-functions/strerror.texi: List more failing platforms. diff --git a/build-aux/pmccabe2html b/build-aux/pmccabe2html --- a/build-aux/pmccabe2html +++ b/build-aux/pmccabe2html @@ -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 "" print "" print "" @@ -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,