Mercurial > hg > octave-avbm
changeset 3764:0ac9388e7e1f
[project @ 2001-01-17 03:41:39 by jwe]
author | jwe |
---|---|
date | Wed, 17 Jan 2001 03:41:39 +0000 |
parents | b6eb80762b14 |
children | e10451597802 |
files | src/ChangeLog src/error.cc |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> + + * error.cc (pr_where): Call pr_where_1 with two args, not one, to + avoid processing format escapes that might appear in formatted code. + 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> * error.cc (vwarning): Write to output_buf, then send formatted
--- a/src/error.cc +++ b/src/error.cc @@ -278,17 +278,17 @@ std::ostrstream output_buf; - output_buf << "\n"; + output_buf << std::endl; tree_print_code tpc (output_buf, ">>> "); curr_statement->accept (tpc); - output_buf << "\n" << ends; + output_buf << std::endl << std::ends; char *msg = output_buf.str (); - pr_where_1 (msg); + pr_where_1 ("%s", msg); delete [] msg; }