summaryrefslogtreecommitdiff
path: root/xdiff/xmacros.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-04-14 22:58:17 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-04-14 22:58:17 -0700
commit170abc81a0f7bc02702189bacf7eeab74223d922 (patch)
treef538656ce9c0a4cf543ec6952e3e4af12779d8f8 /xdiff/xmacros.h
parentMerge branch 'js/diffstat' (diff)
parentxdiff: post-process hunks to make them consistent. (diff)
downloadtgif-170abc81a0f7bc02702189bacf7eeab74223d922.tar.xz
Merge branch 'dl/xdiff'
* dl/xdiff: 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 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); \