aboutsummaryrefslogtreecommitdiff
path: root/cachegrind/cg_main.c
diff options
context:
space:
mode:
authornjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-05-28 01:53:07 +0000
committernjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-05-28 01:53:07 +0000
commitf76d27a697a7b0bf3b84490baf60623fc96a23af (patch)
tree682ff0946c0b8b501714e055ff1269c6b0bf5d91 /cachegrind/cg_main.c
parentda8549df7939ee3024938cdd8a4cc64e6c2279b8 (diff)
downloadvalgrind-f76d27a697a7b0bf3b84490baf60623fc96a23af.tar.gz
Merge the DARWIN branch onto the trunk.
I tried using 'svn merge' to do the merge but it did a terrible job and there were bazillions of conflicts. So instead I just took the diff between the branch and trunk at r10155, applied the diff to the trunk, 'svn add'ed the added files (no files needed to be 'svn remove'd) and committed. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10156 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'cachegrind/cg_main.c')
-rw-r--r--cachegrind/cg_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c
index 279356bd5..6c4e1e471 100644
--- a/cachegrind/cg_main.c
+++ b/cachegrind/cg_main.c
@@ -1464,13 +1464,14 @@ static void cg_fini(Int exitcode)
if (VG_(clo_verbosity) == 0)
return;
- #define MAX(a, b) ((a) >= (b) ? (a) : (b))
+ // Nb: this isn't called "MAX" because that overshadows a global on Darwin.
+ #define CG_MAX(a, b) ((a) >= (b) ? (a) : (b))
/* I cache results. Use the I_refs value to determine the first column
* width. */
l1 = ULong_width(Ir_total.a);
- l2 = ULong_width(MAX(Dr_total.a, Bc_total.b));
- l3 = ULong_width(MAX(Dw_total.a, Bi_total.b));
+ l2 = ULong_width(CG_MAX(Dr_total.a, Bc_total.b));
+ l3 = ULong_width(CG_MAX(Dw_total.a, Bi_total.b));
/* Make format string, getting width right for numbers */
VG_(sprintf)(fmt, "%%s %%,%dllu", l1);