changeset 32941:3085687255dc stable

rename and deprecate interpreter::initialized * interpreter.h (interpreter::is_initialized): Replaces interpreter::initialized. (interpreter::initialized): Deprecate, call is_initialized. Update all uses to call is_initialized instead.
author John W. Eaton <jwe@octave.org>
date Tue, 06 Feb 2024 12:36:23 -0500
parents 0ad5004f85e3
children c854ec36dcbe
files libgui/src/interpreter-qobject.cc libinterp/corefcn/interpreter.h libinterp/octave.cc
diffstat 3 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/interpreter-qobject.cc	Tue Feb 06 10:25:20 2024 +0100
+++ b/libgui/src/interpreter-qobject.cc	Tue Feb 06 12:36:23 2024 -0500
@@ -71,7 +71,7 @@
           interp.PS2 ("");
         }
 
-      if (interp.initialized ())
+      if (interp.is_initialized ())
         {
           // The interpreter should be completely ready at this point so let
           // the GUI know.
--- a/libinterp/corefcn/interpreter.h	Tue Feb 06 10:25:20 2024 +0100
+++ b/libinterp/corefcn/interpreter.h	Tue Feb 06 12:36:23 2024 -0500
@@ -207,9 +207,15 @@
     return m_evaluator.in_top_level_repl ();
   }
 
+  bool is_initialized () const
+  {
+    return m_initialized;
+  }
+
+  OCTAVE_DEPRECATED (9, "use octave::is_initialized instead")
   bool initialized () const
   {
-    return m_initialized;
+    return is_initialized ();
   }
 
   void interrupt_all_in_process_group (bool b)
--- a/libinterp/octave.cc	Tue Feb 06 10:25:20 2024 +0100
+++ b/libinterp/octave.cc	Tue Feb 06 12:36:23 2024 -0500
@@ -343,7 +343,7 @@
 bool
 application::interpreter_initialized ()
 {
-  return m_interpreter ? m_interpreter->initialized () : false;
+  return m_interpreter ? m_interpreter->is_initialized () : false;
 }
 
 interpreter&