348 {
351 *iteratorA = monomA.ListHead,
352 *iteratorB = monomB.ListHead;
353
354 while (iteratorA && iteratorB)
355 {
356 if (iteratorA->Value == iteratorB->Value)
357 {
358 iteratorA = iteratorA->Next;
359 iteratorB = iteratorB->Next;
360 }
361 else
362 {
365 (*iterator)->Value = iteratorA->Value;
366 iterator = &((*iterator)->Next);
367 if (iteratorA->Value < iteratorB->Value)
368 {
369 iteratorA = iteratorA->Next;
370 }
371 }
372 }
373
374 while (iteratorA)
375 {
378 (*iterator)->Value = iteratorA->Value;
379 iterator = &((*iterator)->Next);
380 iteratorA = iteratorA->Next;
381 }
382 }
Singly linked-list node of a Monom's variable list, with a per-class slab allocator.