diff libinterp/corefcn/call-stack.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 4643682db06e
children 84ff9953faa1
line wrap: on
line diff
--- a/libinterp/corefcn/call-stack.cc	Tue May 21 17:39:13 2019 +0000
+++ b/libinterp/corefcn/call-stack.cc	Tue May 21 19:50:59 2019 +0000
@@ -48,14 +48,15 @@
 #include "symscope.h"
 #include "variables.h"
 
-// Use static fields for the best efficiency.
-// NOTE: C++0x will allow these two to be merged into one.
-static const char *bt_fieldnames[] =
-  { "file", "name", "line", "column", "scope", nullptr };
-static const octave_fields bt_fields (bt_fieldnames);
-
 namespace octave
 {
+  // Use static fields for the best efficiency.
+  // NOTE: C++0x will allow these two to be merged into one.
+  static const char *bt_fieldnames[] =
+    { "file", "name", "line", "column", "scope", nullptr };
+
+  static const octave_fields bt_fields (bt_fieldnames);
+
   call_stack::call_stack (tree_evaluator& evaluator)
     : m_evaluator (evaluator), m_cs (), m_curr_frame (0),
       m_max_stack_depth (1024), m_global_values ()