1
|
1 /* |
|
2 |
1884
|
3 Copyright (C) 1996 John W. Eaton |
1
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1
|
20 |
|
21 */ |
|
22 |
1670
|
23 #if !defined (octave_toplev_h) |
|
24 #define octave_toplev_h 1 |
1
|
25 |
1355
|
26 #include <cstdio> |
1
|
27 |
2086
|
28 class octave_value; |
1488
|
29 class tree_function; |
578
|
30 class tree_statement_list; |
1572
|
31 class charMatrix; |
1
|
32 |
1747
|
33 #include <string> |
|
34 |
2440
|
35 extern void clean_up_and_exit (int) GCC_ATTR_NORETURN; |
574
|
36 |
|
37 extern void parse_and_execute (FILE *f, int print = 0); |
1604
|
38 |
1747
|
39 extern void parse_and_execute (const string& s, int print = 0, |
1605
|
40 int verbose = 0, |
|
41 const char *warn_for = 0); |
1
|
42 |
2086
|
43 extern octave_value eval_string (const string&, int print, |
1488
|
44 int& parse_status); |
|
45 |
1907
|
46 extern int main_loop (void); |
|
47 |
2077
|
48 extern void do_octave_atexit (void); |
|
49 |
1
|
50 // argv[0] for this program. |
2204
|
51 extern string Vprogram_invocation_name; |
1
|
52 |
|
53 // Cleaned-up name of this program, not including path information. |
2204
|
54 extern string Vprogram_name; |
1
|
55 |
|
56 // Login name for user running this program. |
2204
|
57 extern string Vuser_name; |
1
|
58 |
|
59 // Name of the host we are running on. |
2204
|
60 extern string Vhost_name; |
1613
|
61 |
2204
|
62 // Home directory for the current user. |
|
63 extern string Vhome_directory; |
195
|
64 |
1822
|
65 // Nonzero means we are using readline. |
|
66 extern int using_readline; |
1
|
67 |
1671
|
68 // Nonzero means we printed messages about reading startup files. |
|
69 extern int reading_startup_message_printed; |
|
70 |
1
|
71 // Command number, counting from the beginning of this session. |
|
72 extern int current_command_number; |
|
73 |
|
74 // Nonzero means we are exiting via the builtin exit or quit functions. |
|
75 extern int quitting_gracefully; |
|
76 |
|
77 // Current command to execute. |
578
|
78 extern tree_statement_list *global_command; |
1
|
79 |
206
|
80 // Pointer to function that is currently being evaluated. |
|
81 extern tree_function *curr_function; |
|
82 |
315
|
83 // Nonzero means input is coming from startup file. |
|
84 extern int input_from_startup_file; |
|
85 |
1516
|
86 // Nonzero means that input is coming from a file that was named on |
|
87 // the command line. |
|
88 extern int input_from_command_line_file; |
|
89 |
1
|
90 #endif |
|
91 |
|
92 /* |
|
93 ;;; Local Variables: *** |
|
94 ;;; mode: C++ *** |
|
95 ;;; End: *** |
|
96 */ |