Changeset 1aa559b in git for Singular/ipshell.cc
- Timestamp:
- Feb 23, 2004, 8:04:05 PM (20 years ago)
- Branches:
- (u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
- Children:
- 3ebba4a56769d7784bf8af7c80ff439c6a7b152e
- Parents:
- a9042d0e9a0cd833346da77996b03bb5379ec4bc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipshell.cc
ra9042d r1aa559b 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipshell.cc,v 1.8 5 2004-02-12 09:33:39Singular Exp $ */4 /* $Id: ipshell.cc,v 1.86 2004-02-23 19:04:02 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 1046 1046 root=&currRing->idroot; 1047 1047 } 1048 BOOLEAN keepring=FALSE; 1048 1049 if ((h!=NULL)&&(IDLEV(h)==toLev)) 1049 1050 { 1050 1051 if (IDTYP(h)==v->Typ()) 1051 1052 { 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 } 1052 1062 if (BVERBOSE(V_REDEFINE)) 1053 1063 { … … 1055 1065 } 1056 1066 #ifdef USE_IILOCALRING 1057 if (iiLocalRing[0]==IDRING(h) ) iiLocalRing[0]=NULL;1067 if (iiLocalRing[0]==IDRING(h) && (!keepring)) iiLocalRing[0]=NULL; 1058 1068 #else 1059 1069 proclevel *p=procstack; 1060 1070 while (p->next!=NULL) p=p->next; 1061 if ( p->cRing==IDRING(h))1071 if ((p->cRing==IDRING(h)) && (!keepring)) 1062 1072 { 1063 1073 p->cRing=NULL; … … 1074 1084 h=(idhdl)v->data; 1075 1085 IDLEV(h)=toLev; 1086 if (keepring) IDRING(h)->ref--; 1076 1087 iiNoKeepRing=FALSE; 1077 1088 //Print("export %s\n",IDID(h));
Note: See TracChangeset
for help on using the changeset viewer.