Print warnings to stderr and correct spelling

This commit is contained in:
Guido van Rossum 1992-09-03 20:45:24 +00:00
parent ba3690cd09
commit 888d205fff

View File

@ -49,14 +49,14 @@ addaccelerators(g)
dfa *d; dfa *d;
int i; int i;
#ifdef DEBUG #ifdef DEBUG
printf("Adding parser accellerators ...\n"); fprintf(stderr, "Adding parser accelerators ...\n");
#endif #endif
d = g->g_dfa; d = g->g_dfa;
for (i = g->g_ndfas; --i >= 0; d++) for (i = g->g_ndfas; --i >= 0; d++)
fixdfa(g, d); fixdfa(g, d);
g->g_accel = 1; g->g_accel = 1;
#ifdef DEBUG #ifdef DEBUG
printf("Done.\n"); fprintf(stderr, "Done.\n");
#endif #endif
} }