The symbolic package contains a few references to lists and therefore fails to 
compile in octave-3.4. The patch below corrects for this.

M.

-----------------------------------
diff -Naur symbolic-1.0.9/src/symbols.cc symbolic-1.0.9.new/src/symbols.cc
--- symbolic-1.0.9/src/symbols.cc       2009-06-07 03:45:55.000000000 -0700
+++ symbolic-1.0.9.new/src/symbols.cc   2011-03-24 17:42:29.139600452 -0700
@@ -373,7 +373,7 @@
                        gripe_wrong_type_arg ("subs",args(0));
                        return retval;
                }
-               if (!(args(1).is_list() || args(1).is_cell())) {
+               if (!(args(1).is_cell())) {
                        if (!get_symbol (args(1), the_sym)) {
                                gripe_wrong_type_arg("subs",args(1));
                                return retval;
diff -Naur symbolic-1.0.9/src/symlsolve.cc symbolic-1.0.9.new/src/symlsolve.cc
--- symbolic-1.0.9/src/symlsolve.cc     2009-06-07 03:45:55.000000000 -0700
+++ symbolic-1.0.9.new/src/symlsolve.cc 2011-03-24 17:42:37.215600451 -0700
@@ -46,7 +46,7 @@
        }
        
        try {
-               if(args(0).is_list() || args(0).is_cell()) {
+               if(args(0).is_cell()) {
                        octave_value_list oct_eqn_list(args(0).list_value());
                        for(i=0;i<oct_eqn_list.length();i++) {
                                if(!get_relation(oct_eqn_list(i),relation)) {
@@ -67,7 +67,7 @@
                        eqns.append(relation);
                }
  
-               if(args(1).is_list() || args(1).is_cell()) {
+               if(args(1).is_cell()) {
                        octave_value_list oct_vars(args(1).list_value());
                        for(i=0;i<oct_vars.length();i++) {
                                if(!get_symbol(oct_vars(i),expression)) {

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to