chiark / gitweb /
@@@ tvec doc wip
[mLib] / struct / dstr.h
index 1c43cb720e1b74ab1b61b95627af809da6691a22..93c60e2d0ece96247daa0d9362c64a29ade2c950 100644 (file)
@@ -47,6 +47,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #ifndef MLIB_ALLOC_H
 #  include "alloc.h"
@@ -71,6 +72,8 @@ typedef struct dstr {
 
 #define DSTR_INIT { 0, 0, 0, &arena_stdlib } /* How to initialize one */
 
+extern const struct gprintf_ops dstr_printops;
+
 /*----- Functions provided ------------------------------------------------*/
 
 /* --- @dstr_create@ --- *
@@ -229,8 +232,7 @@ extern int dstr_vputf(dstr */*d*/, const char */*p*/, va_list */*ap*/);
  *             itself is malicious.
  */
 
-extern int PRINTF_LIKE(2, 3)
-  dstr_putf(dstr */*d*/, const char */*p*/, ...);
+extern PRINTF_LIKE(2, 3) int dstr_putf(dstr */*d*/, const char */*p*/, ...);
 
 /* --- @dstr_putd@ --- *
  *