summaryrefslogtreecommitdiffstats
path: root/Parser/grammar1.c
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/grammar1.c')
-rw-r--r--Parser/grammar1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Parser/grammar1.c b/Parser/grammar1.c
index 45d7399..38e4de6 100644
--- a/Parser/grammar1.c
+++ b/Parser/grammar1.c
@@ -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;
}
}