__attribute__((unused));
static int input (yyscan_t yyscanner) __attribute__((unused));
-#define printf_dbg(fmt, args...) fprintf(stderr, "%s: " fmt, __func__, args)
-#define printf_dbg_noarg(fmt) fprintf(stderr, "%s: " fmt, __func__)
+#define printf_dbg(fmt, args...) fprintf(stderr, "%s: " fmt, __func__, ##args)
%}
#include "ctf-parser.h"
#include "ctf-ast.h"
-#define printf_dbg(fmt, args...) fprintf(stderr, "%s: " fmt, __func__, args)
-#define printf_dbg_noarg(fmt) fprintf(stderr, "%s: " fmt, __func__)
+#define printf_dbg(fmt, args...) fprintf(stderr, "%s: " fmt, __func__, ## args)
int yyparse(struct ctf_scanner *scanner);
int yylex(union YYSTYPE *yyval, struct ctf_scanner *scanner);
{
struct ctf_scanner_scope *ns;
- printf_dbg_noarg("push scope\n");
+ printf_dbg("push scope\n");
ns = malloc(sizeof(struct ctf_scanner_scope));
init_scope(ns, scanner->cs);
scanner->cs = ns;
{
struct ctf_scanner_scope *os;
- printf_dbg_noarg("pop scope\n");
+ printf_dbg("pop scope\n");
os = scanner->cs;
scanner->cs = os->parent;
finalize_scope(os);