From 44565a6d701f8c849e4e982c4c212ad3635b9c6d Mon Sep 17 00:00:00 2001 From: Christophe Alexandre Date: Tue, 1 Oct 2002 19:26:43 +0000 Subject: [PATCH] Making abv usable by C++ ... --- alliance/src/abv/src/abv.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/alliance/src/abv/src/abv.h b/alliance/src/abv/src/abv.h index c15b7563..48c7529c 100644 --- a/alliance/src/abv/src/abv.h +++ b/alliance/src/abv/src/abv.h @@ -41,6 +41,14 @@ extern "C" { #endif /* __cplusplus */ +#ifndef __P +# if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus) +# define __P(x) x +# else +# define __P(x) () +# endif +#endif + #define ABV_TRACE_MASK 0x00000001 /* print messages when parsing */ #define ABV_KEEP_AUX_MASK 0x00000002 /* keep internal signals */ #define ABV_SYNTH_MASK 0x00000004 /* special mode for synthesis */ @@ -49,8 +57,8 @@ extern "C" { /* functions */ /* ###------------------------------------------------------### */ -extern struct befig *vhdlloadbefig (); -extern void vhdlsavebefig (); +extern struct befig *vhdlloadbefig __P((struct befig *pt_befig, char *figname, int trace_mode)); +extern void vhdlsavebefig __P((struct befig *pthedbefig, int trace_mode)); #ifdef __cplusplus }