summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2004-07-08 01:49:00 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2004-07-08 01:49:00 (GMT)
commit93468eac728bee757446770f2b26de9cf7edcab6 (patch)
tree4f9d308a7e21117a7b0288bda54ebbaf906e0cdd /Python
parentbdcb9410c20c49928c91b065ccbd115aa450e037 (diff)
downloadcpython-93468eac728bee757446770f2b26de9cf7edcab6.zip
cpython-93468eac728bee757446770f2b26de9cf7edcab6.tar.gz
cpython-93468eac728bee757446770f2b26de9cf7edcab6.tar.bz2
Remove unused macros in .c files
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c3
-rw-r--r--Python/compile.c5
2 files changed, 0 insertions, 8 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 39b7633..152b942 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3804,9 +3804,6 @@ ext_do_call(PyObject *func, PyObject ***pp_stack, int flags, int na, int nk)
return result;
}
-#define SLICE_ERROR_MSG \
- "standard sequence type does not support step size other than one"
-
/* Extract a slice index from a PyInt or PyLong, and store in *pi.
Silently reduce values larger than INT_MAX to INT_MAX, and silently
boost values less than -INT_MAX to 0. Return 0 on error, 1 on success.
diff --git a/Python/compile.c b/Python/compile.c
index 16328b5..0d230d6 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -51,9 +51,6 @@ int Py_OptimizeFlag = 0;
#define DUPLICATE_ARGUMENT \
"duplicate argument '%s' in function definition"
-#define ILLEGAL_DYNAMIC_SCOPE \
-"%.100s: exec or 'import *' makes names ambiguous in nested scope"
-
#define GLOBAL_AFTER_ASSIGN \
"name '%.400s' is assigned to before global declaration"
@@ -845,8 +842,6 @@ dump(node *n, int pad, int depth)
dump(CHILD(n, i), pad + 1, depth);
}
-#define DUMP(N) dump(N, 0, -1)
-
static int
com_init(struct compiling *c, const char *filename)
{