diff libinterp/corefcn/call-stack.cc @ 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 21f9b34eb893
children 5431cd68f48a
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";