Mercurial > hg > octave-lojdl
changeset 3567:dd8998699aa8
[project @ 2000-02-03 09:54:28 by jwe]
author | jwe |
---|---|
date | Thu, 03 Feb 2000 09:54:29 +0000 |
parents | 4b1a93f83264 |
children | 58549b931ad5 |
files | src/DLD-FUNCTIONS/dassl.cc src/DLD-FUNCTIONS/fsolve.cc src/DLD-FUNCTIONS/lsode.cc src/DLD-FUNCTIONS/quad.cc src/lex.l |
diffstat | 5 files changed, 26 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/dassl.cc +++ b/src/DLD-FUNCTIONS/dassl.cc @@ -26,6 +26,7 @@ #include <string> +#include <iomanip> #include <iostream> #include "DASSL.h" @@ -314,7 +315,11 @@ const char *keyword; while ((keyword = list->keyword) != 0) { - os.form (" %-40s ", keyword); + os << std::setw (40) + << std::setfill (' ') + << std::setiosflags (std::ios::left) + << " " << keyword << " " + << std::resetiosflags (std::ios::left); double val = (dassl_opts.*list->d_get_fcn) (); if (val < 0.0)
--- a/src/DLD-FUNCTIONS/fsolve.cc +++ b/src/DLD-FUNCTIONS/fsolve.cc @@ -26,6 +26,7 @@ #include <string> +#include <iomanip> #include <iostream> #include "NLEqn.h" @@ -254,7 +255,11 @@ const char *keyword; while ((keyword = list->keyword) != 0) { - os.form (" %-40s ", keyword); + os << std::setw (40) + << std::setfill (' ') + << std::setiosflags (std::ios::left) + << " " << keyword << " " + << std::resetiosflags (std::ios::left); double val = (fsolve_opts.*list->d_get_fcn) (); if (val < 0.0)
--- a/src/DLD-FUNCTIONS/lsode.cc +++ b/src/DLD-FUNCTIONS/lsode.cc @@ -26,6 +26,7 @@ #include <string> +#include <iomanip> #include <iostream> #include "LSODE.h" @@ -374,7 +375,12 @@ const char *keyword; while ((keyword = list->keyword) != 0) { - os.form (" %-40s ", keyword); + os << std::setw (40) + << std::setfill (' ') + << std::setiosflags (std::ios::left) + << " " << keyword << " " + << std::resetiosflags (std::ios::left); + if (list->d_get_fcn) { double val = (lsode_opts.*list->d_get_fcn) ();
--- a/src/DLD-FUNCTIONS/quad.cc +++ b/src/DLD-FUNCTIONS/quad.cc @@ -26,6 +26,7 @@ #include <string> +#include <iomanip> #include <iostream> #include "Quad.h" @@ -334,7 +335,11 @@ const char *keyword; while ((keyword = list->keyword) != 0) { - os.form (" %-40s ", keyword); + os << std::setw (40) + << std::setfill (' ') + << std::setiosflags (std::ios::left) + << " " << keyword << " " + << std::resetiosflags (std::ios::left); double val = (quad_opts.*list->d_get_fcn) (); if (val < 0.0)
--- a/src/lex.l +++ b/src/lex.l @@ -2304,7 +2304,7 @@ DEFVAR (warn_separator_insert, 0.0, warn_separator_insert, "-*- texinfo -*-\n\ @defvr {Built-in Variable} warn_separator_insert\n\ -Print warning if commas or semicolons that might be inserted\n\ +Print warning if commas or semicolons might be inserted\n\ automatically in literal matrices.\n\ @end defvr");