From 3b4da59cd6dde2e375391bc8b41a469a4aab5fbd Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 19 Jun 1996 21:49:17 +0000 Subject: [PATCH] Renamed static pow() to powerop() to avoid name conflict in some compilers. --- Python/ceval.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Python/ceval.c b/Python/ceval.c index 37977921174..ec26792e46d 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -68,7 +68,7 @@ static int call_trace PROTO((object **, object **, frameobject *, char *, object *)); static object *add PROTO((object *, object *)); static object *sub PROTO((object *, object *)); -static object *pow PROTO((object *, object *)); +static object *powerop PROTO((object *, object *)); static object *mul PROTO((object *, object *)); static object *divide PROTO((object *, object *)); static object *mod PROTO((object *, object *)); @@ -665,7 +665,7 @@ eval_code2(co, globals, locals, case BINARY_POWER: w = POP(); v = POP(); - x = pow(v, w); + x = powerop(v, w); DECREF(v); DECREF(w); PUSH(x); @@ -2201,11 +2201,11 @@ mod(v, w) } static object * -pow(v, w) +powerop(v, w) object *v, *w; { object *res; - BINOP("__pow__", "__rpow__", pow); + BINOP("__pow__", "__rpow__", powerop); if (v->ob_type->tp_as_number == NULL || w->ob_type->tp_as_number == NULL) { err_setstr(TypeError, "pow() requires numeric arguments");