summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-01-11 09:30:50 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2009-01-11 09:30:50 (GMT)
commita9b54c78d7d56a87e748e685b07f4cf9a060746c (patch)
treecd540a4e61bb3a9e6e6d7b511d560aec793145d7 /Parser
parent81a3d1c13a04777de2288fb3fee445524f71bc51 (diff)
downloadcpython-a9b54c78d7d56a87e748e685b07f4cf9a060746c.zip
cpython-a9b54c78d7d56a87e748e685b07f4cf9a060746c.tar.gz
cpython-a9b54c78d7d56a87e748e685b07f4cf9a060746c.tar.bz2
Merged revisions 68523 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68523 | martin.v.loewis | 2009-01-11 10:26:54 +0100 (So, 11 Jan 2009) | 2 lines Issue #4279: Fix build of parsermodule under Cygwin. ........
Diffstat (limited to 'Parser')
-rw-r--r--Parser/printgrammar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/printgrammar.c b/Parser/printgrammar.c
index ec8f4da..ae180e1 100644
--- a/Parser/printgrammar.c
+++ b/Parser/printgrammar.c
@@ -16,6 +16,7 @@ printgrammar(grammar *g, FILE *fp)
fprintf(fp, "/* Generated by Parser/pgen */\n\n");
fprintf(fp, "#include \"pgenheaders.h\"\n");
fprintf(fp, "#include \"grammar.h\"\n");
+ fprintf(fp, "PyAPI_DATA(grammar) _PyParser_Grammar;\n");
printdfas(g, fp);
printlabels(g, fp);
fprintf(fp, "grammar _PyParser_Grammar = {\n");