Mercurial > octave
diff liboctave/util/lo-array-errwarn.cc @ 27101:097774bed4ed
move some static functions inside octave namespace
In most files that define static functions and use the octave
namespace, define the static fucntions inside the namespace.
Files affected: octave-qscintilla.cc, main-window.cc,
variable-editor-model.cc, variable-editor.cc, welcome-wizard.cc,
call-stack.cc, environment.cc, help.cc, input.cc, load-path.cc,
sysdep.cc, text-renderer.cc, url-handle-manager.cc, __ode15__.cc,
ov-typeinfo.cc, aepbalance.cc, chol.cc, gsvd.cc, file-ops.cc,
lo-array-errwarn.cc, lo-regexp.cc, oct-glob.cc, and oct-sparse.cc.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 21 May 2019 19:50:59 +0000 |
parents | 0e77df67b522 |
children | 3db033e86376 |
line wrap: on
line diff
--- a/liboctave/util/lo-array-errwarn.cc Tue May 21 17:39:13 2019 +0000 +++ b/liboctave/util/lo-array-errwarn.cc Tue May 21 19:50:59 2019 +0000 @@ -32,20 +32,23 @@ #include "lo-array-errwarn.h" #include "lo-error.h" -// Text constants used to shorten code below. -static const char *error_id_nonconformant_args = "Octave:nonconformant-args"; - -static const char *error_id_index_out_of_bounds = "Octave:index-out-of-bounds"; - -static const char *error_id_invalid_index = "Octave:invalid-index"; - -static const char *warning_id_nearly_singular_matrix = - "Octave:nearly-singular-matrix"; - -static const char *warning_id_singular_matrix = "Octave:singular-matrix"; - namespace octave { + // Text constants used to shorten code below. + + static const char *error_id_nonconformant_args + = "Octave:nonconformant-args"; + + static const char *error_id_index_out_of_bounds + = "Octave:index-out-of-bounds"; + + static const char *error_id_invalid_index = "Octave:invalid-index"; + + static const char *warning_id_nearly_singular_matrix + = "Octave:nearly-singular-matrix"; + + static const char *warning_id_singular_matrix = "Octave:singular-matrix"; + void err_nan_to_logical_conversion (void) {