mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Another directory quickly renamed.
This commit is contained in:
parent
2b713b2f67
commit
86bea46b3d
18 changed files with 218 additions and 205 deletions
|
@ -39,7 +39,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
/* Return the DFA for the given type */
|
||||
|
||||
dfa *
|
||||
finddfa(g, type)
|
||||
PyGrammar_FindDFA(g, type)
|
||||
grammar *g;
|
||||
register int type;
|
||||
{
|
||||
|
@ -63,7 +63,7 @@ finddfa(g, type)
|
|||
}
|
||||
|
||||
char *
|
||||
labelrepr(lb)
|
||||
PyGrammar_LabelRepr(lb)
|
||||
label *lb;
|
||||
{
|
||||
static char buf[100];
|
||||
|
@ -80,10 +80,10 @@ labelrepr(lb)
|
|||
}
|
||||
else {
|
||||
if (lb->lb_str == NULL)
|
||||
return tok_name[lb->lb_type];
|
||||
return _PyParser_TokenNames[lb->lb_type];
|
||||
else {
|
||||
sprintf(buf, "%.32s(%.32s)",
|
||||
tok_name[lb->lb_type], lb->lb_str);
|
||||
_PyParser_TokenNames[lb->lb_type], lb->lb_str);
|
||||
return buf;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue