chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
struct/buf.3.in: Correct the type of `buf_put' in the synopsis.
[mLib]
/
utils
/
gprintf.h
diff --git
a/utils/gprintf.h
b/utils/gprintf.h
index 7bb0b043d2f02d91637ded00beda3920730eb517..bcef7bb2d3f63fff13738152454ef60c7090284a 100644
(file)
--- a/
utils/gprintf.h
+++ b/
utils/gprintf.h
@@
-36,6
+36,10
@@
#include <stdarg.h>
#include <stdarg.h>
+#ifndef MLIB_ARENA_H
+# include "arena.h"
+#endif
+
#ifndef MLIB_MACROS_H
# include "macros.h"
#endif
#ifndef MLIB_MACROS_H
# include "macros.h"
#endif
@@
-82,7
+86,8
@@
extern int vgprintf(const struct gprintf_ops */*ops*/, void */*out*/,
/* --- @gprintf_memputf@ --- *
*
/* --- @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
* @size_t *sz_inout@ = address of buffer size
* @size_t maxsz@ = buffer size needed for this operation
* @const char *p@ = pointer to format string
@@
-100,10
+105,12
@@
extern int vgprintf(const struct gprintf_ops */*ops*/, void */*out*/,
* buffer, and the formatted string will have been written to
* the buffer.
*
* 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*/);
size_t /*maxsz*/,
const char */*p*/, va_list /*ap*/);