Mercurial > octave
diff libgui/src/main-window.cc @ 27408:9b19eec60931
move change directory function to interpreter class
* interpreter.h, interpreter.cc (interpreter::chdir,
Vlast_chdir_time): Move here from change_directory in dirfns.cc.
Change all uses.
* main-window.cc (main_window::set_current_working_directory):
Use interpreter function directly instead of going through DEFUN
function.
* dirfns.h: Delete. This file no longer declares any functions or
variables. Remove remaining include statements from other files.
* libinterp/corefcn/module.mk: Update.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 13 Sep 2019 16:22:34 -0400 |
parents | 646efbb5f407 |
children | a0d49e55acae |
line wrap: on
line diff
--- a/libgui/src/main-window.cc Thu Sep 12 16:55:53 2019 +0200 +++ b/libgui/src/main-window.cc Fri Sep 13 16:22:34 2019 -0400 @@ -989,11 +989,11 @@ if (fileInfo.exists () && fileInfo.isDir ()) { emit interpreter_event - ([xdir] (void) + ([xdir] (interpreter& interp) { // INTERPRETER THREAD - Fcd (ovl (xdir.toStdString ())); + interp.chdir (xdir.toStdString ()); }); } }