diff options
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rw-r--r-- | Parser/printgrammar.c | 1 | ||||
-rw-r--r-- | Python/graminit.c | 1 |
3 files changed, 4 insertions, 0 deletions
@@ -284,6 +284,8 @@ C-API Extension Modules ----------------- +- Issue #4279: Fix build of parsermodule under Cygwin. + - Issue #4751: hashlib now releases the GIL when hashing large buffers (with a hardwired threshold of 2048 bytes), allowing better parallelization on multi-CPU systems. Contributed by Lukas Lueg (ebfe) and Victor Stinner. 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"); diff --git a/Python/graminit.c b/Python/graminit.c index 6f3787a..c503a32 100644 --- a/Python/graminit.c +++ b/Python/graminit.c @@ -2,6 +2,7 @@ #include "pgenheaders.h" #include "grammar.h" +PyAPI_DATA(grammar) _PyParser_Grammar; static arc arcs_0_0[3] = { {2, 1}, {3, 1}, |