diff options
| author | Gareth Rees | 2013-03-08 12:41:41 +0000 |
|---|---|---|
| committer | Gareth Rees | 2013-03-08 12:41:41 +0000 |
| commit | debb156e8d226acac78751686d2b833a8a893768 (patch) | |
| tree | a13450443ee221846b41d1482a857ab81addac6e /mps/code/amcss.c | |
| parent | ed161ae658f9722610fa9194d5804aa0fb207c48 (diff) | |
| download | emacs-debb156e8d226acac78751686d2b833a8a893768.tar.gz emacs-debb156e8d226acac78751686d2b833a8a893768.zip | |
Move global 'pool' to local so that we can rename argument 'pol' to 'pool'.
Copied from Perforce
Change: 181095
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/amcss.c')
| -rw-r--r-- | mps/code/amcss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mps/code/amcss.c b/mps/code/amcss.c index bf4b9741099..f4d956e4c61 100644 --- a/mps/code/amcss.c +++ b/mps/code/amcss.c | |||
| @@ -41,7 +41,6 @@ static mps_gen_param_s testChain[genCOUNT] = { | |||
| 41 | #define objNULL ((mps_addr_t)MPS_WORD_CONST(0xDECEA5ED)) | 41 | #define objNULL ((mps_addr_t)MPS_WORD_CONST(0xDECEA5ED)) |
| 42 | 42 | ||
| 43 | 43 | ||
| 44 | static mps_pool_t pool; | ||
| 45 | static mps_ap_t ap; | 44 | static mps_ap_t ap; |
| 46 | static mps_addr_t exactRoots[exactRootsCOUNT]; | 45 | static mps_addr_t exactRoots[exactRootsCOUNT]; |
| 47 | static mps_addr_t ambigRoots[ambigRootsCOUNT]; | 46 | static mps_addr_t ambigRoots[ambigRootsCOUNT]; |
| @@ -145,10 +144,10 @@ static mps_addr_t make(void) | |||
| 145 | 144 | ||
| 146 | /* test_stepper -- stepping function for walk */ | 145 | /* test_stepper -- stepping function for walk */ |
| 147 | 146 | ||
| 148 | static void test_stepper(mps_addr_t object, mps_fmt_t fmt, mps_pool_t pol, | 147 | static void test_stepper(mps_addr_t object, mps_fmt_t fmt, mps_pool_t pool, |
| 149 | void *p, size_t s) | 148 | void *p, size_t s) |
| 150 | { | 149 | { |
| 151 | testlib_unused(object); testlib_unused(fmt); testlib_unused(pol); | 150 | testlib_unused(object); testlib_unused(fmt); testlib_unused(pool); |
| 152 | testlib_unused(s); | 151 | testlib_unused(s); |
| 153 | (*(unsigned long *)p)++; | 152 | (*(unsigned long *)p)++; |
| 154 | } | 153 | } |
| @@ -167,6 +166,7 @@ static void test(mps_arena_t arena) | |||
| 167 | int ramping; | 166 | int ramping; |
| 168 | mps_ap_t busy_ap; | 167 | mps_ap_t busy_ap; |
| 169 | mps_addr_t busy_init; | 168 | mps_addr_t busy_init; |
| 169 | mps_pool_t pool; | ||
| 170 | 170 | ||
| 171 | die(dylan_fmt(&format, arena), "fmt_create"); | 171 | die(dylan_fmt(&format, arena), "fmt_create"); |
| 172 | die(mps_chain_create(&chain, arena, genCOUNT, testChain), "chain_create"); | 172 | die(mps_chain_create(&chain, arena, genCOUNT, testChain), "chain_create"); |