chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils/macros.h: Support for compiler-specific annotations.
[mLib]
/
struct
/
dstr.h
diff --git
a/struct/dstr.h
b/struct/dstr.h
index e1851a21e8b76d95b3bdf08fe9516723029d4903..1c43cb720e1b74ab1b61b95627af809da6691a22 100644
(file)
--- a/
struct/dstr.h
+++ b/
struct/dstr.h
@@
-56,6
+56,10
@@
# include "arena.h"
#endif
# include "arena.h"
#endif
+#ifndef MLIB_MACROS_H
+# include "macros.h"
+#endif
+
/*----- Data structures ---------------------------------------------------*/
typedef struct dstr {
/*----- Data structures ---------------------------------------------------*/
typedef struct dstr {
@@
-225,7
+229,8
@@
extern int dstr_vputf(dstr */*d*/, const char */*p*/, va_list */*ap*/);
* itself is malicious.
*/
* 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@ --- *
*
/* --- @dstr_putd@ --- *
*