Files
MINGW-packages/mingw-w64-python3/0100-grammar-fixes.patch
2013-12-09 00:08:47 +04:00

34 lines
883 B
Diff

diff -urN a/Modules/parsermodule.c b/Modules/parsermodule.c
--- a/Modules/parsermodule.c 2013-04-24 23:35:42.945766563 +0100
+++ b/Modules/parsermodule.c 2013-04-24 23:35:43.326769091 +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 2013-04-24 23:35:42.958766649 +0100
+++ b/Parser/metagrammar.c 2013-04-24 23:35:43.327769098 +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 *