*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+# include "config.h"
#endif
#include <stdlib.h>
_arr_descr *dp = _ARR_DESCR (elts);
ARR_VRFY (elts);
- assert (dp->cookie == ARR_F_MAGIC);
+ assert (dp->magic == ARR_F_MAGIC);
#ifndef NDEBUG
- dp->cookie = 0xdeadbeef;
+ dp->magic = 0xdeadbeef;
#endif
free (dp);
}
{
_arr_descr *dp = _ARR_DESCR (elts);
- assert ((dp->cookie == ARR_F_MAGIC) && (nelts >= 0));
+ assert ((dp->magic == ARR_F_MAGIC) && (nelts >= 0));
ARR_VRFY (elts);
assert (!dp->eltsize || !nelts || (dp->eltsize == elts_size/nelts));
* Resize a flexible array, allocate more data if needed but do NOT
* reduce.
*
- * @param elts The flexible array (pointer to the first element).
- * @param nelts The new number of elements.
- * @param elts_size The size of the array elements.
+ * @param elts The flexible array (pointer to the first element).
+ * @param nelts The new number of elements.
+ * @param eltsize The size of the array elements.
*
* @return A resized flexible array, possibly other address than
* elts.
_arr_descr *dp = _ARR_DESCR (elts);
int n;
- assert ((dp->cookie == ARR_F_MAGIC) && (nelts >= 0));
+ assert ((dp->magic == ARR_F_MAGIC) && (nelts >= 0));
ARR_VRFY (elts);
assert (dp->eltsize ? dp->eltsize == eltsize : (dp->eltsize = eltsize, 1));