summaryrefslogtreecommitdiffstats
path: root/Parser/acceler.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-29 21:03:06 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-29 21:03:06 (GMT)
commit86bea46b3d16c4ed0453e17f241ddbdfade76c98 (patch)
treee1664ff0e1ed1d40996b44aa9c7ade227fcc2c55 /Parser/acceler.c
parent2b713b2f675f762ac8ce6cd3a934de34659a2476 (diff)
downloadcpython-86bea46b3d16c4ed0453e17f241ddbdfade76c98.zip
cpython-86bea46b3d16c4ed0453e17f241ddbdfade76c98.tar.gz
cpython-86bea46b3d16c4ed0453e17f241ddbdfade76c98.tar.bz2
Another directory quickly renamed.
Diffstat (limited to 'Parser/acceler.c')
-rw-r--r--Parser/acceler.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Parser/acceler.c b/Parser/acceler.c
index ef1edc3..9417b76 100644
--- a/Parser/acceler.c
+++ b/Parser/acceler.c
@@ -47,11 +47,11 @@ PERFORMANCE OF THIS SOFTWARE.
#include "parser.h"
/* Forward references */
-static void fixdfa PROTO((grammar *, dfa *));
-static void fixstate PROTO((grammar *, state *));
+static void fixdfa Py_PROTO((grammar *, dfa *));
+static void fixstate Py_PROTO((grammar *, state *));
void
-addaccelerators(g)
+PyGrammar_AddAccelerators(g)
grammar *g;
{
dfa *d;
@@ -90,7 +90,7 @@ fixstate(g, s)
int *accel;
int nl = g->g_ll.ll_nlabels;
s->s_accept = 0;
- accel = NEW(int, nl);
+ accel = PyMem_NEW(int, nl);
for (k = 0; k < nl; k++)
accel[k] = -1;
a = s->s_arc;
@@ -103,7 +103,7 @@ fixstate(g, s)
continue;
}
if (ISNONTERMINAL(type)) {
- dfa *d1 = finddfa(g, type);
+ dfa *d1 = PyGrammar_FindDFA(g, type);
int ibit;
if (type - NT_OFFSET >= (1 << 7)) {
printf("XXX too high nonterminal number!\n");
@@ -146,7 +146,7 @@ fixstate(g, s)
k++;
if (k < nl) {
int i;
- s->s_accel = NEW(int, nl-k);
+ s->s_accel = PyMem_NEW(int, nl-k);
if (s->s_accel == NULL) {
fprintf(stderr, "no mem to add parser accelerators\n");
exit(1);
@@ -156,5 +156,5 @@ fixstate(g, s)
for (i = 0; k < nl; i++, k++)
s->s_accel[i] = accel[k];
}
- DEL(accel);
+ PyMem_DEL(accel);
}