make PyGrammar_LabelRepr return a const char * (closes #16369)

This commit is contained in:
Benjamin Peterson 2012-10-31 13:36:13 -04:00
parent 3cb90241fc
commit 742b2f8d7a
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -30,7 +30,7 @@ PyGrammar_FindDFA(grammar *g, register int type)
#endif
}
char *
const char *
PyGrammar_LabelRepr(label *lb)
{
static char buf[100];