]> granicus.if.org Git - python/commitdiff
Remove unused macros in .c files
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 8 Jul 2004 01:49:00 +0000 (01:49 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 8 Jul 2004 01:49:00 +0000 (01:49 +0000)
Objects/funcobject.c
Objects/object.c
Python/ceval.c
Python/compile.c

index 76acf9865cb4d8edbb1926736bb78111350a3d99..971eb1cd0d601547f6d0e376162043b78c4b24e8 100644 (file)
@@ -156,8 +156,6 @@ PyFunction_SetClosure(PyObject *op, PyObject *closure)
 
 #define OFF(x) offsetof(PyFunctionObject, x)
 
-#define RR ()
-
 static PyMemberDef func_memberlist[] = {
         {"func_closure",  T_OBJECT,     OFF(func_closure),
         RESTRICTED|READONLY},
index 26149a7a6b9a932eadb697bd514e1ced2d4eb925..470da60e321312e647e08d347ca907dca5ae36ab 100644 (file)
@@ -704,8 +704,6 @@ default_3way_compare(PyObject *v, PyObject *w)
                Py_uintptr_t)(w->ob_type)) ? -1 : 1;
 }
 
-#define CHECK_TYPES(o) PyType_HasFeature((o)->ob_type, Py_TPFLAGS_CHECKTYPES)
-
 /* Do a 3-way comparison, by hook or by crook.  Return:
    -2 for an exception (but see below);
    -1 if v <  w;
index 39b763329102fb0c4fd766e07b3573161977e846..152b9421283ebbd84f93f221d8247decc6878be9 100644 (file)
@@ -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.
index 16328b53e7d05c2f9aace208ff5a76cadb5399b1..0d230d643a1540e69b142d9dabefdb74c53dc95d 100644 (file)
@@ -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)
 {