1
|
1 // octave.h -*- C++ -*- |
|
2 /* |
|
3 |
315
|
4 Copyright (C) 1992, 1993, 1994 John W. Eaton |
1
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
|
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (_octave_h) |
|
25 #define _octave_h 1 |
|
26 |
|
27 #include <stdio.h> |
|
28 |
|
29 class tree; |
206
|
30 class tree_function; |
1
|
31 |
195
|
32 // Tell g++ that clean_up_and_exit doesn't return; |
|
33 |
|
34 #ifdef __GNUG__ |
|
35 typedef void v_fcn_i (int); |
|
36 volatile v_fcn_i clean_up_and_exit; |
|
37 #endif |
|
38 |
|
39 extern void clean_up_and_exit (int); |
1
|
40 extern void parse_and_execute (char*, int); |
|
41 extern void parse_and_execute (FILE*, int); |
|
42 |
|
43 // argv[0] for this program. |
|
44 extern char *raw_prog_name; |
|
45 |
|
46 // Cleaned-up name of this program, not including path information. |
|
47 extern char *prog_name; |
|
48 |
|
49 // Login name for user running this program. |
|
50 extern char *user_name; |
|
51 |
|
52 // Name of the host we are running on. |
|
53 extern char *host_name; |
|
54 |
|
55 // User's home directory. |
|
56 extern char *home_directory; |
|
57 |
|
58 // Guess what? |
|
59 extern char *the_current_working_directory; |
|
60 |
|
61 // Load path specified on command line. |
|
62 extern char *load_path; |
|
63 |
186
|
64 // Name of the info file specified on command line. |
|
65 extern char *info_file; |
|
66 |
195
|
67 // Name of the editor to be invoked by the edit_history command. |
|
68 extern char *editor; |
|
69 |
1
|
70 // If nonzero, don't do fancy line editing. |
|
71 extern int no_line_editing; |
|
72 |
|
73 // Command number, counting from the beginning of this session. |
|
74 extern int current_command_number; |
|
75 |
|
76 // Nonzero means we are exiting via the builtin exit or quit functions. |
|
77 extern int quitting_gracefully; |
|
78 |
|
79 // Current command to execute. |
|
80 extern tree *global_command; |
|
81 |
206
|
82 // Pointer to function that is currently being evaluated. |
|
83 extern tree_function *curr_function; |
|
84 |
315
|
85 // Nonzero means input is coming from startup file. |
|
86 extern int input_from_startup_file; |
|
87 |
1
|
88 #endif |
|
89 |
|
90 /* |
|
91 ;;; Local Variables: *** |
|
92 ;;; mode: C++ *** |
|
93 ;;; page-delimiter: "^/\\*" *** |
|
94 ;;; End: *** |
|
95 */ |