|
@@ -606,9 +606,9 @@ do{ \
|
606
|
606
|
* should be aware of this.
|
607
|
607
|
* - it follows the new order of `tmp' and appends each array element in
|
608
|
608
|
* a new llist.
|
609
|
|
- * - the head of the new llist is returned.
|
|
609
|
+ * - the head of the new llist is assigned to _new_head
|
610
|
610
|
*/
|
611
|
|
-#define clist_qsort(_head, _counter, _cmp_func) \
|
|
611
|
+#define clist_qsort(_new_head, _head, _counter, _cmp_func) \
|
612
|
612
|
({ \
|
613
|
613
|
l_list *_hcq=(l_list *)(_head), *_ncq, *_hecq, *_tcq; \
|
614
|
614
|
int _icq=0, _ccq; \
|
|
@@ -629,7 +629,7 @@ do{ \
|
629
|
629
|
for(_icq=0; _icq<_ccq; _icq++) \
|
630
|
630
|
_tcq=(l_list *)list_append(0, _tcq, _tmp_list[_icq]); \
|
631
|
631
|
\
|
632
|
|
- (typeof((_head)))_hecq; \
|
|
632
|
+ _new_head = (typeof((_head)))_hecq; \
|
633
|
633
|
}) \
|
634
|
634
|
|
635
|
635
|
#endif /*LLIST_C*/
|