X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/2be33c7cbc32a245d360be404a5cc190f4ee0029..dff095f3bac7c61f574346c553486798d7fec426:/struct/dstr.h diff --git a/struct/dstr.h b/struct/dstr.h index e1851a2..1c43cb7 100644 --- a/struct/dstr.h +++ b/struct/dstr.h @@ -56,6 +56,10 @@ # include "arena.h" #endif +#ifndef MLIB_MACROS_H +# include "macros.h" +#endif + /*----- Data structures ---------------------------------------------------*/ typedef struct dstr { @@ -225,7 +229,8 @@ extern int dstr_vputf(dstr */*d*/, const char */*p*/, va_list */*ap*/); * itself is malicious. */ -extern int dstr_putf(dstr */*d*/, const char */*p*/, ...); +extern int PRINTF_LIKE(2, 3) + dstr_putf(dstr */*d*/, const char */*p*/, ...); /* --- @dstr_putd@ --- * *