Changeset 5f4463 in git for Singular/ipid.cc


Ignore:
Timestamp:
Apr 11, 2011, 6:39:34 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5beac5a8a177a4d4938cbc1e887bbd115a393f3a
Parents:
16733868763266ec04dae72db238bced32663735
Message:
making the sun-c/c++ compiler happy (still waiting for to issues...)



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

Legend:

Unmodified
Added
Removed
  • Singular/ipid.cc

    r1673386 r5f4463  
    7676}
    7777
    78 idhdl idrec::get(const char * s, int lev)
     78idhdl idrec::get(const char * s, int level)
    7979{
    8080  assume(s!=NULL);
    81   assume((lev>=0) && (lev<=1000)); //not really, but if it isnt in that bounds..
     81  assume((level>=0) && (level<=1000)); //not really, but if it isnt in that bounds..
    8282  idhdl h = this;
    8383  idhdl found=NULL;
    8484  int l;
    85   const char *id;
     85  const char *id_;
    8686  int i=iiS2I(s);
    8787  int less4=(i < (1<<24));
     
    9090    omCheckAddr((ADDRESS)IDID(h));
    9191    l=IDLEV(h);
    92     if ((l==0)||(l==lev))
     92    if ((l==0)||(l==level))
    9393    {
    9494      if (i==h->id_i)
    9595      {
    96         id=IDID(h);
    97         if (less4 || (0 == strcmp(s+4,id+4)))
     96        id_=IDID(h);
     97        if (less4 || (0 == strcmp(s+4,id_+4)))
    9898        {
    99           if (l==lev) return h;
     99          if (l==level) return h;
    100100          found=h;
    101101        }
     
    183183  return (void *)0L;
    184184}
    185 idhdl idrec::set(const char * s, int lev, int t, BOOLEAN init)
    186 {
    187   //printf("define %s, %x, lev: %d, typ: %d\n", s,s,lev,t);
     185idhdl idrec::set(const char * s, int level, int t, BOOLEAN init)
     186{
     187  //printf("define %s, %x, level: %d, typ: %d\n", s,s,level,t);
    188188  idhdl h = (idrec *)omAlloc0Bin(idrec_bin);
    189189  IDID(h)   = s;
    190190  IDTYP(h)  = t;
    191   IDLEV(h)  = lev;
     191  IDLEV(h)  = level;
    192192  IDNEXT(h) = this;
    193193  h->id_i=iiS2I(s);
Note: See TracChangeset for help on using the changeset viewer.