aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert2011-02-21 15:22:34 -0800
committerPaul Eggert2011-02-21 15:22:34 -0800
commitba01e9d785457898d873d6c8ec8bc1965fe4ff28 (patch)
tree99a3172a81506b150c963135ce1d264034222265 /lib-src
parent08c690977a76a2a899bfe42056e9ae3a7efebcb3 (diff)
downloademacs-ba01e9d785457898d873d6c8ec8bc1965fe4ff28.tar.gz
emacs-ba01e9d785457898d873d6c8ec8bc1965fe4ff28.zip
[ChangeLog]
* lib/min-max.h: New file, for "min" and "max". [lib-src/ChangeLog] New file "lib/min-max.h". * ebrowse.c (min, max): Define them by including <min-max.h> instead of defining it ourselves. * pop.c (min): Likewise.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/ebrowse.c7
-rw-r--r--lib-src/pop.c6
3 files changed, 8 insertions, 10 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index c598164c575..81c6e6fe9b4 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,5 +1,10 @@
12011-02-21 Paul Eggert <eggert@cs.ucla.edu> 12011-02-21 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 New file "lib/min-max.h".
4 * ebrowse.c (min, max): Define them by including <min-max.h>
5 instead of defining it ourselves.
6 * pop.c (min): Likewise.
7
3 * movemail.c (popmail): Report fchown failure instead of ignoring it. 8 * movemail.c (popmail): Report fchown failure instead of ignoring it.
4 But if the file already has the right ownership, don't worry about it. 9 But if the file already has the right ownership, don't worry about it.
5 10
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index 2cb656ae53a..f2894d5a0c2 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -41,12 +41,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
41 41
42#define streq(X, Y) (*(X) == *(Y) && strcmp ((X) + 1, (Y) + 1) == 0) 42#define streq(X, Y) (*(X) == *(Y) && strcmp ((X) + 1, (Y) + 1) == 0)
43 43
44/* The ubiquitous `max' and `min' macros. */ 44#include <min-max.h>
45
46#ifndef max
47#define max(X, Y) ((X) > (Y) ? (X) : (Y))
48#define min(X, Y) ((X) < (Y) ? (X) : (Y))
49#endif
50 45
51/* Files are read in chunks of this number of bytes. */ 46/* Files are read in chunks of this number of bytes. */
52 47
diff --git a/lib-src/pop.c b/lib-src/pop.c
index 159926e97b0..426b39bd1fb 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -90,6 +90,8 @@ extern struct servent *hes_getservbyname (/* char *, char * */);
90# endif 90# endif
91#endif /* KERBEROS */ 91#endif /* KERBEROS */
92 92
93#include <min-max.h>
94
93#ifdef KERBEROS 95#ifdef KERBEROS
94#ifndef KERBEROS5 96#ifndef KERBEROS5
95extern int krb_sendauth (/* long, int, KTEXT, char *, char *, char *, 97extern int krb_sendauth (/* long, int, KTEXT, char *, char *, char *,
@@ -130,10 +132,6 @@ static char *find_crlf (char *, int);
130char pop_error[ERROR_MAX]; 132char pop_error[ERROR_MAX];
131int pop_debug = 0; 133int pop_debug = 0;
132 134
133#ifndef min
134#define min(a,b) (((a) < (b)) ? (a) : (b))
135#endif
136
137/* 135/*
138 * Function: pop_open (char *host, char *username, char *password, 136 * Function: pop_open (char *host, char *username, char *password,
139 * int flags) 137 * int flags)