From 376ec32dce3be56d6fbd1d9e13aa7b8791bf6c36 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 13 May 2003 05:47:04 +0000 Subject: [PATCH] Fix bug in PRINT() macro Original commit message from CVS: Fix bug in PRINT() macro --- common | 2 +- gst/parse/parse.l | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/common b/common index c5d7301..5cca5dd 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit c5d7301d645fbee2881c30e86152cb3d2152e33b +Subproject commit 5cca5ddc23e23658e8287f7c2fbc4aebddaf3e12 diff --git a/gst/parse/parse.l b/gst/parse/parse.l index 75e50b8..4474287 100644 --- a/gst/parse/parse.l +++ b/gst/parse/parse.l @@ -11,18 +11,12 @@ #endif #ifdef G_HAVE_ISO_VARARGS -# ifdef GST_DEBUG_ENABLED -# define PRINT(...) GST_DEBUG (GST_CAT_PIPELINE, "flex: "__VA_ARGS__) -# endif +#define PRINT(...) GST_DEBUG (GST_CAT_PIPELINE, "flex: "__VA_ARGS__) #elif defined(G_HAVE_GNUC_VARARGS) -# ifdef GST_DEBUG_ENABLED -# define PRINT(...) GST_DEBUG (GST_CAT_PIPELINE, "flex: "##args) -# endif +#define PRINT(args...) GST_DEBUG (GST_CAT_PIPELINE, "flex: "##args) #else -# ifdef GST_DEBUG_ENABLED -# define PRINT(a...) GST_DEBUG (GST_CAT_PIPELINE, "flex: "##a) -# endif -#endif /* G_HAVE_ISO_VARARGS */ +#define PRINT(args...) +#endif #define YY_DECL int _gst_parse_yylex (YYSTYPE *lvalp) %} -- 2.7.4