Files
MINGW-packages/mingw-w64-python3/0740-grammar-fixes.patch
2013-12-27 11:17:12 +04:00

34 lines
883 B
Diff

diff -urN a/Modules/parsermodule.c b/Modules/parsermodule.c
--- a/Modules/parsermodule.c 2013-12-26 18:49:35.701189500 +0000
+++ b/Modules/parsermodule.c 2013-12-26 18:49:39.089383200 +0000
@@ -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-12-26 18:49:36.039208800 +0000
+++ b/Parser/metagrammar.c 2013-12-26 18:49:39.091383400 +0000
@@ -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 *