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>
 
* fns.c (Frandom): Doc fix.
......
......@@ -3711,12 +3711,11 @@ extern char *egetenv (const char *);
/* Set up the name of the machine we're running on. */
extern void init_system_name (void);
/* We used to use `abs', but that clashes with system headers on some
platforms, and using a name reserved by Standard C is a bad idea
anyway. */
#if !defined (eabs)
/* Return the absolute value of X. X should be a signed integer
expression without side effects, and X's absolute value should not
exceed the maximum for its promoted type. This is called 'eabs'
because 'abs' is reserved by the C standard. */
#define eabs(x) ((x) < 0 ? -(x) : (x))
#endif
/* Return a fixnum or float, depending on whether VAL fits in a Lisp
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