Optimize _pop_back for dual push list.
This commit is contained in:
1 parent
7cb5092010
commit
2b6a266b93
1 file changed
+3
-2
@@ -861,9 +861,10 @@
|
||||
assert (v->back != NULL); \
|
||||
struct M_C(name, _s) *tofree = v->back; \
|
||||
if (data != NULL) { \
|
||||
M_CALL_SET(oplist, *data, tofree->data); \
|
||||
M_DO_MOVE(oplist, *data, tofree->data); \
|
||||
} else { \
|
||||
M_CALL_CLEAR(oplist, tofree->data); \
|
||||
} \
|
||||
M_CALL_CLEAR(oplist, tofree->data); \
|
||||
v->back = tofree->next; \
|
||||
M_C(name,_int_del)(tofree); \
|
||||
/* Update front too if the list became empty */ \
|
||||
|
||||
Reference in new issue
Block a user