summaryrefslogtreecommitdiff
path: root/xdiff/xmacros.h
diff options
context:
space:
mode:
authorDavide Libenzi <davidel@xmailserver.org>2006-04-13 23:45:13 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-13 23:48:45 (GMT)
commit295ba2fb894be23cd1d1b0b34186e694b8e36076 (patch)
tree6fc11cbba0f1328d576150010c0d683c532dea54 /xdiff/xmacros.h
parentf327dbced25a3c6fcc0b84d2d6adffa9343b09f0 (diff)
downloadgit-295ba2fb894be23cd1d1b0b34186e694b8e36076.zip
git-295ba2fb894be23cd1d1b0b34186e694b8e36076.tar.gz
git-295ba2fb894be23cd1d1b0b34186e694b8e36076.tar.bz2
xdiff: post-process hunks to make them consistent.
Diffstat (limited to 'xdiff/xmacros.h')
-rw-r--r--xdiff/xmacros.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xdiff/xmacros.h b/xdiff/xmacros.h
index 4c2fde8..78f0260 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); \