diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-10-08 08:07:49 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-10-08 08:07:49 +0000 |
commit | a4af50f612d65964c79fe9393a1f4e00edc83186 (patch) | |
tree | 05f518a8ccc1014356c2f71993d7b1110d8e8a35 /src | |
parent | f74480a588f9d90af9b0059cbe47416fe878755b (diff) | |
download | emacs-a4af50f612d65964c79fe9393a1f4e00edc83186.tar.gz |
Don't define min/max.
Diffstat (limited to 'src')
-rw-r--r-- | src/alloc.c | 3 | ||||
-rw-r--r-- | src/atimer.c | 5 | ||||
-rw-r--r-- | src/charset.c | 2 | ||||
-rw-r--r-- | src/dired.c | 2 | ||||
-rw-r--r-- | src/dispnew.c | 3 | ||||
-rw-r--r-- | src/editfns.c | 3 | ||||
-rw-r--r-- | src/fileio.c | 3 | ||||
-rw-r--r-- | src/fns.c | 5 | ||||
-rw-r--r-- | src/indent.c | 3 | ||||
-rw-r--r-- | src/insdel.c | 3 | ||||
-rw-r--r-- | src/intervals.c | 2 | ||||
-rw-r--r-- | src/keymap.c | 2 | ||||
-rw-r--r-- | src/minibuf.c | 2 | ||||
-rw-r--r-- | src/scroll.c | 3 | ||||
-rw-r--r-- | src/search.c | 3 | ||||
-rw-r--r-- | src/sound.c | 2 | ||||
-rw-r--r-- | src/sysdep.c | 2 | ||||
-rw-r--r-- | src/term.c | 3 | ||||
-rw-r--r-- | src/w32.c | 5 | ||||
-rw-r--r-- | src/w32bdf.c | 3 | ||||
-rw-r--r-- | src/w32console.c | 2 | ||||
-rw-r--r-- | src/w32menu.c | 3 | ||||
-rw-r--r-- | src/w32term.c | 7 | ||||
-rw-r--r-- | src/window.c | 2 | ||||
-rw-r--r-- | src/xdisp.c | 3 | ||||
-rw-r--r-- | src/xfaces.c | 4 | ||||
-rw-r--r-- | src/xfns.c | 3 | ||||
-rw-r--r-- | src/xmenu.c | 3 | ||||
-rw-r--r-- | src/xterm.c | 7 |
29 files changed, 0 insertions, 93 deletions
diff --git a/src/alloc.c b/src/alloc.c index 0d6b1b2225f..059c35a0074 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -80,9 +80,6 @@ extern __malloc_size_t __malloc_extra_blocks; #endif /* not DOUG_LEA_MALLOC */ -#define max(A,B) ((A) > (B) ? (A) : (B)) -#define min(A,B) ((A) < (B) ? (A) : (B)) - /* Macro to verify that storage intended for Lisp objects is not out of range to fit in the space for a pointer. ADDRESS is the start of the block, and SIZE diff --git a/src/atimer.c b/src/atimer.c index d2e2bc7b890..6bf685cec3c 100644 --- a/src/atimer.c +++ b/src/atimer.c @@ -35,11 +35,6 @@ Boston, MA 02111-1307, USA. */ #include <sys/time.h> #endif -/* The ubiquitous min/max macros. */ - -#define max(X, Y) ((X) > (Y) ? (X) : (Y)) -#define min(X, Y) ((X) < (Y) ? (X) : (Y)) - /* Free-list of atimer structures. */ static struct atimer *free_atimers; diff --git a/src/charset.c b/src/charset.c index b346f661e59..38d22121f98 100644 --- a/src/charset.c +++ b/src/charset.c @@ -107,8 +107,6 @@ Lisp_Object Vnonascii_translation_table; /* List of all possible generic characters. */ Lisp_Object Vgeneric_character_list; -#define min(X, Y) ((X) < (Y) ? (X) : (Y)) -#define max(X, Y) ((X) > (Y) ? (X) : (Y)) void invalid_character (c) diff --git a/src/dired.c b/src/dired.c index 04535012d90..74d0bab6a6c 100644 --- a/src/dired.c +++ b/src/dired.c @@ -98,8 +98,6 @@ extern struct re_pattern_buffer *compile_pattern (); /* From filemode.c. Can't go in Lisp.h because of `stat'. */ extern void filemodestring P_ ((struct stat *, char *)); -#define min(a, b) ((a) < (b) ? (a) : (b)) - /* if system does not have symbolic links, it does not have lstat. In that case, use ordinary stat instead. */ diff --git a/src/dispnew.c b/src/dispnew.c index 02ce752692d..0b91c69854c 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -75,9 +75,6 @@ Boston, MA 02111-1307, USA. */ #include <unistd.h> #endif -#define max(a, b) ((a) > (b) ? (a) : (b)) -#define min(a, b) ((a) < (b) ? (a) : (b)) - /* Get number of chars of output now in the buffer of a stdio stream. This ought to be built in in stdio, but it isn't. Some s- files override this because their stdio internals differ. */ diff --git a/src/editfns.c b/src/editfns.c index fba78c3a1be..bb92f44381e 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -51,9 +51,6 @@ Boston, MA 02111-1307, USA. */ #define MAX_10_EXP 310 #endif -#define min(a, b) ((a) < (b) ? (a) : (b)) -#define max(a, b) ((a) > (b) ? (a) : (b)) - #ifndef NULL #define NULL 0 #endif diff --git a/src/fileio.c b/src/fileio.c index 4c7921752a5..0a726a4a01a 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -159,9 +159,6 @@ extern int use_dialog_box; # define lstat stat #endif -#define min(a, b) ((a) < (b) ? (a) : (b)) -#define max(a, b) ((a) > (b) ? (a) : (b)) - /* Nonzero during writing of auto-save files */ int auto_saving; diff --git a/src/fns.c b/src/fns.c index b8cc9566d22..8497b065bfd 100644 --- a/src/fns.c +++ b/src/fns.c @@ -50,11 +50,6 @@ Boston, MA 02111-1307, USA. */ #define NULL (void *)0 #endif -#ifndef min -#define min(a, b) ((a) < (b) ? (a) : (b)) -#define max(a, b) ((a) > (b) ? (a) : (b)) -#endif - /* Nonzero enables use of dialog boxes for questions asked by mouse commands. */ int use_dialog_box; diff --git a/src/indent.c b/src/indent.c index 2d0ea9fcae9..04768e37f2a 100644 --- a/src/indent.c +++ b/src/indent.c @@ -39,9 +39,6 @@ Boston, MA 02111-1307, USA. */ int indent_tabs_mode; -#define min(a, b) ((a) < (b) ? (a) : (b)) -#define max(a, b) ((a) > (b) ? (a) : (b)) - #define CR 015 /* These three values memoize the current column to avoid recalculation. */ diff --git a/src/insdel.c b/src/insdel.c index f87dc137b56..7963ae0f328 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -33,9 +33,6 @@ Boston, MA 02111-1307, USA. */ #define NULL 0 #endif -#define min(x, y) ((x) < (y) ? (x) : (y)) -#define max(x, y) ((x) > (y) ? (x) : (y)) - static void insert_from_string_1 P_ ((Lisp_Object, int, int, int, int, int, int)); static void insert_from_buffer_1 (); static void gap_left P_ ((int, int, int)); diff --git a/src/intervals.c b/src/intervals.c index 1dfc901a3ec..731a0f99121 100644 --- a/src/intervals.c +++ b/src/intervals.c @@ -51,8 +51,6 @@ Boston, MA 02111-1307, USA. */ #define TMEM(sym, set) (CONSP (set) ? ! NILP (Fmemq (sym, set)) : ! NILP (set)) -#define min(x, y) ((x) < (y) ? (x) : (y)) - Lisp_Object merge_properties_sticky (); static INTERVAL reproduce_tree P_ ((INTERVAL, INTERVAL)); static INTERVAL reproduce_tree_obj P_ ((INTERVAL, Lisp_Object)); diff --git a/src/keymap.c b/src/keymap.c index 82ee642923c..8f4a1cc478a 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -32,8 +32,6 @@ Boston, MA 02111-1307, USA. */ #include "puresize.h" #include "intervals.h" -#define min(a, b) ((a) < (b) ? (a) : (b)) - /* The number of elements in keymap vectors. */ #define DENSE_TABLE_SIZE (0200) diff --git a/src/minibuf.c b/src/minibuf.c index cf98cc98b3b..8a1923d0ef6 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -33,8 +33,6 @@ Boston, MA 02111-1307, USA. */ #include "syntax.h" #include "intervals.h" -#define min(a, b) ((a) < (b) ? (a) : (b)) - extern int quit_char; /* List of buffers for use as minibuffers. diff --git a/src/scroll.c b/src/scroll.c index 83e029f417c..5e45725ae30 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -29,9 +29,6 @@ Boston, MA 02111-1307, USA. */ #include "frame.h" #include "window.h" -#define max(a, b) ((a) > (b) ? (a) : (b)) -#define min(a, b) ((a) < (b) ? (a) : (b)) - /* All costs measured in characters. So no cost can exceed the area of a frame, measured in characters. Let's hope this is never more than 1000000 characters. */ diff --git a/src/search.c b/src/search.c index c923c2b2374..d9bddffeabf 100644 --- a/src/search.c +++ b/src/search.c @@ -33,9 +33,6 @@ Boston, MA 02111-1307, USA. */ #include <sys/types.h> #include "regex.h" -#define min(a, b) ((a) < (b) ? (a) : (b)) -#define max(a, b) ((a) > (b) ? (a) : (b)) - #define REGEXP_CACHE_SIZE 20 /* If the regexp is non-nil, then the buffer contains the compiled form diff --git a/src/sound.c b/src/sound.c index e5c80059656..1c2d59e05b6 100644 --- a/src/sound.c +++ b/src/sound.c @@ -53,8 +53,6 @@ Boston, MA 02111-1307, USA. */ #define DEFAULT_SOUND_DEVICE "/dev/dsp" #endif -#define max(X, Y) ((X) > (Y) ? (X) : (Y)) -#define min(X, Y) ((X) < (Y) ? (X) : (Y)) #define abs(X) ((X) < 0 ? -(X) : (X)) /* Structure forward declarations. */ diff --git a/src/sysdep.c b/src/sysdep.c index 5f528f0f51c..ba68a9d4e93 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -58,8 +58,6 @@ static int delete_exited_processes; #endif #endif /* macintosh */ -#define min(x,y) ((x) > (y) ? (y) : (x)) - #ifdef WINDOWSNT #define read sys_read #define write sys_write diff --git a/src/term.c b/src/term.c index 6cdfa8d4355..dcdbe9dddac 100644 --- a/src/term.c +++ b/src/term.c @@ -63,9 +63,6 @@ static void turn_off_face P_ ((struct frame *, int face_id)); static void tty_show_cursor P_ ((void)); static void tty_hide_cursor P_ ((void)); -#define max(a, b) ((a) > (b) ? (a) : (b)) -#define min(a, b) ((a) < (b) ? (a) : (b)) - #define OUTPUT(a) \ tputs (a, (int) (FRAME_HEIGHT (XFRAME (selected_frame)) - curY), cmputc) #define OUTPUT1(a) tputs (a, 1, cmputc) diff --git a/src/w32.c b/src/w32.c index f5ea84a6111..3703347d810 100644 --- a/src/w32.c +++ b/src/w32.c @@ -88,11 +88,6 @@ Boston, MA 02111-1307, USA. #include "w32heap.h" #include "systime.h" -#undef min -#undef max -#define min(x, y) (((x) < (y)) ? (x) : (y)) -#define max(x, y) (((x) > (y)) ? (x) : (y)) - extern Lisp_Object Vw32_downcase_file_names; extern Lisp_Object Vw32_generate_fake_inodes; extern Lisp_Object Vw32_get_true_file_attributes; diff --git a/src/w32bdf.c b/src/w32bdf.c index aa79cb5c379..b3df1645044 100644 --- a/src/w32bdf.c +++ b/src/w32bdf.c @@ -34,9 +34,6 @@ Boston, MA 02111-1307, USA. */ #include "w32term.h" #include "w32bdf.h" -#define min(a, b) ((a) < (b) ? (a) : (b)) -#define max(a, b) ((a) > (b) ? (a) : (b)) - /* 10 planes */ #define BDF_CODEPOINT_HEAP_INITIAL_SIZE (96 * 10) /* about 96 characters */ diff --git a/src/w32console.c b/src/w32console.c index 766a5ddf485..1f9a5cb2d5f 100644 --- a/src/w32console.c +++ b/src/w32console.c @@ -41,8 +41,6 @@ Boston, MA 02111-1307, USA. #include "frame.h" #include "w32inevt.h" -#define min(a, b) ((a) < (b) ? (a) : (b)) - /* from window.c */ extern Lisp_Object Frecenter (); diff --git a/src/w32menu.c b/src/w32menu.c index 8021dece951..d627d889db5 100644 --- a/src/w32menu.c +++ b/src/w32menu.c @@ -113,9 +113,6 @@ typedef struct _widget_value /******************************************************************/ -#define min(x,y) (((x) < (y)) ? (x) : (y)) -#define max(x,y) (((x) > (y)) ? (x) : (y)) - #ifndef TRUE #define TRUE 1 #define FALSE 0 diff --git a/src/w32term.c b/src/w32term.c index 201a5331515..ba4326f94e6 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -56,13 +56,6 @@ Boston, MA 02111-1307, USA. */ #include "composite.h" #include "coding.h" -#ifndef min -#define min(a,b) ((a) < (b) ? (a) : (b)) -#endif -#ifndef max -#define max(a,b) ((a) > (b) ? (a) : (b)) -#endif - #define abs(x) ((x) < 0 ? -(x) : (x)) #define BETWEEN(X, LOWER, UPPER) ((X) >= (LOWER) && (X) < (UPPER)) diff --git a/src/window.c b/src/window.c index 95caf878064..b486a38b9d2 100644 --- a/src/window.c +++ b/src/window.c @@ -221,8 +221,6 @@ Lisp_Object Vscroll_preserve_screen_position; static int inhibit_frame_unsplittable; #endif /* 0 */ -#define min(a, b) ((a) < (b) ? (a) : (b)) - extern int scroll_margin; extern Lisp_Object Qwindow_scroll_functions, Vwindow_scroll_functions; diff --git a/src/xdisp.c b/src/xdisp.c index 09bc0f8185a..cb092ccfe00 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -198,9 +198,6 @@ Boston, MA 02111-1307, USA. */ #include "macterm.h" #endif -#define min(a, b) ((a) < (b) ? (a) : (b)) -#define max(a, b) ((a) > (b) ? (a) : (b)) - #define INFINITY 10000000 #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (macintosh) diff --git a/src/xfaces.c b/src/xfaces.c index 94541654238..867dcb8315a 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -288,11 +288,7 @@ x_free_gc (f, gc) #include <stdio.h> #include <ctype.h> -#ifndef max -#define max(A, B) ((A) > (B) ? (A) : (B)) -#define min(A, B) ((A) < (B) ? (A) : (B)) #define abs(X) ((X) < 0 ? -(X) : (X)) -#endif /* Number of pt per inch (from the TeXbook). */ diff --git a/src/xfns.c b/src/xfns.c index 3f61e643159..c28a2f801eb 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -117,9 +117,6 @@ static Lisp_Object Vmotif_version_string; #endif /* USE_X_TOOLKIT */ -#define min(a,b) ((a) < (b) ? (a) : (b)) -#define max(a,b) ((a) > (b) ? (a) : (b)) - #ifdef HAVE_X11R4 #define MAXREQUEST(dpy) (XMaxRequestSize (dpy)) #else diff --git a/src/xmenu.c b/src/xmenu.c index b33e8f0e591..6a7b86b1e10 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -81,9 +81,6 @@ Boston, MA 02111-1307, USA. */ #endif /* not USE_X_TOOLKIT */ #endif /* HAVE_X_WINDOWS */ -#define min(x,y) (((x) < (y)) ? (x) : (y)) -#define max(x,y) (((x) > (y)) ? (x) : (y)) - #ifndef TRUE #define TRUE 1 #define FALSE 0 diff --git a/src/xterm.c b/src/xterm.c index 702a1fd4c3a..1dffe8da1b5 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -144,13 +144,6 @@ extern void _XEditResCheckMessages (); #endif #endif -#ifndef min -#define min(a,b) ((a) < (b) ? (a) : (b)) -#endif -#ifndef max -#define max(a,b) ((a) > (b) ? (a) : (b)) -#endif - #define abs(x) ((x) < 0 ? -(x) : (x)) #define BETWEEN(X, LOWER, UPPER) ((X) >= (LOWER) && (X) < (UPPER)) |