From cffc8c282b4ba4d33dff006fb165b82b18ff3249 Mon Sep 17 00:00:00 2001 From: Richard Kistruck Date: Fri, 25 Sep 2009 13:55:12 +0100 Subject: [PATCH] Mps br/padding zcoll.c: (fix build on w3i3*) rename argument/variable "small" as "small_ref", because the name "small" is already in use by the compiler or a windows header file. Copied from Perforce Change: 168761 ServerID: perforce.ravenbrook.com --- mps/code/zcoll.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mps/code/zcoll.c b/mps/code/zcoll.c index b5ffb65f9ac..373e60ec2c3 100644 --- a/mps/code/zcoll.c +++ b/mps/code/zcoll.c @@ -425,7 +425,7 @@ static void* MakeThing(mps_arena_t arena, mps_ap_t ap, size_t size) return (void *)v; } -static void BigdropSmall(mps_arena_t arena, mps_ap_t ap, size_t big, char small) +static void BigdropSmall(mps_arena_t arena, mps_ap_t ap, size_t big, char small_ref) { static unsigned long keepCount = 0; unsigned long i; @@ -433,9 +433,9 @@ static void BigdropSmall(mps_arena_t arena, mps_ap_t ap, size_t big, char small) mps_arena_park(arena); for(i = 0; i < 100; i++) { (void) MakeThing(arena, ap, big); - if(small == 'A') { + if(small_ref == 'A') { myrootAmbig[keepCount++ % myrootAmbigCOUNT] = MakeThing(arena, ap, 1); - } else if(small == 'E') { + } else if(small_ref == 'E') { myrootExact[keepCount++ % myrootExactCOUNT] = MakeThing(arena, ap, 1); } else { cdie(0, "BigdropSmall: small must be 'A' or 'E'.\n"); @@ -485,13 +485,13 @@ static void testscriptC(mps_arena_t arena, mps_ap_t ap, const char *script) } case 'B': { size_t big = 0; - char small = ' '; + char small_ref = ' '; si = sscanf(script, "BigdropSmall(big %lu, small %c)%n", - &big, &small, &sb); + &big, &small_ref, &sb); checksi(si, 2, script, scriptAll); script += sb; - printf(" BigdropSmall(big %lu, small %c)\n", big, small); - BigdropSmall(arena, ap, big, small); + printf(" BigdropSmall(big %lu, small %c)\n", big, small_ref); + BigdropSmall(arena, ap, big, small_ref); break; } case 'M': {