Changeset 7f68b2 in git


Ignore:
Timestamp:
Jan 7, 2002, 6:20:48 PM (22 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
Children:
9f12b01ac1a74d42a84bda5d879008a64a565d71
Parents:
692689de70864c2fce92fb4c9b577701c0b415d4
Message:
*hannes: update error messages


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

Legend:

Unmodified
Added
Removed
  • Singular/ipid.cc

    r692689d r7f68b2  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipid.cc,v 1.55 2001-10-23 14:04:22 Singular Exp $ */
     4/* $Id: ipid.cc,v 1.56 2002-01-07 17:20:48 Singular Exp $ */
    55
    66/*
     
    418418
    419419  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);
    421422#ifdef HAVE_NS
    422     listall();
     423    //listall();
    423424#endif
    424425    omFree(s);
     
    780781#else /* HAVE_NAMESPACES */
    781782  idhdl h = IDROOT->get(n,myynest);
     783  if ((h!=NULL)&&(IDLEV(h)==myynest)) return h;
    782784  idhdl h2=NULL;
    783   if ((currRing!=NULL) && ((h==NULL)||(IDLEV(h)!=myynest)))
     785  if (currRing!=NULL)
    784786  {
    785787    h2 = currRing->idroot->get(n,myynest);
    786788  }
    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;
    789796#endif /* HAVE_NAMESPACES */
    790797}
     
    10551062  //Print("push %s\n",n);
    10561063  proclevel *p=(proclevel*)omAlloc0(sizeof(proclevel));
    1057   p->currRing=::currRing;
    1058   p->currRingHdl=::currRingHdl;
     1064  //p->currRing=::currRing;
     1065  //p->currRingHdl=::currRingHdl;
    10591066  p->name=n;
    10601067  #ifdef HAVE_NS
Note: See TracChangeset for help on using the changeset viewer.