Mercurial > octave
comparison libinterp/corefcn/fcn-info.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 | 21f9b34eb893 |
children | d82d9e06fc50 |
comparison
equal
deleted
inserted
replaced
32085:cf03230c0363 | 32086:3c608abd55f5 |
---|---|
27 # include "config.h" | 27 # include "config.h" |
28 #endif | 28 #endif |
29 | 29 |
30 #include "file-ops.h" | 30 #include "file-ops.h" |
31 #include "file-stat.h" | 31 #include "file-stat.h" |
32 #include "lo-sysdep.h" | |
32 #include "oct-env.h" | 33 #include "oct-env.h" |
33 | 34 |
34 #include "defun.h" | 35 #include "defun.h" |
35 #include "fcn-info.h" | 36 #include "fcn-info.h" |
36 #include "interpreter-private.h" | 37 #include "interpreter-private.h" |
571 file = lp.find_fcn (nm, dir_name, pack); | 572 file = lp.find_fcn (nm, dir_name, pack); |
572 } | 573 } |
573 } | 574 } |
574 | 575 |
575 if (! file.empty ()) | 576 if (! file.empty ()) |
576 is_same_file = same_file (file, ff); | 577 is_same_file = sys::same_file (file, ff); |
577 } | 578 } |
578 else | 579 else |
579 { | 580 { |
580 is_same_file = true; | 581 is_same_file = true; |
581 file = ff; | 582 file = ff; |