]> granicus.if.org Git - python/commitdiff
Compile pgenmain.c and printgrammar.c with PGEN defined
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 28 Dec 2010 23:05:20 +0000 (23:05 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 28 Dec 2010 23:05:20 +0000 (23:05 +0000)
Parser/pgenmain.c
Parser/printgrammar.c

index 88fa7f19b84a84480feeb9d85a8eca3ae90df6e9..4b7b55a4f18a3ed8dd30d8c4669d3e07a78b65c6 100644 (file)
@@ -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"
index 01f552f2d70d5a12e5a5fc489e6728444086f856..dd7e6ae2ef202ad72344d98eeeabcde6a5fea3d6 100644 (file)
@@ -1,6 +1,8 @@
 
 /* Print a bunch of C initializers that represent a grammar */
 
+#define PGEN
+
 #include "pgenheaders.h"
 #include "grammar.h"