From 60fe4999413fe31f8e19823c430e6699a058d30d Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 28 Dec 2010 23:05:20 +0000 Subject: [PATCH] Compile pgenmain.c and printgrammar.c with PGEN defined --- Parser/pgenmain.c | 2 ++ Parser/printgrammar.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Parser/pgenmain.c b/Parser/pgenmain.c index 88fa7f19b84..4b7b55a4f18 100644 --- a/Parser/pgenmain.c +++ b/Parser/pgenmain.c @@ -13,6 +13,8 @@ - check for duplicate definitions of names (instead of fatal err) */ +#define PGEN + #include "Python.h" #include "pgenheaders.h" #include "grammar.h" diff --git a/Parser/printgrammar.c b/Parser/printgrammar.c index 01f552f2d70..dd7e6ae2ef2 100644 --- a/Parser/printgrammar.c +++ b/Parser/printgrammar.c @@ -1,6 +1,8 @@ /* Print a bunch of C initializers that represent a grammar */ +#define PGEN + #include "pgenheaders.h" #include "grammar.h"