Commit d7a0a7c9 authored by Paul Eggert's avatar Paul Eggert
Browse files

* 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
parent dd4d3d3a
2013-01-19 Paul Eggert <eggert@cs.ucla.edu>
* lisp.h (eabs): Define unconditionally (Bug#13419).
The old "#if !defined (eabs)" was an unnecessary revenant of back
when this macro was called "abs". Document 'eabs' better.
2013-01-19 Glenn Morris <rgm@gnu.org> 2013-01-19 Glenn Morris <rgm@gnu.org>
   
* fns.c (Frandom): Doc fix. * fns.c (Frandom): Doc fix.
......
...@@ -3711,12 +3711,11 @@ extern char *egetenv (const char *); ...@@ -3711,12 +3711,11 @@ extern char *egetenv (const char *);
/* Set up the name of the machine we're running on. */ /* Set up the name of the machine we're running on. */
extern void init_system_name (void); extern void init_system_name (void);
/* We used to use `abs', but that clashes with system headers on some /* Return the absolute value of X. X should be a signed integer
platforms, and using a name reserved by Standard C is a bad idea expression without side effects, and X's absolute value should not
anyway. */ exceed the maximum for its promoted type. This is called 'eabs'
#if !defined (eabs) because 'abs' is reserved by the C standard. */
#define eabs(x) ((x) < 0 ? -(x) : (x)) #define eabs(x) ((x) < 0 ? -(x) : (x))
#endif
/* Return a fixnum or float, depending on whether VAL fits in a Lisp /* Return a fixnum or float, depending on whether VAL fits in a Lisp
fixnum. */ fixnum. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment