Skip to content

Commit aed3c7e

Browse files
author
martin.v.loewis
committed
Issue #4279: Fix build of parsermodule under Cygwin.
git-svn-id: http://svn.python.org/projects/python/trunk@68523 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 0dbaa77 commit aed3c7e

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

Misc/NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ C-API
331331
Extension Modules
332332
-----------------
333333

334+
- Issue #4279: Fix build of parsermodule under Cygwin.
335+
334336
- Issue #4051: Prevent conflict of UNICODE macros in cPickle.
335337

336338
- Issue #4228: Pack negative values the same way as 2.4 in struct's L format.

Parser/printgrammar.c

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ printgrammar(grammar *g, FILE *fp)
1616
fprintf(fp, "/* Generated by Parser/pgen */\n\n");
1717
fprintf(fp, "#include \"pgenheaders.h\"\n");
1818
fprintf(fp, "#include \"grammar.h\"\n");
19+
fprintf(fp, "PyAPI_DATA(grammar) _PyParser_Grammar;\n");
1920
printdfas(g, fp);
2021
printlabels(g, fp);
2122
fprintf(fp, "grammar _PyParser_Grammar = {\n");

Python/graminit.c

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include "pgenheaders.h"
44
#include "grammar.h"
5+
PyAPI_DATA(grammar) _PyParser_Grammar;
56
static arc arcs_0_0[3] = {
67
{2, 1},
78
{3, 1},

0 commit comments

Comments
 (0)