changeset 58:9279ecdea19e pytave-new

fix isvar with globals
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 08 Jun 2009 13:55:29 +0200
parents 732b6b4b2c45
children f379cb14c4d4
files ChangeLog pytave.cc
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jun 08 11:58:20 2009 +0200
+++ b/ChangeLog	Mon Jun 08 13:55:29 2009 +0200
@@ -1,3 +1,7 @@
+2009-06-03  Jaroslav Hajek  <highegg@gmail.com>
+
+	* pytave.cc (isvar): Fix tests.
+
 2009-06-08  Jaroslav Hajek  <highegg@gmail.com>, David Grundberg  <individ@acc.umu.se>
 
 	* octave_to_python.cc (copy_octarray_to_pyarrobj<PyObject *,
--- a/pytave.cc	Mon Jun 08 11:58:20 2009 +0200
+++ b/pytave.cc	Mon Jun 08 13:55:29 2009 +0200
@@ -253,9 +253,9 @@
       bool retval;
 
       if (global)
-         retval = symbol_table::is_global (name);
+         retval = symbol_table::global_varval (name).is_defined ();
       else
-         retval = symbol_table::is_local_variable (name);
+         retval = symbol_table::is_variable (name);
 
       return retval;
    }