diff libinterp/corefcn/syscalls.cc @ 27263:99aa1bcb8848

rename octave_link and octave_link_events classes, move inside octave namespace * event-manager.h, event-manager.cc: Rename from octave-link.h and octave-link.cc. (class event_manager): Rename from octave_link. Move inside octave namespace. Change all uses. (class interpreter_events): Rename from octave_link_events. Move inside octave namespace. Change all uses. * libinterp/corefcn/module.mk: Update. * qt-interpreter-events.h, qt-interpreter-events.cc: Rename from octave-qt-link.h and octave-qt-link.cc. (class qt_interpreter_events): Rename from octave_qt_link_events Change all uses. * libgui/src/module.mk: Update. Change all interpreter functions that uses octave_link in their names to use event_manager instead.
author John W. Eaton <jwe@octave.org>
date Thu, 18 Jul 2019 11:23:22 -0400
parents dccdc3b001a2
children db687716fed6
line wrap: on
line diff
--- a/libinterp/corefcn/syscalls.cc	Thu Jul 18 09:58:41 2019 -0400
+++ b/libinterp/corefcn/syscalls.cc	Thu Jul 18 11:23:22 2019 -0400
@@ -42,20 +42,21 @@
 #include "oct-env.h"
 #include "oct-syscalls.h"
 #include "oct-uname.h"
+
 #include "defun.h"
 #include "error.h"
 #include "errwarn.h"
+#include "event-manager.h"
+#include "input.h"
 #include "interpreter.h"
 #include "oct-hist.h"
 #include "oct-map.h"
-#include "ovl.h"
 #include "oct-stdstrm.h"
 #include "oct-stream.h"
-#include "octave-link.h"
+#include "ovl.h"
 #include "sysdep.h"
 #include "utils.h"
 #include "variables.h"
-#include "input.h"
 
 static octave_scalar_map
 mk_stat_map (const octave::sys::base_file_stat& fs)
@@ -1088,13 +1089,13 @@
 
   std::string msg;
 
-  octave_link& olnk = interp.get_octave_link ();
+  octave::event_manager& evmgr = interp.get_event_manager ();
 
-  olnk.file_remove (name, "");
+  evmgr.file_remove (name, "");
 
   int status = octave::sys::unlink (name, msg);
 
-  olnk.file_renamed (status == 0);
+  evmgr.file_renamed (status == 0);
 
   return ovl (status, msg);
 }