diff libinterp/corefcn/oct-stream.cc @ 27069:0a62d9a6aa2d

Place Octave's warning and error IDs in to the "Octave" namespace (bug #56213). * oct-stream.cc (textscan_format_list::parse_char_class), ov-ch-mat.cc (octave_char_matrix::map): Use "Octave" namespace with initial capital rather than "octave" lowercase in warning_with_id. * fminbnd.m (guarded_eval), fminunc.m (guarded_eval), fsolve.m (guarded_eval): Place error IDs in to "Octave" namespace. * print.m (epstool, fig2dev, latexstandalone, lpr, pstoedit): Place error IDs in to "Octave" namespace. * __print_parse_opts__.m (convert2points): Place error IDs in to "Octave" namespace. * fzero.m, __ghostscript__.m, __gnuplot_print__.m, __opengl_print__.m, splinefit.m, strjoin.m, strsplit.m: Place error IDs in to "Octave" namespace.
author Rik <rik@octave.org>
date Thu, 25 Apr 2019 08:48:19 -0700
parents ccea3574f36b
children 84ff9953faa1
line wrap: on
line diff
--- a/libinterp/corefcn/oct-stream.cc	Wed Apr 24 21:21:06 2019 -0700
+++ b/libinterp/corefcn/oct-stream.cc	Thu Apr 25 08:48:19 2019 -0700
@@ -2306,13 +2306,13 @@
             if (mask[ch]++ == 0)
               retval[out++] = ch;
             else if (ch != '-')
-              warning_with_id ("octave:textscan-pattern",
+              warning_with_id ("Octave:textscan-pattern",
                                "%s: [...] contains two '%c's",
                                who.c_str (), ch);
 
             if (prev == '-' && mask['-'] >= 2)
               warning_with_id
-                ("octave:textscan-pattern",
+                ("Octave:textscan-pattern",
                  "%s: [...] contains two '-'s outside range expressions",
                  who.c_str ());
           }