Changeset 61944d0 in git for kernel/f5lists.cc
- Timestamp:
- Feb 26, 2009, 10:01:52 AM (14 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 60933487e53ddb20e0e5d7d5ccc137ac53893f37
- Parents:
- 7a8ca6fdf98e2078621ae6ac00ff9481cab3def8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/f5lists.cc
r7a8ca6 r61944d0 106 106 } 107 107 else { 108 if( 0 == pLmCmp(t,this->getTerm()) ||-1 == pLmCmp(t,this->getTerm())) {108 if(-1 == pLmCmp(t,this->getTerm())) { 109 109 LNode* newElement = new LNode(t, i, p, r, this); 110 110 return newElement; … … 113 113 LNode* temp = this; 114 114 while(NULL != temp->next && NULL != temp->next->data) { 115 if( 0 == pLmCmp(t,temp->next->getTerm()) ||-1 == pLmCmp(t,temp->next->getTerm())) {115 if(-1 == pLmCmp(t,temp->next->getTerm())) { 116 116 LNode* newElement = new LNode(t, i, p, r, temp->next); 117 117 temp->next = newElement; … … 188 188 } 189 189 190 void LNode::setNext(LNode* l) { 191 next = l; 192 } 193 190 194 // test if for any list element the polynomial part of the data is equal to *p 191 195 bool LNode::polyTest(poly* p) { … … 213 217 Print("Index: %d\n",temp->getIndex()); 214 218 Print("Term: "); 215 //pWrite(temp->getTerm());219 pWrite(temp->getTerm()); 216 220 Print("Poly: "); 217 //pWrite(temp->getPoly());221 pWrite(temp->getPoly()); 218 222 Print("\n"); 219 223 temp = temp->next; … … 312 316 313 317 void LList::setFirst(LNode* l) { 318 LNode* temp = first; 319 temp->setNext(NULL); 314 320 first = l; 315 321 length--;
Note: See TracChangeset
for help on using the changeset viewer.