Changeset 860475 in git for Singular/ipshell.cc


Ignore:
Timestamp:
Apr 25, 2005, 11:19:31 AM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
6fe3a0c91dd5200c93586ade842a529bdc3bbd6e
Parents:
d5bd816e7a2f244105274429818a7d2c90398eee
Message:
*hannes: kill ring dep, variables in correct ring


git-svn-id: file:///usr/local/Singular/svn/trunk@7890 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    rd5bd816 r860475  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.101 2005-04-22 17:57:01 levandov Exp $ */
     4/* $Id: ipshell.cc,v 1.102 2005-04-25 09:19:31 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    241241}
    242242
    243 static void killlocals0(int v, idhdl * localhdl)
     243static void killlocals0(int v, idhdl * localhdl, const ring r)
    244244{
    245245  idhdl h = *localhdl;
     
    263263      {
    264264        idhdl nexth = IDNEXT(h);
    265         killhdl2(h,localhdl,currRing);
     265        killhdl2(h,localhdl,r);
    266266        h = nexth;
    267267        //PrintS("kill\n");
     
    278278void killlocals(int v)
    279279{
    280   killlocals0(v,&IDROOT);
     280  killlocals0(v,&IDROOT,currRing);
    281281
    282282  if ((iiRETURNEXPR_len > myynest)
     
    285285  {
    286286    leftv h=&iiRETURNEXPR[myynest];
    287     killlocals0(v,&(((ring)h->data)->idroot));
     287    killlocals0(v,&(((ring)h->data)->idroot),(ring)h->data);
    288288  }
    289289
     
    300300    {
    301301      if (IDRING(h)!=currRing) {changed=TRUE;rSetHdl(h);}
    302       killlocals0(v,&(IDRING(h)->idroot));
     302      killlocals0(v,&(IDRING(h)->idroot),IDRING(h));
    303303    }
    304304    else if (IDTYP(h) == PACKAGE_CMD)
    305305    {
    306       killlocals0(v,&(IDPACKAGE(h)->idroot));
     306      killlocals0(v,&(IDPACKAGE(h)->idroot),IDRING(h));
    307307    }
    308308    h = IDNEXT(h);
     
    375375    {
    376376      if (d!=currRing) {changed=TRUE;rChangeCurrRing((ring)d);}
    377       killlocals0(v,&(((ring)h->data)->idroot));
     377      killlocals0(v,&(((ring)h->data)->idroot),(ring)h->data);
    378378    }
    379379    else if (h->rtyp==LIST_CMD)
     
    400400      leftv h=&iiRETURNEXPR[myynest];
    401401      if (((ring)h->data)->idroot!=NULL)
    402         killlocals0(v,&(((ring)h->data)->idroot));
     402        killlocals0(v,&(((ring)h->data)->idroot),(ring)h->data);
    403403    }
    404404    else if (/*iiRETURNEXPR[myynest].Typ()*/ t==LIST_CMD)
Note: See TracChangeset for help on using the changeset viewer.