Changeset 1aa559b in git for Singular/ipshell.cc


Ignore:
Timestamp:
Feb 23, 2004, 8:04:05 PM (20 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
Children:
3ebba4a56769d7784bf8af7c80ff439c6a7b152e
Parents:
a9042d0e9a0cd833346da77996b03bb5379ec4bc
Message:
*hannes: fixes + MPport from 2-0


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

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    ra9042d r1aa559b  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.85 2004-02-12 09:33:39 Singular Exp $ */
     4/* $Id: ipshell.cc,v 1.86 2004-02-23 19:04:02 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    10461046      root=&currRing->idroot;
    10471047    }
     1048    BOOLEAN keepring=FALSE;
    10481049    if ((h!=NULL)&&(IDLEV(h)==toLev))
    10491050    {
    10501051      if (IDTYP(h)==v->Typ())
    10511052      {
     1053        if (((IDTYP(h)==RING_CMD)||(IDTYP(h)==QRING_CMD))
     1054        && (v->Data()==IDDATA(h)))
     1055        {
     1056          IDRING(h)->ref++;
     1057          keepring=TRUE;
     1058          IDLEV(h)=toLev;
     1059          //WarnS("keepring");
     1060          return FALSE;
     1061        }
    10521062        if (BVERBOSE(V_REDEFINE))
    10531063        {
     
    10551065        }
    10561066#ifdef USE_IILOCALRING
    1057         if (iiLocalRing[0]==IDRING(h)) iiLocalRing[0]=NULL;
     1067        if (iiLocalRing[0]==IDRING(h) && (!keepring)) iiLocalRing[0]=NULL;
    10581068#else
    10591069        proclevel *p=procstack;
    10601070        while (p->next!=NULL) p=p->next;
    1061         if (p->cRing==IDRING(h))
     1071        if ((p->cRing==IDRING(h)) && (!keepring))
    10621072        {
    10631073          p->cRing=NULL;
     
    10741084    h=(idhdl)v->data;
    10751085    IDLEV(h)=toLev;
     1086    if (keepring) IDRING(h)->ref--;
    10761087    iiNoKeepRing=FALSE;
    10771088    //Print("export %s\n",IDID(h));
Note: See TracChangeset for help on using the changeset viewer.