diff options
| author | Glenn Morris | 2007-09-23 02:03:36 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-09-23 02:03:36 +0000 |
| commit | 7a58fb43f6d8d8d213370976f5e76cf57966f3dd (patch) | |
| tree | 8751f24ebff950ae7f8251466919030033d85fe6 /src | |
| parent | 66ba97ee97808cfd088290e1a173e0c93459bf9f (diff) | |
| download | emacs-7a58fb43f6d8d8d213370976f5e76cf57966f3dd.tar.gz emacs-7a58fb43f6d8d8d213370976f5e76cf57966f3dd.zip | |
Johannes Weiner <hannes at saeurebad.de>
(abs): Don't define abs now it's in lisp.h.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/keyboard.c | 2 | ||||
| -rw-r--r-- | src/sound.c | 1 | ||||
| -rw-r--r-- | src/w32term.c | 2 | ||||
| -rw-r--r-- | src/xfaces.c | 2 | ||||
| -rw-r--r-- | src/xterm.c | 2 |
6 files changed, 6 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3ba10216c6a..fca20e67e3d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-09-23 Johannes Weiner <hannes@saeurebad.de> | ||
| 2 | |||
| 3 | * lisp.h (abs): Define if unknown. | ||
| 4 | * keyboard.c, sound.c, w32term.c, xfaces.c, w32term.c: Don't | ||
| 5 | define abs now it's in lisp.h. | ||
| 6 | |||
| 1 | 2007-09-22 Eli Zaretskii <eliz@gnu.org> | 7 | 2007-09-22 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * term.c (DEV_TTY): New macro. Provide a definition for | 9 | * term.c (DEV_TTY): New macro. Provide a definition for |
diff --git a/src/keyboard.c b/src/keyboard.c index 79b9ca32a61..0e9dfee877f 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -108,8 +108,6 @@ int interrupt_input_pending; | |||
| 108 | #define KBD_BUFFER_SIZE 4096 | 108 | #define KBD_BUFFER_SIZE 4096 |
| 109 | #endif /* No X-windows */ | 109 | #endif /* No X-windows */ |
| 110 | 110 | ||
| 111 | #define abs(x) ((x) >= 0 ? (x) : -(x)) | ||
| 112 | |||
| 113 | /* Following definition copied from eval.c */ | 111 | /* Following definition copied from eval.c */ |
| 114 | 112 | ||
| 115 | struct backtrace | 113 | struct backtrace |
diff --git a/src/sound.c b/src/sound.c index 8b1bda8d6ef..0873fe8b82f 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -97,7 +97,6 @@ Boston, MA 02110-1301, USA. */ | |||
| 97 | #endif /* WINDOWSNT */ | 97 | #endif /* WINDOWSNT */ |
| 98 | 98 | ||
| 99 | /* BEGIN: Common Definitions */ | 99 | /* BEGIN: Common Definitions */ |
| 100 | #define abs(X) ((X) < 0 ? -(X) : (X)) | ||
| 101 | 100 | ||
| 102 | /* Symbols. */ | 101 | /* Symbols. */ |
| 103 | 102 | ||
diff --git a/src/w32term.c b/src/w32term.c index b072c900cac..0eab8f31b98 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -58,8 +58,6 @@ Boston, MA 02110-1301, USA. */ | |||
| 58 | #include "composite.h" | 58 | #include "composite.h" |
| 59 | #include "coding.h" | 59 | #include "coding.h" |
| 60 | 60 | ||
| 61 | #define abs(x) ((x) < 0 ? -(x) : (x)) | ||
| 62 | |||
| 63 | 61 | ||
| 64 | /* Fringe bitmaps. */ | 62 | /* Fringe bitmaps. */ |
| 65 | 63 | ||
diff --git a/src/xfaces.c b/src/xfaces.c index a1573235cd0..b1fcf28d9c3 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -267,8 +267,6 @@ Boston, MA 02110-1301, USA. */ | |||
| 267 | 267 | ||
| 268 | #include <ctype.h> | 268 | #include <ctype.h> |
| 269 | 269 | ||
| 270 | #define abs(X) ((X) < 0 ? -(X) : (X)) | ||
| 271 | |||
| 272 | /* Number of pt per inch (from the TeXbook). */ | 270 | /* Number of pt per inch (from the TeXbook). */ |
| 273 | 271 | ||
| 274 | #define PT_PER_INCH 72.27 | 272 | #define PT_PER_INCH 72.27 |
diff --git a/src/xterm.c b/src/xterm.c index c67238b2234..0b6504bd232 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -154,8 +154,6 @@ extern void _XEditResCheckMessages (); | |||
| 154 | #endif | 154 | #endif |
| 155 | #endif | 155 | #endif |
| 156 | 156 | ||
| 157 | #define abs(x) ((x) < 0 ? -(x) : (x)) | ||
| 158 | |||
| 159 | /* Default to using XIM if available. */ | 157 | /* Default to using XIM if available. */ |
| 160 | #ifdef USE_XIM | 158 | #ifdef USE_XIM |
| 161 | int use_xim = 1; | 159 | int use_xim = 1; |