changeset 8749:5a7494ee68a3

liboctave/cmd-edit.cc, src/input.cc: use fputs instead of fprintf
author John W. Eaton <jwe@octave.org>
date Mon, 16 Feb 2009 01:41:06 -0500
parents d1eed318100f
children 8af4ba6b4216
files NEWS liboctave/ChangeLog liboctave/cmd-edit.cc src/ChangeLog src/input.cc
diffstat 5 files changed, 19 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Mon Feb 16 00:38:25 2009 -0500
+++ b/NEWS	Mon Feb 16 01:41:06 2009 -0500
@@ -32,7 +32,7 @@
       comet               ezpolar     ishghandle
       dellistener         ezsurf      linkprop
 
-** Improvements to the debugger.
+ ** Improvements to the debugger.
 
     The interactive debugging features have been improved.  Stopping
     on statements with dbstop should work correctly now.  Stepping
@@ -42,6 +42,13 @@
     to print the current function call stack.  The new dbquit function
     is available to exit the debugging mode.
 
+ ** Improved traceback error messages.
+
+    Traceback error messages are much more concise and easier to
+    understand.  They now display information about the function call
+    stack instead of the stack of all statements that were active at
+    the point of the error.
+
  ** New experimental OpenGL/FLTK based plotting system.
 
     An experimental plotting system based on OpenGL and the FLTK
--- a/liboctave/ChangeLog	Mon Feb 16 00:38:25 2009 -0500
+++ b/liboctave/ChangeLog	Mon Feb 16 01:41:06 2009 -0500
@@ -1,3 +1,8 @@
+2009-02-16  John W. Eaton  <jwe@octave.org>
+
+	* cmd-edit.cc (default_command_editor::do_readline):
+	Use fputs instead of fprintf.
+
 2009-02-14  Jaroslav Hajek  <highegg@gmail.com>
 
 	* mx-inlines.cc (OP_RED_FCN, OP_RED_FCN2, OP_RED_FCNN, OP_CUM_FCN,
--- a/liboctave/cmd-edit.cc	Mon Feb 16 00:38:25 2009 -0500
+++ b/liboctave/cmd-edit.cc	Mon Feb 16 01:41:06 2009 -0500
@@ -753,7 +753,7 @@
 std::string
 default_command_editor::do_readline (const std::string& prompt, bool& eof)
 {
-  fprintf (output_stream, prompt.c_str ());
+  fputs (prompt.c_str (), output_stream);
   fflush (output_stream);
 
   return octave_fgetl (input_stream, eof);
--- a/src/ChangeLog	Mon Feb 16 00:38:25 2009 -0500
+++ b/src/ChangeLog	Mon Feb 16 01:41:06 2009 -0500
@@ -1,3 +1,7 @@
+2009-02-16  John W. Eaton  <jwe@octave.org>
+
+	* input.cc (gnu_readline): Use fputs instead of fprintf.
+
 2009-02-15  John W. Eaton  <jwe@octave.org>
 
 	* defun.cc, defun-int.h, defun-dld.h (DEFUN_INTERNAL,
--- a/src/input.cc	Mon Feb 16 00:38:25 2009 -0500
+++ b/src/input.cc	Mon Feb 16 01:41:06 2009 -0500
@@ -206,7 +206,7 @@
 	{
 	  FILE *stream = command_editor::get_output_stream ();
 
-	  fprintf (stream, s.c_str ());
+	  fputs (s.c_str (), stream);
 	  fflush (stream);
 	}