comparison src/lisp.h @ 85250:2acb83e611e8

(eabs): Rename from `abs'. All callers changed.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 13 Oct 2007 12:40:15 +0000
parents bccebab2430e
children d0d527210b0c a0e466c4d599
comparison
equal deleted inserted replaced
85249:668ccfb8d0e0 85250:2acb83e611e8
3377 #undef min 3377 #undef min
3378 #endif 3378 #endif
3379 #define min(a, b) ((a) < (b) ? (a) : (b)) 3379 #define min(a, b) ((a) < (b) ? (a) : (b))
3380 #define max(a, b) ((a) > (b) ? (a) : (b)) 3380 #define max(a, b) ((a) > (b) ? (a) : (b))
3381 3381
3382 /* Make sure we have abs defined */ 3382 /* We used to use `abs', but that clashes with system headers on some
3383 #if !defined(abs) 3383 platforms, and using a name reserved by Standard C is a bad idea
3384 #define abs(x) ((x) < 0 ? -(x) : (x)) 3384 anyway. */
3385 #if !defined(eabs)
3386 #define eabs(x) ((x) < 0 ? -(x) : (x))
3385 #endif 3387 #endif
3386 3388
3387 /* Return a fixnum or float, depending on whether VAL fits in a Lisp 3389 /* Return a fixnum or float, depending on whether VAL fits in a Lisp
3388 fixnum. */ 3390 fixnum. */
3389 3391