Thread (1 message) 1 message, 1 author, 2018-10-22

Re: [PATCH 3/3] xdiff: use compat's MIN instead

From: Junio C Hamano <hidden>
Date: 2018-10-22 05:59:33

Carlo Marcelo Arenas Belón  [off-list ref] writes:
Signed-off-by: Carlo Marcelo Arenas Belón <redacted>
---
 xdiff/xdiffi.c     | 2 +-
 xdiff/xemit.c      | 6 +++---
 xdiff/xhistogram.c | 6 +++---
 xdiff/xmacros.h    | 4 +---
 xdiff/xprepare.c   | 2 +-
 5 files changed, 9 insertions(+), 11 deletions(-)
As this is a borrowed code, I'd rather not do this, especially do so
only for MIN so that people who update this need to be aware that
they can say MIN() but still have to say XDL_MAX().
-
-#define XDL_MIN(a, b) ((a) < (b) ? (a): (b))
 #define XDL_MAX(a, b) ((a) > (b) ? (a): (b))
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help