make PyGrammar_LabelRepr return a const char * (closes #16369)
This commit is contained in:
parent
3cb90241fc
commit
742b2f8d7a
|
@ -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);
|
||||
|
|
|
@ -30,7 +30,7 @@ PyGrammar_FindDFA(grammar *g, register int type)
|
|||
#endif
|
||||
}
|
||||
|
||||
char *
|
||||
const char *
|
||||
PyGrammar_LabelRepr(label *lb)
|
||||
{
|
||||
static char buf[100];
|
||||
|
|
Loading…
Reference in New Issue