comparison 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
comparison
equal deleted inserted replaced
22093:6457ff946024 22094:9203833cab7d
38 #include "oct-locbuf.h" 38 #include "oct-locbuf.h"
39 39
40 #include "Cell.h" 40 #include "Cell.h"
41 #include "call-stack.h" 41 #include "call-stack.h"
42 #include "error.h" 42 #include "error.h"
43 #include "interpreter.h"
43 // mxArray must be declared as a class before including mexproto.h. 44 // mxArray must be declared as a class before including mexproto.h.
44 #include "mxarray.h" 45 #include "mxarray.h"
45 #include "mexproto.h" 46 #include "mexproto.h"
46 #include "oct-map.h" 47 #include "oct-map.h"
47 #include "ovl.h" 48 #include "ovl.h"
48 #include "ov.h" 49 #include "ov.h"
49 #include "ov-mex-fcn.h" 50 #include "ov-mex-fcn.h"
50 #include "ov-usr-fcn.h" 51 #include "ov-usr-fcn.h"
51 #include "pager.h" 52 #include "pager.h"
52 #include "parse.h" 53 #include "parse.h"
53 #include "toplev.h"
54 #include "unwind-prot.h" 54 #include "unwind-prot.h"
55 #include "utils.h" 55 #include "utils.h"
56 #include "variables.h" 56 #include "variables.h"
57 #include "graphics.h" 57 #include "graphics.h"
58 58