aboutsummaryrefslogtreecommitdiffstats
path: root/defs.h
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-05-25 00:06:54 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-05-25 00:06:54 +0000
commit9a55a687de80f41235f0e4a74910c6528df3902a (patch)
tree869fae13c2cc18c4b6d3f4fd383e0bb9544b1fcb /defs.h
parent4ecea33a988c00caa98cacf934e61e361d94e8af (diff)
downloadsrc-9a55a687de80f41235f0e4a74910c6528df3902a.tar.gz
src-9a55a687de80f41235f0e4a74910c6528df3902a.zip
Import byacc 20140422vendor/byacc/20140422
Notes
Notes: svn path=/vendor/byacc/dist/; revision=266637 svn path=/vendor/byacc/20140422/; revision=266638; tag=vendor/byacc/20140422
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/defs.h b/defs.h
index 9af3a82a6258..58ebc8d66dcb 100644
--- a/defs.h
+++ b/defs.h
@@ -1,4 +1,4 @@
-/* $Id: defs.h,v 1.47 2014/04/09 21:23:45 Rick.Spates Exp $ */
+/* $Id: defs.h,v 1.49 2014/04/22 23:34:34 tom Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -409,6 +409,10 @@ extern param *parse_param;
#endif
#endif
+#ifndef GCC_PRINTFLIKE
+#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
+#endif
+
/* closure.c */
extern void closure(Value_t * nucleus, int n);
extern void finalize_closure(void);
@@ -488,7 +492,7 @@ struct mstring
char *base, *ptr, *end;
};
-extern void msprintf(struct mstring *, const char *, ...);
+extern void msprintf(struct mstring *, const char *, ...) GCC_PRINTFLIKE(2,3);
extern int mputchar(struct mstring *, int);
extern struct mstring *msnew(void);
extern char *msdone(struct mstring *);
@@ -535,5 +539,6 @@ extern void lr0_leaks(void);
extern void lalr_leaks(void);
extern void mkpar_leaks(void);
extern void output_leaks(void);
+extern void mstring_leaks(void);
extern void reader_leaks(void);
#endif