#include <stdarg.h>
+#ifndef MLIB_ARENA_H
+# include "arena.h"
+#endif
+
#ifndef MLIB_MACROS_H
# include "macros.h"
#endif
/* --- @gprintf_memputf@ --- *
*
- * Arguments: @char **buf_inout@ = address of output buffer pointer
+ * Arguments: @arena *a@ = memory allocation arena
+ * @char **buf_inout@ = address of output buffer pointer
* @size_t *sz_inout@ = address of buffer size
* @size_t maxsz@ = buffer size needed for this operation
* @const char *p@ = pointer to format string
* buffer, and the formatted string will have been written to
* the buffer.
*
- * When the buffer is no longer required, free it using @xfree@.
+ * When the buffer is no longer required, free it using
+ * @x_free@.
*/
-extern size_t gprintf_memputf(char **/*buf_inout*/, size_t */*sz_inout*/,
+extern size_t gprintf_memputf(arena */*a*/,
+ char **/*buf_inout*/, size_t */*sz_inout*/,
size_t /*maxsz*/,
const char */*p*/, va_list /*ap*/);