summarylogtreecommitdiffstats
path: root/0043-grammar-fixes.patch
blob: 184934724206e763c6ecdd369377e8c3026d7f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From 36b85a28791eb087338e12f796e8d473d22f3ace 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 043/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.33.0