Mercurial > hg > octave-avbm
comparison src/variables.h @ 3523:b80bbb43a1a9
[project @ 2000-02-02 10:25:52 by jwe]
author | jwe |
---|---|
date | Wed, 02 Feb 2000 10:26:25 +0000 |
parents | 7ae1928ca623 |
children | 61d4427c016e |
comparison
equal
deleted
inserted
replaced
3522:bd422cf62f0c | 3523:b80bbb43a1a9 |
---|---|
41 #include "ov-builtin.h" | 41 #include "ov-builtin.h" |
42 #include "symtab.h" | 42 #include "symtab.h" |
43 | 43 |
44 extern void initialize_symbol_tables (void); | 44 extern void initialize_symbol_tables (void); |
45 | 45 |
46 extern bool is_builtin_variable (const string&); | 46 extern bool is_builtin_variable (const std::string&); |
47 extern bool is_text_function_name (const string&); | 47 extern bool is_text_function_name (const std::string&); |
48 extern bool is_mapper_function_name (const string&); | 48 extern bool is_mapper_function_name (const std::string&); |
49 extern bool is_builtin_function_name (const string&); | 49 extern bool is_builtin_function_name (const std::string&); |
50 extern bool is_globally_visible (const string&); | 50 extern bool is_globally_visible (const std::string&); |
51 | 51 |
52 extern octave_function * | 52 extern octave_function * |
53 is_valid_function (const octave_value&, const string& = string (), | 53 is_valid_function (const octave_value&, const std::string& = std::string (), |
54 bool warn = false); | 54 bool warn = false); |
55 | 55 |
56 extern octave_function * | 56 extern octave_function * |
57 is_valid_function (const string&, const string& = string (), | 57 is_valid_function (const std::string&, const std::string& = std::string (), |
58 bool warn = false); | 58 bool warn = false); |
59 | 59 |
60 extern octave_function * | 60 extern octave_function * |
61 extract_function (const octave_value& arg, const string& warn_for, | 61 extract_function (const octave_value& arg, const std::string& warn_for, |
62 const string& fname, const string& header, | 62 const std::string& fname, const std::string& header, |
63 const string& trailer); | 63 const std::string& trailer); |
64 | 64 |
65 extern string_vector | 65 extern string_vector |
66 get_struct_elts (const string& text); | 66 get_struct_elts (const std::string& text); |
67 | 67 |
68 extern string_vector | 68 extern string_vector |
69 generate_struct_completions (const string& text, string& prefix, | 69 generate_struct_completions (const std::string& text, std::string& prefix, |
70 string& hint); | 70 std::string& hint); |
71 | 71 |
72 extern bool | 72 extern bool |
73 looks_like_struct (const string& text); | 73 looks_like_struct (const std::string& text); |
74 | 74 |
75 extern bool lookup (symbol_record *s, bool exec_script = true); | 75 extern bool lookup (symbol_record *s, bool exec_script = true); |
76 | 76 |
77 extern symbol_record * | 77 extern symbol_record * |
78 lookup_by_name (const string& nm, bool exec_script = true); | 78 lookup_by_name (const std::string& nm, bool exec_script = true); |
79 | 79 |
80 extern octave_value get_global_value (const string& nm); | 80 extern octave_value get_global_value (const std::string& nm); |
81 | 81 |
82 extern void set_global_value (const string& nm, const octave_value& val); | 82 extern void set_global_value (const std::string& nm, const octave_value& val); |
83 | 83 |
84 extern string builtin_string_variable (const string&); | 84 extern std::string builtin_string_variable (const std::string&); |
85 extern int builtin_real_scalar_variable (const string&, double&); | 85 extern int builtin_real_scalar_variable (const std::string&, double&); |
86 extern octave_value builtin_any_variable (const string&); | 86 extern octave_value builtin_any_variable (const std::string&); |
87 | 87 |
88 extern void link_to_global_variable (symbol_record *sr); | 88 extern void link_to_global_variable (symbol_record *sr); |
89 extern void link_to_builtin_or_function (symbol_record *sr); | 89 extern void link_to_builtin_or_function (symbol_record *sr); |
90 | 90 |
91 extern void force_link_to_function (const string&); | 91 extern void force_link_to_function (const std::string&); |
92 | 92 |
93 extern void bind_ans (const octave_value& val, bool print); | 93 extern void bind_ans (const octave_value& val, bool print); |
94 | 94 |
95 extern void bind_global_error_variable (void); | 95 extern void bind_global_error_variable (void); |
96 | 96 |
97 extern void clear_global_error_variable (void *); | 97 extern void clear_global_error_variable (void *); |
98 | 98 |
99 extern void | 99 extern void |
100 bind_builtin_constant (const string&, const octave_value&, | 100 bind_builtin_constant (const std::string&, const octave_value&, |
101 bool protect = false, bool eternal = false, | 101 bool protect = false, bool eternal = false, |
102 const string& help = string ()); | 102 const std::string& help = std::string ()); |
103 | 103 |
104 extern void | 104 extern void |
105 bind_builtin_variable (const string&, const octave_value&, | 105 bind_builtin_variable (const std::string&, const octave_value&, |
106 bool protect = false, bool eternal = false, | 106 bool protect = false, bool eternal = false, |
107 symbol_record::change_function f = 0, | 107 symbol_record::change_function f = 0, |
108 const string& help = string ()); | 108 const std::string& help = std::string ()); |
109 | 109 |
110 // Symbol table for symbols at the top level. | 110 // Symbol table for symbols at the top level. |
111 extern symbol_table *top_level_sym_tab; | 111 extern symbol_table *top_level_sym_tab; |
112 | 112 |
113 // Symbol table for the current scope. | 113 // Symbol table for the current scope. |