diff options
| author | Gareth Rees | 2013-05-23 13:42:08 +0100 |
|---|---|---|
| committer | Gareth Rees | 2013-05-23 13:42:08 +0100 |
| commit | ef4c41df55a21c4c4762ee63d538351e3957cf4d (patch) | |
| tree | 7226757d68b39c4208ca7b7ddf0f6a0c20c5fed5 /mps/code | |
| parent | ad523a34ef326944a129781a5adf43324750b4bf (diff) | |
| download | emacs-ef4c41df55a21c4c4762ee63d538351e3957cf4d.tar.gz emacs-ef4c41df55a21c4c4762ee63d538351e3957cf4d.zip | |
Ensure the emergency branch compiles and runs on lii6gc:
No need for <string.h> in mpsi.c (this defines a function "index" on Linux).
Need more headers in range.c so that it will compile on its own.
Need UNUSED() declarations for some variables in cbstest.c.
Copied from Perforce
Change: 182113
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/cbstest.c | 15 | ||||
| -rw-r--r-- | mps/code/mpsi.c | 1 | ||||
| -rw-r--r-- | mps/code/range.c | 2 |
3 files changed, 17 insertions, 1 deletions
diff --git a/mps/code/cbstest.c b/mps/code/cbstest.c index 3b72e875c28..d4e20df41e8 100644 --- a/mps/code/cbstest.c +++ b/mps/code/cbstest.c | |||
| @@ -225,6 +225,11 @@ static void allocate(CBS cbs, Addr block, BT allocTable, | |||
| 225 | left = AddrOffset(outerBase, base); | 225 | left = AddrOffset(outerBase, base); |
| 226 | right = AddrOffset(limit, outerLimit); | 226 | right = AddrOffset(limit, outerLimit); |
| 227 | total = AddrOffset(outerBase, outerLimit); | 227 | total = AddrOffset(outerBase, outerLimit); |
| 228 | |||
| 229 | /* TODO: check these values */ | ||
| 230 | UNUSED(left); | ||
| 231 | UNUSED(right); | ||
| 232 | UNUSED(total); | ||
| 228 | } | 233 | } |
| 229 | 234 | ||
| 230 | res = CBSDelete(&oldBase, &oldLimit, cbs, base, limit); | 235 | res = CBSDelete(&oldBase, &oldLimit, cbs, base, limit); |
| @@ -285,6 +290,11 @@ static void deallocate(CBS cbs, Addr block, BT allocTable, | |||
| 285 | left = AddrOffset(outerBase, base); | 290 | left = AddrOffset(outerBase, base); |
| 286 | right = AddrOffset(limit, outerLimit); | 291 | right = AddrOffset(limit, outerLimit); |
| 287 | total = AddrOffset(outerBase, outerLimit); | 292 | total = AddrOffset(outerBase, outerLimit); |
| 293 | |||
| 294 | /* TODO: check these values */ | ||
| 295 | UNUSED(left); | ||
| 296 | UNUSED(right); | ||
| 297 | UNUSED(total); | ||
| 288 | } | 298 | } |
| 289 | 299 | ||
| 290 | res = CBSInsert(&freeBase, &freeLimit, cbs, base, limit); | 300 | res = CBSInsert(&freeBase, &freeLimit, cbs, base, limit); |
| @@ -313,6 +323,7 @@ static void find(CBS cbs, void *block, BT alloc, Size size, Bool high, | |||
| 313 | Addr oldBase, oldLimit, origBase, origLimit; | 323 | Addr oldBase, oldLimit, origBase, origLimit; |
| 314 | Size oldSize, newSize; | 324 | Size oldSize, newSize; |
| 315 | 325 | ||
| 326 | origBase = origLimit = NULL; | ||
| 316 | expected = (high ? BTFindLongResRangeHigh : BTFindLongResRange) | 327 | expected = (high ? BTFindLongResRangeHigh : BTFindLongResRange) |
| 317 | (&expectedBase, &expectedLimit, alloc, | 328 | (&expectedBase, &expectedLimit, alloc, |
| 318 | (Index)0, (Index)ArraySize, (Count)size); | 329 | (Index)0, (Index)ArraySize, (Count)size); |
| @@ -342,6 +353,10 @@ static void find(CBS cbs, void *block, BT alloc, Size size, Bool high, | |||
| 342 | if (findDelete != CBSFindDeleteNONE) { | 353 | if (findDelete != CBSFindDeleteNONE) { |
| 343 | newSize = AddrOffset(remainderBase, remainderLimit); | 354 | newSize = AddrOffset(remainderBase, remainderLimit); |
| 344 | } | 355 | } |
| 356 | |||
| 357 | /* TODO: check these values */ | ||
| 358 | UNUSED(oldSize); | ||
| 359 | UNUSED(newSize); | ||
| 345 | } | 360 | } |
| 346 | 361 | ||
| 347 | found = (high ? CBSFindLast : CBSFindFirst) | 362 | found = (high ? CBSFindLast : CBSFindFirst) |
diff --git a/mps/code/mpsi.c b/mps/code/mpsi.c index 746ba3e712d..e89577f9c67 100644 --- a/mps/code/mpsi.c +++ b/mps/code/mpsi.c | |||
| @@ -53,7 +53,6 @@ | |||
| 53 | #include "mpsavm.h" | 53 | #include "mpsavm.h" |
| 54 | 54 | ||
| 55 | #include <stdarg.h> | 55 | #include <stdarg.h> |
| 56 | #include <string.h> | ||
| 57 | 56 | ||
| 58 | 57 | ||
| 59 | SRCID(mpsi, "$Id$"); | 58 | SRCID(mpsi, "$Id$"); |
diff --git a/mps/code/range.c b/mps/code/range.c index c06e6032644..739b11f5b5e 100644 --- a/mps/code/range.c +++ b/mps/code/range.c | |||
| @@ -6,6 +6,8 @@ | |||
| 6 | * .design: <design/range/> | 6 | * .design: <design/range/> |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #include "check.h" | ||
| 10 | #include "mpm.h" | ||
| 9 | #include "range.h" | 11 | #include "range.h" |
| 10 | 12 | ||
| 11 | SRCID(range, "$Id$"); | 13 | SRCID(range, "$Id$"); |