Mercurial > hg > octave-terminal
changeset 4623:985bfd9b7dee
[project @ 2003-11-15 02:49:23 by jwe]
author | jwe |
---|---|
date | Sat, 15 Nov 2003 02:49:23 +0000 |
parents | ecaec3d39a8e |
children | 372fc47d1153 |
files | doc/ChangeLog doc/interpreter/munge-texi.cc |
diffstat | 2 files changed, 13 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-14 John W. Eaton <jwe@bevo.che.wisc.edu> + + * interpreter/munge-texi.cc (process_texi_input_file): + Avoid -Wshadow warnings. + 2003-08-27 John W. Eaton <jwe@bevo.che.wisc.edu> * refcard/Makefile.in (refcard-a4.pdf, refcard-legal.pdf,
--- a/doc/interpreter/munge-texi.cc +++ b/doc/interpreter/munge-texi.cc @@ -145,16 +145,16 @@ { std::string doc_string = help_text[symbol_name]; - int i = 0; - while (doc_string[i] == ' ') - i++; + int j = 0; + while (doc_string[j] == ' ') + j++; - if (doc_string.substr (i, 15) == "-*- texinfo -*-") + if (doc_string.substr (j, 15) == "-*- texinfo -*-") { - i += 15; + j += 15; - while (isspace (doc_string[i])) - i++; + while (isspace (doc_string[j])) + j++; // Make `see also' references in functions // possible using @anchor{TAG} (new with @@ -162,7 +162,7 @@ os << "@anchor{doc-" << symbol_name << "}\n"; - os << doc_string.substr (i); + os << doc_string.substr (j); } else os << doc_string;