aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Janík2001-10-24 06:36:27 +0000
committerPavel Janík2001-10-24 06:36:27 +0000
commit15c565acc122f1d9d32f8902a645c67d9ac0fc5d (patch)
tree6955a932bc112fed42ea221c5b919c658f5e747f /src
parenta8818eb978c3c67ebd70a6ebb95eb33578074f21 (diff)
downloademacs-15c565acc122f1d9d32f8902a645c67d9ac0fc5d.tar.gz
emacs-15c565acc122f1d9d32f8902a645c67d9ac0fc5d.zip
Don't define max.
(coordinates_in_window): Remove unused variable `uy'.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/window.c6
2 files changed, 4 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 051d55e63a1..f34199c8a34 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12001-10-24 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 12001-10-24 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
2 2
3 * window.c: Don't define max.
4 (coordinates_in_window): Remove unused variable `uy'.
5
3 * widget.c: Don't define max. 6 * widget.c: Don't define max.
4 7
5 * process.c: Don't define max. 8 * 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. */
48#include "macterm.h" 48#include "macterm.h"
49#endif 49#endif
50 50
51#ifndef max
52#define max(a, b) ((a) < (b) ? (b) : (a))
53#endif
54
55/* Values returned from coordinates_in_window. */ 51/* Values returned from coordinates_in_window. */
56 52
57enum window_part 53enum window_part
@@ -517,7 +513,7 @@ coordinates_in_window (w, x, y)
517 int left_x, right_x, top_y, bottom_y; 513 int left_x, right_x, top_y, bottom_y;
518 int flags_area_width = FRAME_LEFT_FLAGS_AREA_WIDTH (f); 514 int flags_area_width = FRAME_LEFT_FLAGS_AREA_WIDTH (f);
519 enum window_part part; 515 enum window_part part;
520 int ux = CANON_X_UNIT (f), uy = CANON_Y_UNIT (f); 516 int ux = CANON_X_UNIT (f);
521 int x0 = XFASTINT (w->left) * ux; 517 int x0 = XFASTINT (w->left) * ux;
522 int x1 = x0 + XFASTINT (w->width) * ux; 518 int x1 = x0 + XFASTINT (w->width) * ux;
523 /* The width of the area where the vertical line can be dragged. 519 /* The width of the area where the vertical line can be dragged.