Mercurial > octave-nkf
comparison src/defun-int.h @ 3523:b80bbb43a1a9
[project @ 2000-02-02 10:25:52 by jwe]
author | jwe |
---|---|
date | Wed, 02 Feb 2000 10:26:25 +0000 |
parents | fac05a83b4c5 |
children | 19d6fea99ba1 |
comparison
equal
deleted
inserted
replaced
3522:bd422cf62f0c | 3523:b80bbb43a1a9 |
---|---|
31 #include "symtab.h" | 31 #include "symtab.h" |
32 #include "version.h" | 32 #include "version.h" |
33 | 33 |
34 class octave_value; | 34 class octave_value; |
35 | 35 |
36 extern void print_usage (const string& nm, bool just_usage = false); | 36 extern void print_usage (const std::string& nm, bool just_usage = false); |
37 | 37 |
38 extern void check_version (const string& version, const string& fcn); | 38 extern void check_version (const std::string& version, const std::string& fcn); |
39 | 39 |
40 extern void | 40 extern void |
41 install_builtin_mapper (octave_mapper *mf); | 41 install_builtin_mapper (octave_mapper *mf); |
42 | 42 |
43 extern void | 43 extern void |
44 install_builtin_function (octave_builtin::fcn f, const string& name, | 44 install_builtin_function (octave_builtin::fcn f, const std::string& name, |
45 const string& doc, bool is_text_fcn = false); | 45 const std::string& doc, bool is_text_fcn = false); |
46 | 46 |
47 extern void | 47 extern void |
48 install_builtin_variable (const string& n, const octave_value& v, | 48 install_builtin_variable (const std::string& n, const octave_value& v, |
49 bool p, bool e, | 49 bool p, bool e, |
50 symbol_record::change_function chg_fcn, | 50 symbol_record::change_function chg_fcn, |
51 const string& h); | 51 const std::string& h); |
52 | 52 |
53 extern void | 53 extern void |
54 install_builtin_constant (const string& n, const octave_value& v, | 54 install_builtin_constant (const std::string& n, const octave_value& v, |
55 bool p, const string& h); | 55 bool p, const std::string& h); |
56 | 56 |
57 extern void | 57 extern void |
58 install_dld_function (octave_dld_function::fcn f, const string& name, | 58 install_dld_function (octave_dld_function::fcn f, const std::string& name, |
59 const octave_shlib& shl, | 59 const octave_shlib& shl, |
60 const string& doc, bool is_text_fcn = false); | 60 const std::string& doc, bool is_text_fcn = false); |
61 | 61 |
62 extern void | 62 extern void |
63 alias_builtin (const string& alias, const string& name); | 63 alias_builtin (const std::string& alias, const std::string& name); |
64 | 64 |
65 #define DECLARE_FUN(name, args_name, nargout_name) \ | 65 #define DECLARE_FUN(name, args_name, nargout_name) \ |
66 octave_value_list \ | 66 octave_value_list \ |
67 F ## name (const octave_value_list& args_name, int nargout_name) | 67 F ## name (const octave_value_list& args_name, int nargout_name) |
68 | 68 |
69 // Define the code that will be used to insert the new function into | 69 // Define the code that will be used to insert the new function into |
70 // the symbol table. We look for this name instead of the actual | 70 // the symbol table. We look for this name instead of the actual |
71 // function so that we can easily install the doc string too. | 71 // function so that we can easily install the doc std::string too. |
72 | 72 |
73 typedef bool (*octave_dld_fcn_installer) (const octave_shlib&); | 73 typedef bool (*octave_dld_fcn_installer) (const octave_shlib&); |
74 | 74 |
75 #define DEFINE_FUN_INSTALLER_FUN(name, doc) \ | 75 #define DEFINE_FUN_INSTALLER_FUN(name, doc) \ |
76 bool \ | 76 bool \ |