* Initial python-3.7 port * python3: Add setup.config.in to remove before patching * python3: Implement setenv for mingw. Fix building with NT threads. Build with unicode * Fix typos * Fix linking core modules * Mingw build have exec_prefix * Remove deprecated patch * Fix building python and modules. Failing to build readline module and install not working yet * More getpath changes and more aggressive path separator conversion * Fix readline module compilation and linking errors * python3: By default building with posix threads, NT threads are broken. Some patches optimization. First buildable commit * Py_DecodeLocale handle char, not wchar * Fix building multiprocessing module with posix threads
34 lines
993 B
Diff
34 lines
993 B
Diff
diff -Naur Python-3.7.0-orig/Modules/parsermodule.c Python-3.7.0/Modules/parsermodule.c
|
|
--- Python-3.7.0-orig/Modules/parsermodule.c 2018-06-27 06:07:35.000000000 +0300
|
|
+++ Python-3.7.0/Modules/parsermodule.c 2018-06-30 11:17:27.259947200 +0300
|
|
@@ -42,7 +42,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 Python-3.7.0-orig/Parser/metagrammar.c Python-3.7.0/Parser/metagrammar.c
|
|
--- Python-3.7.0-orig/Parser/metagrammar.c 2018-06-27 06:07:35.000000000 +0300
|
|
+++ Python-3.7.0/Parser/metagrammar.c 2018-06-30 11:17:27.259947200 +0300
|
|
@@ -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 *
|