Changeset 24c186a in git for Singular/ipid.cc
- Timestamp:
- Oct 21, 1998, 5:56:07 PM (26 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- db70590bb13095fcd6ee6111c59947adffc8ffcc
- Parents:
- 988b76aaa4ed3a9863bf3fd32588e8ee11211a7b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipid.cc
r988b76a r24c186a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipid.cc,v 1. 19 1998-10-21 10:25:32 krueger Exp $ */4 /* $Id: ipid.cc,v 1.20 1998-10-21 15:56:05 Singular Exp $ */ 5 5 6 6 /* … … 44 44 idhdl found=NULL; 45 45 int l; 46 char *id; 46 47 while (h!=NULL) 47 48 { 48 l=IDLEV(h);49 49 mmTestLP(IDID(h)); 50 if ((l==lev) && (0 == strcmp(s,IDID(h)))) return h; 51 if ((l==0) && (found==NULL) && (0 == strcmp(s,IDID(h)))) 52 { 53 found=h; 54 } 50 // id=IDID(h); 51 // l=IDLEV(h); 52 // if ((l==0) && (*(short *)s==*(short *)id) && (0 == strcmp(s+1,id+1))) 53 // { 54 // found=h; 55 // } 56 // else if ((l==lev) && (*(short *)s==*(short *)id) && (0 == strcmp(s+1,id+1))) 57 // { 58 // return h; 59 // } 60 id=IDID(h); 61 if (*(short *)s==*(short *)id) 62 { 63 l=IDLEV(h); 64 if ((l==0) && (0 == strcmp(s+1,id+1))) 65 { 66 found=h; 67 } 68 else if ((l==lev) && (0 == strcmp(s+1,id+1))) 69 { 70 return h; 71 } 72 } 73 // l=IDLEV(h); 74 // if ((l==0)||(l==lev)) 75 // { 76 // id=IDID(h); 77 // if (*(short *)s==*(short *)id) 78 // { 79 // if (0 == strcmp(s+1,id+1)) 80 // { 81 // if (l==lev) return h; 82 // found=h; 83 // } 84 // } 85 // } 55 86 h = IDNEXT(h); 56 87 }
Note: See TracChangeset
for help on using the changeset viewer.