diff src/pt-const.h @ 529:7ea224e713cd

[project @ 1994-07-20 18:54:27 by jwe]
author jwe
date Wed, 20 Jul 1994 19:19:08 +0000
parents 7013424771d4
children b04c0d02f2de
line wrap: on
line diff
--- a/src/pt-const.h
+++ b/src/pt-const.h
@@ -1,4 +1,4 @@
-// The rest of the tree classes.                          -*- C++ -*-
+// tree-const.h                                        -*- C++ -*-
 /*
 
 Copyright (C) 1992, 1993, 1994 John W. Eaton
@@ -33,7 +33,6 @@
 #include "mx-base.h"
 #include "Range.h"
 
-#include "builtins.h"
 #include "tree-base.h"
 #include "tree-expr.h"
 #include "tc-rep.h"
@@ -41,6 +40,8 @@
 
 class idx_vector;
 
+struct Mapper_fcn;
+
 /*
  * Constants.
  */
@@ -98,7 +99,7 @@
   void operator delete (void *p, size_t size);
 #endif
 
-  tree_constant operator = (tree_constant& a)
+  tree_constant operator = (const tree_constant& a)
     {
       if (--rep->count <= 0 && rep != a.rep)
 	delete rep;
@@ -286,42 +287,10 @@
   tree_constant_rep *rep;
 };
 
-/*
- * Here are some extra functions that are related to the tree_constant
- * class but that don't need to be class members or friends.
- */
-
+// XXX FIXME XXX -- this is not used very much now.  Perhaps it can be
+// eliminated.
 extern Octave_object vector_of_empties (int nargout, const char *fcn_name);
 
-extern tree_constant fill_matrix (const tree_constant& a,
-				  double d, const char *warn_for);
-extern tree_constant fill_matrix (const tree_constant& a,
-				  const tree_constant& b,
-				  double d, const char *warn_for);
-
-extern tree_constant identity_matrix (const tree_constant& a);
-extern tree_constant identity_matrix (const tree_constant& a,
-				      const tree_constant& b);
-
-extern Octave_object find_nonzero_elem_idx (const tree_constant& a,
-					    int nargout);
-
-extern Octave_object matrix_log (const tree_constant& a);
-extern Octave_object matrix_sqrt (const tree_constant& a);
-
-extern Octave_object column_max (const Octave_object& args, int nargout);
-extern Octave_object column_min (const Octave_object& args, int nargout);
-  
-extern Octave_object sort (const Octave_object& args, int nargout);
- 
-extern Octave_object feval (const Octave_object& args, int nargout);
-
-extern tree_constant eval_string (const tree_constant& arg, int&
-				  parse_status);
-
-extern tree_constant get_user_input (const Octave_object& args,
-				     int nargout, int debug = 0);
-
 #endif
 
 /*