diff src/defun.cc @ 8746:5dd06f19e9be

handle commands in the lexer
author John W. Eaton <jwe@octave.org>
date Sun, 15 Feb 2009 23:49:15 -0500
parents f134925a1cfa
children eb63fbe60fab
line wrap: on
line diff
--- a/src/defun.cc
+++ b/src/defun.cc
@@ -80,21 +80,17 @@
 
 void
 install_builtin_function (octave_builtin::fcn f, const std::string& name,
-			  const std::string& doc, bool is_text_fcn,
+			  const std::string& doc,
 			  bool /* can_hide_function -- not yet implemented */)
 {
   octave_value fcn (new octave_builtin (f, name, doc));
 
   symbol_table::install_built_in_function (name, fcn);
-
-  if (is_text_fcn)
-    mark_as_command (name);
 }
 
 void
 install_dld_function (octave_dld_function::fcn f, const std::string& name,
-		      const octave_shlib& shl,
-		      const std::string& doc, bool is_text_fcn,
+		      const octave_shlib& shl, const std::string& doc,
 		      bool relative)
 {
   octave_dld_function *fcn = new octave_dld_function (f, shl, name, doc);
@@ -105,15 +101,11 @@
   octave_value fval (fcn);
 
   symbol_table::install_built_in_function (name, fval);
-
-  if (is_text_fcn)
-    mark_as_command (name);
 }
 
 void
 install_mex_function (void *fptr, bool fmex, const std::string& name,
-		      const octave_shlib& shl, bool is_text_fcn,
-		      bool relative)
+		      const octave_shlib& shl, bool relative)
 {
   octave_mex_function *fcn = new octave_mex_function (fptr, fmex, shl, name);
 
@@ -123,9 +115,6 @@
   octave_value fval (fcn);
 
   symbol_table::install_built_in_function (name, fval);
-
-  if (is_text_fcn)
-    mark_as_command (name);
 }
 
 void