comparison src/variables.h @ 4700:ca3a1d687bba

[project @ 2004-01-21 03:28:31 by jwe]
author jwe
date Wed, 21 Jan 2004 03:28:32 +0000
parents 5e2c68946f30
children bdb307dc8613
comparison
equal deleted inserted replaced
4699:5e2c68946f30 4700:ca3a1d687bba
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_function; 26 class octave_function;
27 class octave_user_function;
27 class symbol_record; 28 class symbol_record;
28 class symbol_table; 29 class symbol_table;
29 30
30 class tree_identifier; 31 class tree_identifier;
31 class octave_value; 32 class octave_value;
37 #include <string> 38 #include <string>
38 39
39 #include "ov.h" 40 #include "ov.h"
40 #include "ov-builtin.h" 41 #include "ov-builtin.h"
41 #include "symtab.h" 42 #include "symtab.h"
43
44 extern bool at_top_level (void);
42 45
43 extern void initialize_symbol_tables (void); 46 extern void initialize_symbol_tables (void);
44 47
45 extern bool is_builtin_variable (const std::string&); 48 extern bool is_builtin_variable (const std::string&);
46 extern bool is_command_name (const std::string&); 49 extern bool is_command_name (const std::string&);
80 extern symbol_record * 83 extern symbol_record *
81 lookup_by_name (const std::string& nm, bool exec_script = true); 84 lookup_by_name (const std::string& nm, bool exec_script = true);
82 85
83 extern octave_function * 86 extern octave_function *
84 lookup_function (const std::string& nm); 87 lookup_function (const std::string& nm);
88
89 extern octave_user_function *
90 lookup_user_function (const std::string& nm);
85 91
86 extern octave_value get_global_value (const std::string& nm); 92 extern octave_value get_global_value (const std::string& nm);
87 93
88 extern void set_global_value (const std::string& nm, const octave_value& val); 94 extern void set_global_value (const std::string& nm, const octave_value& val);
89 95