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; |
2796
|
29 class octave_value_list; |
1488
|
30 class tree_function; |
578
|
31 class tree_statement_list; |
1572
|
32 class charMatrix; |
1
|
33 |
1747
|
34 #include <string> |
|
35 |
2796
|
36 extern void |
|
37 clean_up_and_exit (int) GCC_ATTR_NORETURN; |
574
|
38 |
2796
|
39 extern void |
|
40 parse_and_execute (FILE *f, int print = 0); |
1604
|
41 |
2796
|
42 extern void |
|
43 parse_and_execute (const string& s, int print = 0, int verbose = 0, |
|
44 const char *warn_for = 0); |
1
|
45 |
2796
|
46 extern octave_value |
|
47 eval_string (const string&, int print, int& parse_status); |
1488
|
48 |
2796
|
49 extern int |
|
50 main_loop (void); |
1907
|
51 |
2796
|
52 extern void |
|
53 do_octave_atexit (void); |
2077
|
54 |
1
|
55 // argv[0] for this program. |
2204
|
56 extern string Vprogram_invocation_name; |
1
|
57 |
|
58 // Cleaned-up name of this program, not including path information. |
2204
|
59 extern string Vprogram_name; |
1
|
60 |
|
61 // Login name for user running this program. |
2204
|
62 extern string Vuser_name; |
1
|
63 |
|
64 // Name of the host we are running on. |
2204
|
65 extern string Vhost_name; |
1613
|
66 |
2204
|
67 // Home directory for the current user. |
|
68 extern string Vhome_directory; |
195
|
69 |
1822
|
70 // Nonzero means we are using readline. |
|
71 extern int using_readline; |
1
|
72 |
1671
|
73 // Nonzero means we printed messages about reading startup files. |
|
74 extern int reading_startup_message_printed; |
|
75 |
1
|
76 // Command number, counting from the beginning of this session. |
|
77 extern int current_command_number; |
|
78 |
|
79 // Nonzero means we are exiting via the builtin exit or quit functions. |
|
80 extern int quitting_gracefully; |
|
81 |
|
82 // Current command to execute. |
578
|
83 extern tree_statement_list *global_command; |
1
|
84 |
206
|
85 // Pointer to function that is currently being evaluated. |
|
86 extern tree_function *curr_function; |
|
87 |
315
|
88 // Nonzero means input is coming from startup file. |
|
89 extern int input_from_startup_file; |
|
90 |
1516
|
91 // Nonzero means that input is coming from a file that was named on |
|
92 // the command line. |
|
93 extern int input_from_command_line_file; |
|
94 |
1
|
95 #endif |
|
96 |
|
97 /* |
|
98 ;;; Local Variables: *** |
|
99 ;;; mode: C++ *** |
|
100 ;;; End: *** |
|
101 */ |