Changeset 7f68b2 in git
- Timestamp:
- Jan 7, 2002, 6:20:48 PM (22 years ago)
- Branches:
- (u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
- Children:
- 9f12b01ac1a74d42a84bda5d879008a64a565d71
- Parents:
- 692689de70864c2fce92fb4c9b577701c0b415d4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipid.cc
r692689d r7f68b2 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipid.cc,v 1.5 5 2001-10-23 14:04:22Singular Exp $ */4 /* $Id: ipid.cc,v 1.56 2002-01-07 17:20:48 Singular Exp $ */ 5 5 6 6 /* … … 418 418 419 419 errlabel: 420 Werror("identifier `%s` in use(lev h=%d,typ=%d,t=%d, curr=%d)",s,IDLEV(h),IDTYP(h),t,lev); 420 //Werror("identifier `%s` in use(lev h=%d,typ=%d,t=%d, curr=%d)",s,IDLEV(h),IDTYP(h),t,lev); 421 Werror("identifier `%s` in use",s); 421 422 #ifdef HAVE_NS 422 listall();423 //listall(); 423 424 #endif 424 425 omFree(s); … … 780 781 #else /* HAVE_NAMESPACES */ 781 782 idhdl h = IDROOT->get(n,myynest); 783 if ((h!=NULL)&&(IDLEV(h)==myynest)) return h; 782 784 idhdl h2=NULL; 783 if ( (currRing!=NULL) && ((h==NULL)||(IDLEV(h)!=myynest)))785 if (currRing!=NULL) 784 786 { 785 787 h2 = currRing->idroot->get(n,myynest); 786 788 } 787 if (h2==NULL) return h; 788 return h2; 789 if (h2!=NULL) return h2; 790 if (h!=NULL) return h; 791 #ifdef HAVE_NS 792 if (basePack!=currPack) 793 return basePack->idroot->get(n,myynest); 794 #endif 795 return NULL; 789 796 #endif /* HAVE_NAMESPACES */ 790 797 } … … 1055 1062 //Print("push %s\n",n); 1056 1063 proclevel *p=(proclevel*)omAlloc0(sizeof(proclevel)); 1057 p->currRing=::currRing;1058 p->currRingHdl=::currRingHdl;1064 //p->currRing=::currRing; 1065 //p->currRingHdl=::currRingHdl; 1059 1066 p->name=n; 1060 1067 #ifdef HAVE_NS
Note: See TracChangeset
for help on using the changeset viewer.