1
|
1 // variables.h -*- C++ -*- |
|
2 /* |
|
3 |
|
4 Copyright (C) 1992, 1993 John W. Eaton |
|
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 (_variables_h) |
|
25 #define _variables_h 1 |
|
26 |
|
27 #ifdef __GNUG__ |
|
28 #pragma interface |
|
29 #endif |
|
30 |
|
31 class istream; |
|
32 class symbol_record; |
|
33 class symbol_table; |
|
34 class tree; |
|
35 class tree_constant; |
|
36 |
|
37 extern int symbol_out_of_date (symbol_record *sr); |
|
38 extern symbol_record *force_global (char *name); |
|
39 extern int bind_variable (char *, tree_constant *); |
|
40 extern int bind_protected_variable (char *, tree_constant *); |
|
41 extern char *octave_string_variable (char *); |
|
42 extern int octave_real_scalar_variable (char *, double&); |
|
43 extern int extract_keyword (istream&, char *, char *); |
|
44 extern int extract_keyword (istream&, char *, int&); |
|
45 extern void skip_comments (istream&); |
|
46 extern int valid_identifier (char *); |
|
47 extern int identifier_exists (char *); |
|
48 extern tree *is_valid_function (tree_constant&, char *, int warn = 0); |
|
49 extern int takes_correct_nargs (tree *, int, char *, int warn = 0); |
|
50 extern char **make_name_list (void); |
|
51 |
|
52 // Symbol table for symbols at the top level. |
|
53 extern symbol_table *top_level_sym_tab; |
|
54 |
|
55 // Symbol table for the current scope. |
|
56 extern symbol_table *curr_sym_tab; |
|
57 |
|
58 // Symbol table for global symbols. |
|
59 extern symbol_table *global_sym_tab; |
|
60 |
|
61 #endif |
|
62 |
|
63 /* |
|
64 ;;; Local Variables: *** |
|
65 ;;; mode: C++ *** |
|
66 ;;; page-delimiter: "^/\\*" *** |
|
67 ;;; End: *** |
|
68 */ |