* 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
This commit is contained in:
parent
dd4d3d3a52
commit
d7a0a7c9bd
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue