changeset 31781:3cd5c988b3f7

maint: Replace feval invocations with direct calls to Ffunction_name. Slightly * call-stack.cc: Add #include for "builtin-defun-decls.h". * call-stack.cc (do_who): Replace feval for "load" with Fload (). * input.cc (mfile_encoding): Replace feval for "__event_manager_gui_preference__" with direct call.
author Rik <rik@octave.org>
date Thu, 26 Jan 2023 09:50:44 -0800
parents 148ca3633be2
children 5431cd68f48a
files libinterp/corefcn/call-stack.cc libinterp/corefcn/input.cc
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/call-stack.cc	Thu Jan 26 08:19:20 2023 -0800
+++ b/libinterp/corefcn/call-stack.cc	Thu Jan 26 09:50:44 2023 -0800
@@ -30,14 +30,15 @@
 #include "lo-regexp.h"
 #include "str-vec.h"
 
+#include "builtin-defun-decls.h"
 #include "call-stack.h"
 #include "defun.h"
 #include "interpreter.h"
 #include "interpreter-private.h"
 #include "oct-map.h"
 #include "ov.h"
+#include "ov-fcn-handle.h"
 #include "ov-fcn.h"
-#include "ov-fcn-handle.h"
 #include "ov-usr-fcn.h"
 #include "pager.h"
 #include "stack-frame.h"
@@ -983,7 +984,7 @@
 
       interpreter& interp = m_evaluator.get_interpreter ();
 
-      interp.feval ("load", octave_value (file_name), 0);
+      Fload (interp, ovl (octave_value (file_name)));
 
       std::string newmsg = "Variables in the file " + file_name + ":\n\n";
 
--- a/libinterp/corefcn/input.cc	Thu Jan 26 08:19:20 2023 -0800
+++ b/libinterp/corefcn/input.cc	Thu Jan 26 09:50:44 2023 -0800
@@ -528,8 +528,7 @@
     }
 
   // Synchronize the related gui preference for editor encoding
-  m_interpreter.feval ("__event_manager_gui_preference__",
-                       ovl ("editor/default_encoding", m_mfile_encoding));
+  F__event_manager_gui_preference__ (m_interpreter, ovl ("editor/default_encoding", m_mfile_encoding));
 
   return retval;
 }