Mercurial > hg > octave-nkf
diff src/variables.cc @ 490:101e1d4f2395
[project @ 1994-07-06 14:38:19 by jwe]
author | jwe |
---|---|
date | Wed, 06 Jul 1994 14:39:03 +0000 |
parents | 976182cb5e74 |
children | 0f388340e607 |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -79,8 +79,8 @@ if (sr != (symbol_record *) NULL) { - tree *ans = sr->def (); - if (ans != NULL_TREE) + tree_fvc *ans = sr->def (); + if (ans != (tree_fvc *) NULL) { char *ff = ans->fcn_file_name (); if (! (ff == (char *) NULL @@ -277,9 +277,9 @@ char *retval = (char *) NULL; - tree *defn = sr->def (); + tree_fvc *defn = sr->def (); - if (defn != NULL_TREE) + if (defn != (tree_fvc *) NULL) { tree_constant val = defn->eval (0); @@ -309,9 +309,9 @@ assert (sr != (symbol_record *) NULL); - tree *defn = sr->def (); + tree_fvc *defn = sr->def (); - if (defn != NULL_TREE) + if (defn != (tree_fvc *) NULL) { tree_constant val = defn->eval (0); @@ -631,10 +631,10 @@ /* * Is this tree_constant a valid function? */ -tree * +tree_fvc * is_valid_function (tree_constant& arg, char *warn_for, int warn = 0) { - tree *ans = NULL_TREE; + tree_fvc *ans = (tree_fvc *) NULL; if (! arg.is_string_type ()) { @@ -659,12 +659,12 @@ } ans = sr->def (); - if (ans == NULL_TREE || ! sr->is_function ()) + if (ans == (tree_fvc *) NULL || ! sr->is_function ()) { if (warn) error ("%s: the symbol `%s' is not valid as a function", warn_for, fcn_name); - ans = NULL_TREE; + ans = (tree_fvc *) NULL; } return ans; @@ -674,7 +674,7 @@ * Does this function take the right number of arguments? */ int -takes_correct_nargs (tree *fcn, int expected_nargin, char *warn_for, +takes_correct_nargs (tree_fvc *fcn, int expected_nargin, char *warn_for, int warn = 0) { int nargs = fcn->max_expected_args () - 1;