Changeset 56ffd98 in git


Ignore:
Timestamp:
Apr 3, 2019, 2:08:46 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
Children:
f573055591b5819fc2d6a5795ca9b931a998ad1d
Parents:
2473c953979c291dd9b3163a11c034a8f2518cba
Message:
chg: several versions of ggetid
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipid.cc

    r2473c9 r56ffd98  
    543543
    544544#if 0
     545// debug version
     546idhdl ggetid(const char *n)
     547{
     548  if (currRing!=NULL)
     549  {
     550    idhdl h2 = currRing->idroot->get(n,myynest);
     551    idhdl h = IDROOT->get(n,myynest);
     552    if ((h!=NULL)&&(h2!=NULL)&&(IDLEV(h)==IDLEV(h2)))
     553    {
     554      Warn("SHADOW %s(%s) vs %s(%s) in %s\n",IDID(h),Tok2Cmdname(IDTYP(h)),IDID(h2),Tok2Cmdname(IDTYP(h2)),my_yylinebuf);
     555    }
     556    if ((h2!=NULL)&&(IDLEV(h2)==myynest)) return h2;
     557    if (h!=NULL) return h;
     558    if (h2!=NULL) return h2;
     559  }
     560  else
     561  {
     562    idhdl h = IDROOT->get(n,myynest);
     563    if (h!=NULL) return h;
     564  }
     565  if (basePack!=currPack)
     566    return basePack->idroot->get(n,myynest);
     567  return NULL;
     568}
     569#endif
     570#if 1
     571// try currRing before non-ring stuff
    545572idhdl ggetid(const char *n)
    546573{
     
    563590}
    564591#endif
    565 #if 1
     592#if 0
     593// try non-ring stuff before ring stuff
    566594idhdl ggetid(const char *n)
    567595{
Note: See TracChangeset for help on using the changeset viewer.