Mercurial > jwe > octave
comparison liboctave/util/lo-array-gripes.cc @ 21111:7bb96a8df912
lo-array-errwarn.h: Don't export string constants unnecessarily.
* lo-array-errwarn.h: Delete "extern const char * [error|warning]_id_XXX"
declarations.
* ov-complex.cc (complex_index_exception::err_id): Use string literal rather
than error_id_invalid_index constant from lo-array-errwarn.h.
* lo-array-errwarn.cc: Declare and initialize
"static const char * [error_warning]_id_XXX]" variables.
* lo-array-gripes.cc: Declare and initialize
"static const char * [error_warning]_id_XXX]" variables.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 19 Jan 2016 15:08:59 -0800 |
parents | 2e8aea678f2a |
children | 95da3bc8a281 |
comparison
equal
deleted
inserted
replaced
21110:3d0d84305600 | 21111:7bb96a8df912 |
---|---|
29 | 29 |
30 #include <sstream> | 30 #include <sstream> |
31 | 31 |
32 #include "lo-array-gripes.h" | 32 #include "lo-array-gripes.h" |
33 #include "lo-error.h" | 33 #include "lo-error.h" |
34 | |
35 // Text constants used to shorten code below. | |
36 static const char *error_id_nonconformant_args = "Octave:nonconformant-args"; | |
37 | |
38 static const char *error_id_index_out_of_bounds = "Octave:index-out-of-bounds"; | |
39 | |
40 static const char *error_id_invalid_index = "Octave:invalid-index"; | |
41 | |
42 static const char *warning_id_nearly_singular_matrix = "Octave:nearly-singular-matrix"; | |
43 | |
44 static const char *warning_id_singular_matrix = "Octave:singular-matrix"; | |
34 | 45 |
35 void | 46 void |
36 gripe_nan_to_logical_conversion (void) | 47 gripe_nan_to_logical_conversion (void) |
37 { | 48 { |
38 (*current_liboctave_error_handler) | 49 (*current_liboctave_error_handler) |