Kaydet (Commit) b3b7d859 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Issue #4279: Fix build of parsermodule under Cygwin.

üst 14aa4599
...@@ -331,6 +331,8 @@ C-API ...@@ -331,6 +331,8 @@ C-API
Extension Modules Extension Modules
----------------- -----------------
- Issue #4279: Fix build of parsermodule under Cygwin.
- Issue #4051: Prevent conflict of UNICODE macros in cPickle. - Issue #4051: Prevent conflict of UNICODE macros in cPickle.
- Issue #4228: Pack negative values the same way as 2.4 in struct's L format. - Issue #4228: Pack negative values the same way as 2.4 in struct's L format.
......
...@@ -16,6 +16,7 @@ printgrammar(grammar *g, FILE *fp) ...@@ -16,6 +16,7 @@ printgrammar(grammar *g, FILE *fp)
fprintf(fp, "/* Generated by Parser/pgen */\n\n"); fprintf(fp, "/* Generated by Parser/pgen */\n\n");
fprintf(fp, "#include \"pgenheaders.h\"\n"); fprintf(fp, "#include \"pgenheaders.h\"\n");
fprintf(fp, "#include \"grammar.h\"\n"); fprintf(fp, "#include \"grammar.h\"\n");
fprintf(fp, "PyAPI_DATA(grammar) _PyParser_Grammar;\n");
printdfas(g, fp); printdfas(g, fp);
printlabels(g, fp); printlabels(g, fp);
fprintf(fp, "grammar _PyParser_Grammar = {\n"); fprintf(fp, "grammar _PyParser_Grammar = {\n");
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include "pgenheaders.h" #include "pgenheaders.h"
#include "grammar.h" #include "grammar.h"
PyAPI_DATA(grammar) _PyParser_Grammar;
static arc arcs_0_0[3] = { static arc arcs_0_0[3] = {
{2, 1}, {2, 1},
{3, 1}, {3, 1},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment