From: Pavel Janík Date: Wed, 24 Oct 2001 06:36:27 +0000 (+0000) Subject: Don't define max. X-Git-Tag: ttn-vms-21-2-B4~19217 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=15c565acc122f1d9d32f8902a645c67d9ac0fc5d;p=emacs.git Don't define max. (coordinates_in_window): Remove unused variable `uy'. --- diff --git a/src/ChangeLog b/src/ChangeLog index 051d55e63a1..f34199c8a34 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2001-10-24 Pavel Jan,Bm(Bk + * window.c: Don't define max. + (coordinates_in_window): Remove unused variable `uy'. + * widget.c: Don't define max. * process.c: Don't define max. diff --git a/src/window.c b/src/window.c index a510db6fab6..303c06c8845 100644 --- a/src/window.c +++ b/src/window.c @@ -48,10 +48,6 @@ Boston, MA 02111-1307, USA. */ #include "macterm.h" #endif -#ifndef max -#define max(a, b) ((a) < (b) ? (b) : (a)) -#endif - /* Values returned from coordinates_in_window. */ enum window_part @@ -517,7 +513,7 @@ coordinates_in_window (w, x, y) int left_x, right_x, top_y, bottom_y; int flags_area_width = FRAME_LEFT_FLAGS_AREA_WIDTH (f); enum window_part part; - int ux = CANON_X_UNIT (f), uy = CANON_Y_UNIT (f); + int ux = CANON_X_UNIT (f); int x0 = XFASTINT (w->left) * ux; int x1 = x0 + XFASTINT (w->width) * ux; /* The width of the area where the vertical line can be dragged.