| diff -Naur Python-3.8.0-orig/Python/graminit.c Python-3.8.0/Python/graminit.c |
| --- Python-3.8.0-orig/Python/graminit.c 2019-10-14 16:34:47.000000000 +0300 |
| +++ Python-3.8.0/Python/graminit.c 2019-10-22 10:03:28.497403000 +0300 |
| @@ -1,7 +1,8 @@ |
| /* Generated by Parser/pgen */ |
| |
| #include "grammar.h" |
| -grammar _PyParser_Grammar; |
| +#include "pyport.h" |
| +PyAPI_DATA(grammar) _PyParser_Grammar; |
| static const arc arcs_0_0[3] = { |
| {2, 1}, |
| {3, 2}, |
| diff -Naur Python-3.8.0-orig/Modules/parsermodule.c Python-3.8.0/Modules/parsermodule.c |
| --- Python-3.8.0-orig/Modules/parsermodule.c 2019-10-14 16:34:47.000000000 +0300 |
| +++ Python-3.8.0/Modules/parsermodule.c 2019-10-22 10:03:28.497403000 +0300 |
| @@ -38,7 +38,7 @@ |
| #include "grammar.h" |
| #include "parsetok.h" |
| |
| -extern grammar _PyParser_Grammar; /* From graminit.c */ |
| +PyAPI_DATA(grammar) _PyParser_Grammar; /* From graminit.c */ |
| |
| #ifdef lint |
| #include <note.h> |