comparison src/defun.cc @ 7503:8c32f95c2639

convert mapper functions to new format
author David Bateman <dbateman@free.fr>
date Wed, 20 Feb 2008 04:22:50 -0500
parents 745a8299c2b5
children c3d21b9b94b6
comparison
equal deleted inserted replaced
7502:2ce6b4258e96 7503:8c32f95c2639
35 #include "help.h" 35 #include "help.h"
36 #include "ov.h" 36 #include "ov.h"
37 #include "ov-builtin.h" 37 #include "ov-builtin.h"
38 #include "ov-dld-fcn.h" 38 #include "ov-dld-fcn.h"
39 #include "ov-fcn.h" 39 #include "ov-fcn.h"
40 #include "ov-mapper.h"
41 #include "ov-mex-fcn.h" 40 #include "ov-mex-fcn.h"
42 #include "ov-usr-fcn.h" 41 #include "ov-usr-fcn.h"
43 #include "oct-obj.h" 42 #include "oct-obj.h"
44 #include "pager.h" 43 #include "pager.h"
45 #include "symtab.h" 44 #include "symtab.h"
127 } 126 }
128 127
129 // Install variables and functions in the symbol tables. 128 // Install variables and functions in the symbol tables.
130 129
131 void 130 void
132 install_builtin_mapper (octave_mapper *mf, const std::string& name)
133 {
134 symbol_table::install_built_in_function (name, octave_value (mf));
135 }
136
137 void
138 install_builtin_function (octave_builtin::fcn f, const std::string& name, 131 install_builtin_function (octave_builtin::fcn f, const std::string& name,
139 const std::string& doc, bool is_text_fcn, 132 const std::string& doc, bool is_text_fcn,
140 bool /* can_hide_function -- not yet implemented */) 133 bool /* can_hide_function -- not yet implemented */)
141 { 134 {
142 octave_value fcn (new octave_builtin (f, name, doc)); 135 octave_value fcn (new octave_builtin (f, name, doc));