Mercurial > hg > octave-nkf
comparison src/variables.h @ 2975:b9c107cbe388
[project @ 1997-05-15 20:01:00 by jwe]
author | jwe |
---|---|
date | Thu, 15 May 1997 20:02:55 +0000 |
parents | ac3368dba5d3 |
children | fd2080b2800e |
comparison
equal
deleted
inserted
replaced
2974:ebbc34ff7f66 | 2975:b9c107cbe388 |
---|---|
21 */ | 21 */ |
22 | 22 |
23 #if !defined (octave_variables_h) | 23 #if !defined (octave_variables_h) |
24 #define octave_variables_h 1 | 24 #define octave_variables_h 1 |
25 | 25 |
26 class octave_symbol; | 26 class octave_function; |
27 class symbol_record; | 27 class symbol_record; |
28 class symbol_table; | 28 class symbol_table; |
29 | 29 |
30 class tree_identifier; | 30 class tree_identifier; |
31 class tree_indirect_ref; | 31 class tree_indirect_ref; |
36 class string_vector; | 36 class string_vector; |
37 | 37 |
38 #include <string> | 38 #include <string> |
39 | 39 |
40 #include "ov.h" | 40 #include "ov.h" |
41 #include "ov-builtin.h" | |
41 #include "symtab.h" | 42 #include "symtab.h" |
42 | 43 |
43 typedef octave_value_list (*Octave_builtin_fcn)(const octave_value_list&, int); | 44 typedef octave_value_list (*Octave_builtin_fcn)(const octave_value_list&, int); |
44 | 45 |
45 extern void initialize_symbol_tables (void); | 46 extern void initialize_symbol_tables (void); |
69 extern bool is_text_function_name (const string&); | 70 extern bool is_text_function_name (const string&); |
70 extern bool is_mapper_function_name (const string&); | 71 extern bool is_mapper_function_name (const string&); |
71 extern bool is_builtin_function_name (const string&); | 72 extern bool is_builtin_function_name (const string&); |
72 extern bool is_globally_visible (const string&); | 73 extern bool is_globally_visible (const string&); |
73 | 74 |
74 extern octave_symbol * | 75 extern octave_function * |
75 is_valid_function (const octave_value&, const string&, bool warn = false); | 76 is_valid_function (const octave_value&, const string&, bool warn = false); |
76 | 77 |
77 extern octave_symbol * | 78 extern octave_function * |
78 extract_function (const octave_value& arg, const string& warn_for, | 79 extract_function (const octave_value& arg, const string& warn_for, |
79 const string& fname, const string& header, | 80 const string& fname, const string& header, |
80 const string& trailer); | 81 const string& trailer); |
81 | 82 |
82 extern string_vector | 83 extern string_vector |
88 extern string_vector | 89 extern string_vector |
89 generate_struct_completions (const string& text, string& prefix, | 90 generate_struct_completions (const string& text, string& prefix, |
90 string& hint); | 91 string& hint); |
91 | 92 |
92 extern string_vector make_name_list (void); | 93 extern string_vector make_name_list (void); |
93 | |
94 extern void | |
95 install_builtin_mapper (octave_mapper *mf); | |
96 | |
97 extern void | |
98 install_builtin_function (octave_builtin *f, bool is_text_fcn = false); | |
99 | |
100 extern void | |
101 install_builtin_variable (const string& n, const octave_value& v, | |
102 bool iaf, bool p, bool e, | |
103 symbol_record::sv_function svf, const string& h); | |
104 | |
105 extern void | |
106 install_builtin_variable_as_function (const string& name, | |
107 const octave_value& val, | |
108 bool protect = false, | |
109 bool eternal = false, | |
110 const string& help = string ()); | |
111 | |
112 extern void alias_builtin (const string& alias, const string& name); | |
113 | 94 |
114 extern void bind_ans (const octave_value& val, bool print); | 95 extern void bind_ans (const octave_value& val, bool print); |
115 | 96 |
116 extern void bind_global_error_variable (void); | 97 extern void bind_global_error_variable (void); |
117 | 98 |