[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] pmccabe2html: bug fixes: don't skip last input line; quote filen
From: |
Torsten . Scheck |
Subject: |
[PATCH] pmccabe2html: bug fixes: don't skip last input line; quote filename in shell command |
Date: |
Wed, 10 Nov 2010 09:15:44 +0100 |
* 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.
---
build-aux/pmccabe2html | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/build-aux/pmccabe2html b/build-aux/pmccabe2html
index 28117af..1657176 100644
--- a/build-aux/pmccabe2html
+++ b/build-aux/pmccabe2html
@@ -142,7 +142,7 @@ function html_fnc_table (caption,
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,
@@ -423,7 +423,7 @@ function html_fnc (nfun,
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 @@ function wiki_fnc_table (caption,
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,
--
1.7.0.4
Torsten Scheck
Software-Engineer
Heidelberger Straße 17-19 | 69226 Nussloch (Germany)
____________________________________________
Leica Biosystems Nussloch GmbH | GmbH mit Sitz in Nussloch |
Registergericht Mannheim HRB 333205
Geschäftsführer: Arnd Kaldowski | Colin Davis | Dr. David Martyr
www.leica-microsystems.com
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
- [PATCH] pmccabe2html: bug fixes: don't skip last input line; quote filename in shell command,
Torsten . Scheck <=