Files
MINGW-packages/mingw-w64-python2/0740-grammar-fixes.patch

34 lines
891 B
Diff

diff -urN a/Modules/parsermodule.c b/Modules/parsermodule.c
--- a/Modules/parsermodule.c 2014-10-11 22:44:02.797601000 +0100
+++ b/Modules/parsermodule.c 2014-10-11 22:44:04.881720200 +0100
@@ -39,7 +39,7 @@
#include "ast.h"
#include "pyarena.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 22:44:01.884548800 +0100
+++ b/Parser/metagrammar.c 2014-10-11 22:44:04.882720200 +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 *