Files
MINGW-packages/mingw-w64-python3/0740-grammar-fixes.patch
2014-10-11 14:46:25 +01:00

34 lines
883 B
Diff

diff -urN a/Modules/parsermodule.c b/Modules/parsermodule.c
--- a/Modules/parsermodule.c 2014-10-11 14:22:43.329075800 +0100
+++ b/Modules/parsermodule.c 2014-10-11 14:22:44.993171000 +0100
@@ -37,7 +37,7 @@
#undef Yield
#include "ast.h"
-extern grammar _PyParser_Grammar; /* From graminit.c */
+PyAPI_DATA(grammar) _PyParser_Grammar; /* From graminit.c */
#ifdef lint
#include <note.h>
diff -urN a/Parser/metagrammar.c b/Parser/metagrammar.c
--- a/Parser/metagrammar.c 2014-10-11 14:22:43.041059300 +0100
+++ b/Parser/metagrammar.c 2014-10-11 14:22:44.994171000 +0100
@@ -139,7 +139,7 @@
{7, 0},
{8, 0},
};
-static grammar _PyParser_Grammar = {
+static grammar _PyParser_MetaGrammar = {
6,
dfas,
{19, labels},
@@ -149,7 +149,7 @@
grammar *
meta_grammar(void)
{
- return &_PyParser_Grammar;
+ return &_PyParser_MetaGrammar;
}
grammar *