19 {
21 *iteratorAnother = anotherMonom.ListHead;
22 while (iterator && iteratorAnother)
23 {
24 if (iterator->Value < iteratorAnother->Value)
25 {
26 return 1;
27 }
28 if (iterator->Value > iteratorAnother->Value)
29 {
30 return -1;
31 }
32 iterator = iterator->Next;
33 iteratorAnother = iteratorAnother->Next;
34 }
35
36 if (iterator)
37 {
38 return 1;
39 }
40 else if (iteratorAnother)
41 {
42 return -1;
43 }
44 else
45 {
46 return 0;
47 }
48 }
Singly linked-list node of a Monom's variable list, with a per-class slab allocator.