comparison libinterp/corefcn/interpreter.cc @ 32086:3c608abd55f5

Move "same_file" from liboctinterp to liboctave (bug #63803). * libinterp/corefcn/utils.cc, utils.h (same_file): Deprecate function. * libinterp/corefcn/sysdep.cc, sysdep.h (same_file_internal): Remove function. * liboctave/system/lo-sysdep.cc, lo-sysdep.h (same_file): Move function from liboctinterp to liboctave. * libgui/src/m-editor/file-editor.cc (file_editor::find_tab_widget), libinterp/corefcn/fcn-info.cc (file_editor::find_tab_widget), libinterp/corefcn/interpreter.cc (interpreter::execute_startup_files), libinterp/corefcn/load-path.cc (load_path::append): Use function in updated namespace.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 06 May 2023 17:48:27 +0200
parents e9fdfebc6db0
children 0c32e838e522
comparison
equal deleted inserted replaced
32085:cf03230c0363 32086:3c608abd55f5
1199 // We want to check for curr_dir after executing home_rc 1199 // We want to check for curr_dir after executing home_rc
1200 // because doing that may change the working directory. 1200 // because doing that may change the working directory.
1201 1201
1202 local_rc = sys::env::make_absolute (initfile); 1202 local_rc = sys::env::make_absolute (initfile);
1203 1203
1204 home_rc_already_executed = same_file (home_rc, local_rc); 1204 home_rc_already_executed = sys::same_file (home_rc, local_rc);
1205 } 1205 }
1206 } 1206 }
1207 1207
1208 if (! home_rc_already_executed) 1208 if (! home_rc_already_executed)
1209 { 1209 {