summaryrefslogtreecommitdiff
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-12 12:06:42 -0700
committerGitHub <noreply@github.com>2018-09-12 12:06:42 -0700
commite5024517811ee990b770fca0ba7058742d00e032 (patch)
tree6da191463cc8ff17b6c4ec4e4479015e851d5244 /Parser
parent019f0a0cb85ebc234356415f3638b9bd77528e55 (diff)
downloadcpython-git-e5024517811ee990b770fca0ba7058742d00e032.tar.gz
closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)
Diffstat (limited to 'Parser')
-rw-r--r--Parser/printgrammar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/printgrammar.c b/Parser/printgrammar.c
index 7311e55170..1a8b0e176f 100644
--- a/Parser/printgrammar.c
+++ b/Parser/printgrammar.c
@@ -18,7 +18,7 @@ printgrammar(grammar *g, FILE *fp)
fprintf(fp, "/* Generated by Parser/pgen */\n\n");
fprintf(fp, "#include \"pgenheaders.h\"\n");
fprintf(fp, "#include \"grammar.h\"\n");
- fprintf(fp, "PyAPI_DATA(grammar) _PyParser_Grammar;\n");
+ fprintf(fp, "grammar _PyParser_Grammar;\n");
printdfas(g, fp);
printlabels(g, fp);
fprintf(fp, "grammar _PyParser_Grammar = {\n");