From 742b2f8d7a6b728e925ad83f704af0ff5fb06848 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 31 Oct 2012 13:36:13 -0400 Subject: [PATCH] make PyGrammar_LabelRepr return a const char * (closes #16369) --- Include/grammar.h | 2 +- Parser/grammar1.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/grammar.h b/Include/grammar.h index 8426da30d9c..862f6a8e6e7 100644 --- a/Include/grammar.h +++ b/Include/grammar.h @@ -76,7 +76,7 @@ dfa *PyGrammar_FindDFA(grammar *g, int type); int addlabel(labellist *ll, int type, char *str); int findlabel(labellist *ll, int type, char *str); -char *PyGrammar_LabelRepr(label *lb); +const char *PyGrammar_LabelRepr(label *lb); void translatelabels(grammar *g); void addfirstsets(grammar *g); diff --git a/Parser/grammar1.c b/Parser/grammar1.c index 1f7d264be92..4b5aa8a49d6 100644 --- a/Parser/grammar1.c +++ b/Parser/grammar1.c @@ -30,7 +30,7 @@ PyGrammar_FindDFA(grammar *g, register int type) #endif } -char * +const char * PyGrammar_LabelRepr(label *lb) { static char buf[100];