src/list.c

changeset 1497
cd53fb8703c1
parent 1487
0ff535033b78
equal deleted inserted replaced
1496:1a982f6f2407 1497:cd53fb8703c1
1028 bool dst_was_empty = cxCollectionSize(dst) == 0; 1028 bool dst_was_empty = cxCollectionSize(dst) == 0;
1029 1029
1030 CxIterator src_iter = cxListIterator(src); 1030 CxIterator src_iter = cxListIterator(src);
1031 CxIterator other_iter = cxListIterator(other); 1031 CxIterator other_iter = cxListIterator(other);
1032 while (cxIteratorValid(src_iter) || cxIteratorValid(other_iter)) { 1032 while (cxIteratorValid(src_iter) || cxIteratorValid(other_iter)) {
1033 void *src_elem, *other_elem; 1033 void *src_elem = NULL, *other_elem = NULL;
1034 int d; 1034 int d;
1035 if (!cxIteratorValid(src_iter)) { 1035 if (!cxIteratorValid(src_iter)) {
1036 other_elem = cxIteratorCurrent(other_iter); 1036 other_elem = cxIteratorCurrent(other_iter);
1037 d = 1; 1037 d = 1;
1038 } else if (!cxIteratorValid(other_iter)) { 1038 } else if (!cxIteratorValid(other_iter)) {

mercurial