Changeset f92a39 in git for Singular/newstruct.cc


Ignore:
Timestamp:
Oct 15, 2012, 7:44:58 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
d6b9d791f6efb67f432972147de4dfd0f4081862
Parents:
17874ed75ee295b8f839c9c6087da10a82e6ff2e
Message:
fix: implementation of return(..) improved
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/newstruct.cc

    r17874e rf92a39  
    7474        char *res = omStrDup((char*)sl->Data());
    7575        sl->CleanUp();
     76        iiRETURNEXPR.Init();
    7677        return res;
    7778      }
    78       else
    79         sl->CleanUp();     
     79      sl->CleanUp();
     80      iiRETURNEXPR.Init();
    8081    }
    8182
     
    171172  newstruct_desc nt=(newstruct_desc)ll->data;
    172173  newstruct_proc p=nt->procs;
    173  
     174
    174175  while( (p!=NULL) && ((p->t!='=')||(p->args!=1)) ) p=p->next;
    175176
     
    187188    if (sl != NULL)
    188189    {
    189       if (sl->Typ() == op) { l->Copy(sl); return FALSE;}
    190       else sl->CleanUp();
     190      if (sl->Typ() == op)
     191      {
     192        l->Copy(sl);
     193        iiRETURNEXPR.Init();
     194        return FALSE;
     195      }
     196      sl->CleanUp();
     197      iiRETURNEXPR.Init();
    191198    }
    192199  }
     
    287294    {
    288295      res->Copy(sl);
     296      iiRETURNEXPR.Init();
    289297      return FALSE;
    290298    }
     
    417425    {
    418426      res->Copy(sl);
     427      iiRETURNEXPR.Init();
    419428      return FALSE;
    420429    }
     
    460469    {
    461470      res->Copy(sl);
     471      iiRETURNEXPR.Init();
    462472      return FALSE;
    463473    }
     
    594604    hh.data.pinf=p->p;
    595605    sl=iiMake_proc(&hh,NULL,&tmp);
     606    if (sl!=NULL) sl->CleanUp();
     607    iiRETURNEXPR.Init();
    596608  }
    597609  else
Note: See TracChangeset for help on using the changeset viewer.