mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Rename DEBUG macro to Py_DEBUG
This commit is contained in:
parent
a0dc1c4a61
commit
408027ea46
11 changed files with 23 additions and 23 deletions
|
|
@ -56,14 +56,14 @@ addaccelerators(g)
|
|||
{
|
||||
dfa *d;
|
||||
int i;
|
||||
#ifdef DEBUG
|
||||
#ifdef Py_DEBUG
|
||||
fprintf(stderr, "Adding parser accelerators ...\n");
|
||||
#endif
|
||||
d = g->g_dfa;
|
||||
for (i = g->g_ndfas; --i >= 0; d++)
|
||||
fixdfa(g, d);
|
||||
g->g_accel = 1;
|
||||
#ifdef DEBUG
|
||||
#ifdef Py_DEBUG
|
||||
fprintf(stderr, "Done.\n");
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ translatelabels(g)
|
|||
{
|
||||
int i;
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef Py_DEBUG
|
||||
printf("Translating labels ...\n");
|
||||
#endif
|
||||
/* Don't translate EMPTY */
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
#include "errcode.h"
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef Py_DEBUG
|
||||
extern int debugging;
|
||||
#define D(x) if (!debugging); else x
|
||||
#else
|
||||
|
|
@ -85,7 +85,7 @@ s_push(s, d, parent)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef Py_DEBUG
|
||||
|
||||
static void s_pop PROTO((stack *));
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ s_pop(s)
|
|||
s->s_top++;
|
||||
}
|
||||
|
||||
#else /* !DEBUG */
|
||||
#else /* !Py_DEBUG */
|
||||
|
||||
#define s_pop(s) (s)->s_top++
|
||||
|
||||
|
|
@ -309,7 +309,7 @@ addtoken(ps, type, str, lineno)
|
|||
}
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef Py_DEBUG
|
||||
|
||||
/* DEBUG OUTPUT */
|
||||
|
||||
|
|
@ -379,7 +379,7 @@ printtree(ps)
|
|||
printf("\n");
|
||||
}
|
||||
|
||||
#endif /* DEBUG */
|
||||
#endif /* Py_DEBUG */
|
||||
|
||||
/*
|
||||
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ addnfa(gr, name)
|
|||
return nf;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef Py_DEBUG
|
||||
|
||||
static char REQNFMT[] = "metacompile: less than %d children\n";
|
||||
|
||||
|
|
|
|||
|
|
@ -736,7 +736,7 @@ tok_get(tok, p_start, p_end)
|
|||
}
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef Py_DEBUG
|
||||
|
||||
void
|
||||
tok_dump(type, start, end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue