diff liboctave/util/cmd-hist.cc @ 19410:95c533ed464b

use warning IDs for all warnings in liboctave * CSparse.cc, MatrixType.cc, Sparse.cc, dSparse.cc, dbleQR.cc, eigs-base.cc, lo-specfun.cc, cmd-hist.cc, data-conv.cc, kpse.cc, lo-regexp.cc, oct-locbuf.cc, oct-shlib.cc, sparse-util.cc: Use current_liboctave_warning_with_id_handler and provide warning IDs for all warnings in liboctave code. * unwinddemo.cc: Also preserve and restore warning_wit_id_handler.
author John W. Eaton <jwe@octave.org>
date Thu, 18 Dec 2014 10:50:09 -0500
parents 260b44c0ed69
children 4197fc428c7d
line wrap: on
line diff
--- a/liboctave/util/cmd-hist.cc	Thu Dec 18 07:57:58 2014 -0500
+++ b/liboctave/util/cmd-hist.cc	Thu Dec 18 10:50:09 2014 -0500
@@ -145,8 +145,9 @@
           else if (tmp == "ignorespace")
             history_control |= HC_IGNSPACE;
           else
-            (*current_liboctave_warning_handler)
-              ("unknown histcontrol directive %s", tmp.c_str ());
+            (*current_liboctave_warning_with_id_handler)
+              ("Octave:history-control",
+               "unknown histcontrol directive %s", tmp.c_str ());
 
           if (end != std::string::npos)
             beg = end + 1;
@@ -779,8 +780,9 @@
 void
 command_history::do_process_histcontrol (const std::string&)
 {
-  (*current_liboctave_warning_handler)
-    ("readline is not linked, so history control is not available");
+  (*current_liboctave_warning_with_id_handler)
+    ("Octave:history-control",
+     "readline is not linked, so history control is not available");
 }
 
 void