34 lines
885 B
Diff
34 lines
885 B
Diff
diff -Naur a/Modules/parsermodule.c b/Modules/parsermodule.c
|
|
--- a/Modules/parsermodule.c 2014-05-19 09:19:39.000000000 +0400
|
|
+++ b/Modules/parsermodule.c 2014-05-20 00:56:45.700000000 +0400
|
|
@@ -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 -Naur a/Parser/metagrammar.c b/Parser/metagrammar.c
|
|
--- a/Parser/metagrammar.c 2014-05-19 09:19:39.000000000 +0400
|
|
+++ b/Parser/metagrammar.c 2014-05-20 00:56:45.731200000 +0400
|
|
@@ -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 *
|