diff options
| author | Paul Eggert | 2013-01-19 14:33:29 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-01-19 14:33:29 -0800 |
| commit | d7a0a7c9bddcf0b5005c392d5f00702d26cc5b9c (patch) | |
| tree | 1373e1191aeae638ce6b62ac90b6c2dcdbf04dba /src | |
| parent | dd4d3d3a52ef79721f40363e87c725327c2a155b (diff) | |
| download | emacs-d7a0a7c9bddcf0b5005c392d5f00702d26cc5b9c.tar.gz emacs-d7a0a7c9bddcf0b5005c392d5f00702d26cc5b9c.zip | |
* lisp.h (eabs): Define unconditionally.
The old "#if !defined (eabs)" was an unnecessary revenant of back
when this macro was called "abs". Document 'eabs' better.
Fixes: debbugs:13419
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/lisp.h | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index eb393c93c4a..1383b12ed68 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-01-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * lisp.h (eabs): Define unconditionally (Bug#13419). | ||
| 4 | The old "#if !defined (eabs)" was an unnecessary revenant of back | ||
| 5 | when this macro was called "abs". Document 'eabs' better. | ||
| 6 | |||
| 1 | 2013-01-19 Glenn Morris <rgm@gnu.org> | 7 | 2013-01-19 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * fns.c (Frandom): Doc fix. | 9 | * fns.c (Frandom): Doc fix. |
diff --git a/src/lisp.h b/src/lisp.h index 48fba653203..faf4b1b8edd 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3711,12 +3711,11 @@ extern char *egetenv (const char *); | |||
| 3711 | /* Set up the name of the machine we're running on. */ | 3711 | /* Set up the name of the machine we're running on. */ |
| 3712 | extern void init_system_name (void); | 3712 | extern void init_system_name (void); |
| 3713 | 3713 | ||
| 3714 | /* We used to use `abs', but that clashes with system headers on some | 3714 | /* Return the absolute value of X. X should be a signed integer |
| 3715 | platforms, and using a name reserved by Standard C is a bad idea | 3715 | expression without side effects, and X's absolute value should not |
| 3716 | anyway. */ | 3716 | exceed the maximum for its promoted type. This is called 'eabs' |
| 3717 | #if !defined (eabs) | 3717 | because 'abs' is reserved by the C standard. */ |
| 3718 | #define eabs(x) ((x) < 0 ? -(x) : (x)) | 3718 | #define eabs(x) ((x) < 0 ? -(x) : (x)) |
| 3719 | #endif | ||
| 3720 | 3719 | ||
| 3721 | /* Return a fixnum or float, depending on whether VAL fits in a Lisp | 3720 | /* Return a fixnum or float, depending on whether VAL fits in a Lisp |
| 3722 | fixnum. */ | 3721 | fixnum. */ |