comparison libgui/src/main-window.cc @ 27405:646efbb5f407

avoid including builtin-defun-decls.h unless needed Also audit all GUI files to ensure that any built-in DEFUN functions are called from the interpreter thread using an interpreter_event signal and that there are no lurking calls to eval or feval now. * file-editor-tab.cc: Include builtin-defun-decls.h here, not in file-editor-tab.h * files-dock-widget.cc, qt-application.cc: Don't include builtin-defun-decls.h. * main-window.cc (main_window::handle_open_any_request): Use interpreter::feval instead of global feval function.
author John W. Eaton <jwe@octave.org>
date Fri, 13 Sep 2019 08:11:53 -0400
parents 930c0fbc003b
children 9b19eec60931
comparison
equal deleted inserted replaced
27404:a3ec8c75ece3 27405:646efbb5f407
393 emit interpreter_event 393 emit interpreter_event
394 ([file] (interpreter& interp) 394 ([file] (interpreter& interp)
395 { 395 {
396 // INTERPRETER THREAD 396 // INTERPRETER THREAD
397 397
398 feval ("open", ovl (file)); 398 interp.feval ("open", ovl (file));
399 399
400 // Update the workspace since open.m may have loaded new 400 // Update the workspace since open.m may have loaded new
401 // variables. 401 // variables.
402 tree_evaluator& tw = interp.get_evaluator (); 402 tree_evaluator& tw = interp.get_evaluator ();
403 403