diff libinterp/corefcn/mex.cc @ 22094:9203833cab7d

move new interpreter class to separate file * libinterp/corefcn/interpreter.cc, libinterp/corefcn/interpreter.h: New files. Move interpreter class and some supporting functions here from octave.h, octave.cc, toplev.h, and toplev.cc. Move main_loop into the interpreter class. Handle exiting with a separate exception object from interrupts, passing the exit status with the object. Update other files as needed to remove toplev.h or include interpreter.h instead of toplev.h. * libinterp/corefcn/module.mk: Update. * toplev.h: Deprecate.
author John W. Eaton <jwe@octave.org>
date Mon, 11 Jul 2016 18:05:53 -0400
parents 0f6fc2ec3b1a
children bac0d6f07a3e
line wrap: on
line diff
--- a/libinterp/corefcn/mex.cc	Tue Jul 12 10:17:45 2016 +0200
+++ b/libinterp/corefcn/mex.cc	Mon Jul 11 18:05:53 2016 -0400
@@ -40,6 +40,7 @@
 #include "Cell.h"
 #include "call-stack.h"
 #include "error.h"
+#include "interpreter.h"
 // mxArray must be declared as a class before including mexproto.h.
 #include "mxarray.h"
 #include "mexproto.h"
@@ -50,7 +51,6 @@
 #include "ov-usr-fcn.h"
 #include "pager.h"
 #include "parse.h"
-#include "toplev.h"
 #include "unwind-prot.h"
 #include "utils.h"
 #include "variables.h"