diff options
author | atomlong | 2021-08-28 11:19:04 +0800 |
---|---|---|
committer | atomlong | 2021-08-28 13:15:13 +0800 |
commit | 89a67c05174951d172252b1db96ff93cc4ec4bcd (patch) | |
tree | d8c39fa79b201cf9aea28c51e7446a252ed8fee4 /0050-grammar-fixes.patch | |
parent | cf8d8d8771493a2aa8370ed323d06dc733a84181 (diff) | |
download | aur-89a67c05174951d172252b1db96ff93cc4ec4bcd.tar.gz |
Update to 3.9.6
Diffstat (limited to '0050-grammar-fixes.patch')
-rw-r--r-- | 0050-grammar-fixes.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/0050-grammar-fixes.patch b/0050-grammar-fixes.patch new file mode 100644 index 000000000000..cc3d5f8eb08d --- /dev/null +++ b/0050-grammar-fixes.patch @@ -0,0 +1,45 @@ +From ece4431ade66c4abb835a489cacc002545ccb13a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?= + <alexey.pawlow@gmail.com> +Date: Thu, 17 Jun 2021 18:51:56 +0530 +Subject: [PATCH 050/N] grammar fixes +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Co-authored-by: Алексей <alexey.pawlow@gmail.com> +--- + Modules/parsermodule.c | 2 +- + Python/graminit.c | 3 ++- + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c +index 24b0ffb..98a3759 100644 +--- a/Modules/parsermodule.c ++++ b/Modules/parsermodule.c +@@ -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> +diff --git a/Python/graminit.c b/Python/graminit.c +index b7aa528..4a1ee9a 100644 +--- a/Python/graminit.c ++++ b/Python/graminit.c +@@ -2,7 +2,8 @@ + + #include "exports.h" + #include "grammar.h" +-Py_EXPORTED_SYMBOL grammar _PyParser_Grammar; ++#include "pyport.h" ++PyAPI_DATA(grammar) _PyParser_Grammar; + static const arc arcs_0_0[3] = { + {2, 1}, + {3, 2}, +-- +2.32.0 + |