diff options
author | Davide Libenzi <davidel@xmailserver.org> | 2006-04-13 16:45:13 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-13 16:48:45 -0700 |
commit | 295ba2fb894be23cd1d1b0b34186e694b8e36076 (patch) | |
tree | 6fc11cbba0f1328d576150010c0d683c532dea54 /xdiff/xmacros.h | |
parent | f327dbced25a3c6fcc0b84d2d6adffa9343b09f0 (diff) | |
download | git-295ba2fb894be23cd1d1b0b34186e694b8e36076.tar.gz |
xdiff: post-process hunks to make them consistent.
Diffstat (limited to 'xdiff/xmacros.h')
-rw-r--r-- | xdiff/xmacros.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xdiff/xmacros.h b/xdiff/xmacros.h index 4c2fde80c1..78f02603b8 100644 --- a/xdiff/xmacros.h +++ b/xdiff/xmacros.h @@ -33,6 +33,7 @@ #define XDL_ISDIGIT(c) ((c) >= '0' && (c) <= '9') #define XDL_HASHLONG(v, b) (((unsigned long)(v) * GR_PRIME) >> ((CHAR_BIT * sizeof(unsigned long)) - (b))) #define XDL_PTRFREE(p) do { if (p) { xdl_free(p); (p) = NULL; } } while (0) +#define XDL_RECMATCH(r1, r2) ((r1)->size == (r2)->size && memcmp((r1)->ptr, (r2)->ptr, (r1)->size) == 0) #define XDL_LE32_PUT(p, v) \ do { \ unsigned char *__p = (unsigned char *) (p); \ |