# HG changeset patch # User jwe # Date 949540641 0 # Node ID ab7fa5a8f23fff6c56482ad70ccc2ea4d013d3f3 # Parent 975398bed659d02d7cc9d360e2534ec7bc6967e8 [project @ 2000-02-03 01:17:15 by jwe] diff -r 975398bed659 -r ab7fa5a8f23f src/ChangeLog --- a/src/ChangeLog Wed Feb 02 22:51:11 2000 +0000 +++ b/src/ChangeLog Thu Feb 03 01:17:21 2000 +0000 @@ -1,5 +1,26 @@ 2000-02-02 John W. Eaton + * variables.cc (F__dump_symbol_info__): Fix continuation char. + * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. + * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. + * DLD-FUNCTIONS/det.cc (Fdet): Likewise. + * DLD-FUNCTIONS/eig.cc (Feig): Likewise. + * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. + * DLD-FUNCTIONS/givens.cc (givens): Likewise. + * DLD-FUNCTIONS/hess.cc (hess): Likewise. + * DLD-FUNCTIONS/inv.cc (inv): Likewise. + * DLD-FUNCTIONS/log.cc (logm): Likewise. + * DLD-FUNCTIONS/lu.cc (lu): Likewise. + * DLD-FUNCTIONS/qr.cc (qr): Likewise. + * DLD-FUNCTIONS/schur.cc (schur): Likewise. + * DLD-FUNCTIONS/balance.cc (balance): Likewise. + * DLD-FUNCTIONS/svd.cc (svd): Likewise. + * DLD-FUNCTIONS/syl.cc (syl): Likewise. + * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. + + * token.h (token::token_type, token::end_tok_type, + token::plot_tok_type): Delete extraneous comma from enum decls. + * pt-idx.cc (tree_index_expression::tree_index_expression): Delete default arg values. diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/balance.cc --- a/src/DLD-FUNCTIONS/balance.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/balance.cc Thu Feb 03 01:17:21 2000 +0000 @@ -62,7 +62,7 @@ } DEFUN_DLD (balance, args, nargout, - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{aa} =} balance (@var{a}, @var{opt})\n\ @deftypefnx {Loadable Function} {[@var{dd}, @var{aa}] =} balance (@var{a}, @var{opt})\n\ @deftypefnx {Loadable Function} {[@var{cc}, @var{dd}, @var{aa}, @var{bb}] =} balance (@var{a}, @var{b}, @var{opt})\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/besselj.cc --- a/src/DLD-FUNCTIONS/besselj.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/besselj.cc Thu Feb 03 01:17:21 2000 +0000 @@ -273,7 +273,7 @@ \n\ If requested, @var{ierr} contains the following status information\n\ and is the same size as the result.\n\ -\n +\n\ @enumerate 0\n\ @item\n\ Normal return.\n\ @@ -390,7 +390,7 @@ \n\ If requested, @var{ierr} contains the following status information and\n\ is the same size as the result.\n\ -\n +\n\ @enumerate 0\n\ @item\n\ Normal return.\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/chol.cc --- a/src/DLD-FUNCTIONS/chol.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/chol.cc Thu Feb 03 01:17:21 2000 +0000 @@ -34,7 +34,7 @@ #include "utils.h" DEFUN_DLD (chol, args, nargout, - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} chol (@var{a})\n\ @cindex Cholesky factorization\n\ Compute the Cholesky factor, @var{r}, of the symmetric positive definite\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/det.cc --- a/src/DLD-FUNCTIONS/det.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/det.cc Thu Feb 03 01:17:21 2000 +0000 @@ -34,7 +34,7 @@ #include "utils.h" DEFUN_DLD (det, args, , - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} det (@var{a})\n\ Compute the determinant of @var{a} using @sc{Linpack}.\n\ @end deftypefn") diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/eig.cc --- a/src/DLD-FUNCTIONS/eig.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/eig.cc Thu Feb 03 01:17:21 2000 +0000 @@ -33,7 +33,7 @@ #include "utils.h" DEFUN_DLD (eig, args, nargout, - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{lambda} =} eig (@var{a})\n\ @deftypefnx {Loadable Function} {[@var{v}, @var{lambda}] =} eig (@var{a})\n\ The eigenvalues (and eigenvectors) of a matrix are computed in a several\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/expm.cc --- a/src/DLD-FUNCTIONS/expm.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/expm.cc Thu Feb 03 01:17:21 2000 +0000 @@ -33,7 +33,7 @@ #include "utils.h" DEFUN_DLD (expm, args, , - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} expm (@var{a})\n\ Return the exponential of a matrix, defined as the infinite Taylor\n\ series\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/gammainc.cc --- a/src/DLD-FUNCTIONS/gammainc.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/gammainc.cc Thu Feb 03 01:17:21 2000 +0000 @@ -33,7 +33,7 @@ #include "utils.h" DEFUN_DLD (gammainc, args, , - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} gammainc (@var{x}, @var{a})\n\ Computes the incomplete gamma function,\n\ @iftex\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/givens.cc --- a/src/DLD-FUNCTIONS/givens.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/givens.cc Thu Feb 03 01:17:21 2000 +0000 @@ -31,7 +31,7 @@ #include "oct-obj.h" DEFUN_DLD (givens, args, nargout, - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{g} =} givens (@var{x}, @var{y})\n\ @deftypefnx {Loadable Function} {[@var{c}, @var{s}] =} givens (@var{x}, @var{y})\n\ @iftex\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/hess.cc --- a/src/DLD-FUNCTIONS/hess.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/hess.cc Thu Feb 03 01:17:21 2000 +0000 @@ -34,7 +34,7 @@ #include "utils.h" DEFUN_DLD (hess, args, nargout, - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{h} =} hess (@var{a})\n\ @deftypefnx {Loadable Function} {[@var{p}, @var{h}] =} hess (@var{a})\n\ @cindex Hessenberg decomposition\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/inv.cc --- a/src/DLD-FUNCTIONS/inv.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/inv.cc Thu Feb 03 01:17:21 2000 +0000 @@ -31,7 +31,7 @@ #include "utils.h" DEFUN_DLD (inv, args, , - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} inv (@var{a})\n\ @deftypefnx {Loadable Function} {} inverse (@var{a})\n\ Compute the inverse of the square matrix @var{a}.\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/log.cc --- a/src/DLD-FUNCTIONS/log.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/log.cc Thu Feb 03 01:17:21 2000 +0000 @@ -36,7 +36,7 @@ // one... DEFUN_DLD (logm, args, , - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} logm (@var{a})\n\ Compute the matrix logarithm of the square matrix @var{a}. Note that\n\ this is currently implemented in terms of an eigenvalue expansion and\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/lu.cc --- a/src/DLD-FUNCTIONS/lu.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/lu.cc Thu Feb 03 01:17:21 2000 +0000 @@ -34,7 +34,7 @@ #include "utils.h" DEFUN_DLD (lu, args, nargout, - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {[@var{l}, @var{u}, @var{p}] =} lu (@var{a})\n\ @cindex LU decomposition\n\ Compute the LU decomposition of @var{a}, using subroutines from\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/qr.cc --- a/src/DLD-FUNCTIONS/qr.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/qr.cc Thu Feb 03 01:17:21 2000 +0000 @@ -53,7 +53,7 @@ // that R = triu (qr (X)) DEFUN_DLD (qr, args, nargout, - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {[@var{q}, @var{r}, @var{p}] =} qr (@var{a})\n\ @cindex QR factorization\n\ Compute the QR factorization of @var{a}, using standard @sc{Lapack}\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/schur.cc --- a/src/DLD-FUNCTIONS/schur.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/schur.cc Thu Feb 03 01:17:21 2000 +0000 @@ -36,7 +36,7 @@ #include "utils.h" DEFUN_DLD (schur, args, nargout, - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{s} =} schur (@var{a})\n\ @deftypefnx {Loadable Function} {[@var{u}, @var{s}] =} schur (@var{a}, @var{opt})\n\ @cindex Schur decomposition\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/svd.cc --- a/src/DLD-FUNCTIONS/svd.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/svd.cc Thu Feb 03 01:17:21 2000 +0000 @@ -35,7 +35,7 @@ #include "utils.h" DEFUN_DLD (svd, args, nargout, - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{s} =} svd (@var{a})\n\ @deftypefnx {Loadable Function} {[@var{u}, @var{s}, @var{v}] =} svd (@var{a})\n\ @cindex singular value decomposition\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/DLD-FUNCTIONS/syl.cc --- a/src/DLD-FUNCTIONS/syl.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/DLD-FUNCTIONS/syl.cc Thu Feb 03 01:17:21 2000 +0000 @@ -33,7 +33,7 @@ #include "utils.h" DEFUN_DLD (syl, args, nargout, - "-*- texinfo -*- + "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{x} =} syl (@var{a}, @var{b}, @var{c})\n\ Solve the Sylvester equation\n\ @iftex\n\ diff -r 975398bed659 -r ab7fa5a8f23f src/error.cc --- a/src/error.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/error.cc Thu Feb 03 01:17:21 2000 +0000 @@ -103,7 +103,7 @@ if (! error_message_buffer) { - error_message_buffer = new ostrstream; + error_message_buffer = new std::ostrstream; // XXX FIXME XXX -- this is ugly, but it prevents // diff -r 975398bed659 -r ab7fa5a8f23f src/load-save.cc --- a/src/load-save.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/load-save.cc Thu Feb 03 01:17:21 2000 +0000 @@ -1631,11 +1631,11 @@ << "==== ==== ==== ====\n"; output_buf - << setiosflags (std::ios::left) - << setw (16) << tc.type_name () . c_str () - << setiosflags (std::ios::right) - << setw (7) << tc.rows () - << setw (7) << tc.columns () + << std::setiosflags (std::ios::left) + << std::setw (16) << tc.type_name () . c_str () + << std::setiosflags (std::ios::right) + << std::setw (7) << tc.rows () + << std::setw (7) << tc.columns () << " "; } output_buf << name << "\n"; diff -r 975398bed659 -r ab7fa5a8f23f src/oct-stream.cc --- a/src/oct-stream.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/oct-stream.cc Thu Feb 03 01:17:21 2000 +0000 @@ -1130,7 +1130,7 @@ } \ else \ { \ - ostrstream buf; \ + std::ostrstream buf; \ \ int c = EOF; \ \ @@ -1171,7 +1171,7 @@ } \ else \ { \ - ostrstream buf; \ + std::ostrstream buf; \ \ std::string char_class = elt->char_class; \ \ diff -r 975398bed659 -r ab7fa5a8f23f src/ov-fcn.cc --- a/src/ov-fcn.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/ov-fcn.cc Thu Feb 03 01:17:21 2000 +0000 @@ -37,6 +37,7 @@ octave_function::clone (void) { panic_impossible (); + return 0; } /* diff -r 975398bed659 -r ab7fa5a8f23f src/ov-struct.cc --- a/src/ov-struct.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/ov-struct.cc Thu Feb 03 01:17:21 2000 +0000 @@ -46,6 +46,7 @@ bool silent) { // XXX DO_ME XXX + return octave_value (); } octave_value diff -r 975398bed659 -r ab7fa5a8f23f src/pr-output.cc --- a/src/pr-output.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/pr-output.cc Thu Feb 03 01:17:21 2000 +0000 @@ -984,12 +984,12 @@ || flt_fmt == oct_mach_info::unknown) { for (size_t i = 0; i < sizeof (double); i++) - os << setw (2) << static_cast (tmp.i[i]); + os << std::setw (2) << static_cast (tmp.i[i]); } else { for (int i = sizeof (double) - 1; i >= 0; i--) - os << setw (2) << static_cast (tmp.i[i]); + os << std::setw (2) << static_cast (tmp.i[i]); } os.fill (ofill); @@ -1039,14 +1039,14 @@ s = "Inf"; if (fw > 0) - os << setw (fw) << s; + os << std::setw (fw) << s; else os << s; } else if (xisnan (d)) { if (fw > 0) - os << setw (fw) << "NaN"; + os << std::setw (fw) << "NaN"; else os << "NaN"; } @@ -1139,7 +1139,7 @@ int num_cols = lim - col; - os << setw (extra_indent) << ""; + os << std::setw (extra_indent) << ""; if (num_cols == 1) os << " Column " << col + 1 << ":\n"; @@ -1295,7 +1295,7 @@ for (int i = 0; i < nr; i++) { - os << setw (extra_indent) << ""; + os << std::setw (extra_indent) << ""; for (int j = col; j < lim; j++) { @@ -1467,7 +1467,7 @@ for (int i = 0; i < nr; i++) { - os << setw (extra_indent) << ""; + os << std::setw (extra_indent) << ""; for (int j = col; j < lim; j++) { @@ -1570,7 +1570,7 @@ pr_col_num_header (os, total_width, max_width, lim, col, extra_indent); - os << setw (extra_indent) << ""; + os << std::setw (extra_indent) << ""; for (int i = col; i < lim; i++) { diff -r 975398bed659 -r ab7fa5a8f23f src/symtab.cc --- a/src/symtab.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/symtab.cc Thu Feb 03 01:17:21 2000 +0000 @@ -453,9 +453,10 @@ << (hides_fcn () ? "f" : (hides_builtin () ? "F" : "-")) #endif << " " - << setiosflags (std::ios::left) << setw (24) << type_name () . c_str (); + << std::setiosflags (std::ios::left) << std::setw (24) + << type_name () . c_str (); - os << resetiosflags (std::ios::left); + os << std::resetiosflags (std::ios::left); int nr = rows (); int nc = columns (); @@ -463,14 +464,14 @@ if (nr < 0) os << " -"; else - os << setiosflags (std::ios::right) << setw (7) << nr; + os << std::setiosflags (std::ios::right) << std::setw (7) << nr; if (nc < 0) os << " -"; else - os << setiosflags (std::ios::right) << setw (7) << nc; + os << std::setiosflags (std::ios::right) << std::setw (7) << nc; - os << resetiosflags (std::ios::right); + os << std::resetiosflags (std::ios::right); os << " " << name () << "\n"; } diff -r 975398bed659 -r ab7fa5a8f23f src/token.h --- a/src/token.h Wed Feb 02 22:51:11 2000 +0000 +++ b/src/token.h Thu Feb 03 01:17:21 2000 +0000 @@ -35,6 +35,7 @@ token { public: + enum token_type { generic_token, @@ -42,7 +43,7 @@ double_token, ettype_token, pttype_token, - sym_rec_token, + sym_rec_token }; enum end_tok_type @@ -54,14 +55,14 @@ switch_end, while_end, try_catch_end, - unwind_protect_end, + unwind_protect_end }; enum plot_tok_type { replot = 1, two_dee = 2, - three_dee = 3, + three_dee = 3 }; token (int l = -1, int c = -1); diff -r 975398bed659 -r ab7fa5a8f23f src/variables.cc --- a/src/variables.cc Wed Feb 02 22:51:11 2000 +0000 +++ b/src/variables.cc Thu Feb 03 01:17:21 2000 +0000 @@ -1256,7 +1256,7 @@ DEFUN (__dump_symbol_info__, args, , "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} __dump_symbol_info__ (@var{name})\n\ -Print symbol table information for the symbol @var{name}. +Print symbol table information for the symbol @var{name}.\n\ @end deftypefn") { octave_value_list retval;