/* Copyright (c) 2003-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "aqueue.h"
{
return aqueue;
}
{
}
{
else {
}
}
{
}
}
{
if (n == 0) {
/* optimized deletion from tail */
return;
}
if (n == count-1) {
/* optimized deletion from head */
return;
}
/* move tail forward.
..tail##idx##head.. or ##head..tail##idx## */
} else {
/* move head backward.
..tail##idx##head.. or ##idx##head..tail## */
}
}
{
aqueue_delete(aqueue, 0);
}
{
}
{
}