diff options
| author | Nick Barnes | 2001-10-31 14:40:56 +0000 |
|---|---|---|
| committer | Nick Barnes | 2001-10-31 14:40:56 +0000 |
| commit | 7acfca905d76140f4cc0b09c9a12de237de364cd (patch) | |
| tree | 3ed8babfa3a73d30f29e08ca5d5adcda4ca4e826 /mps/code/span.c | |
| parent | b7ce4893f9902d57cd67ac9a92fa6c3d5a8fc833 (diff) | |
| download | emacs-7acfca905d76140f4cc0b09c9a12de237de364cd.tar.gz emacs-7acfca905d76140f4cc0b09c9a12de237de364cd.zip | |
Branch imports for masters.
Copied from Perforce
Change: 23678
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/span.c')
| -rw-r--r-- | mps/code/span.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mps/code/span.c b/mps/code/span.c new file mode 100644 index 00000000000..24f203d26c4 --- /dev/null +++ b/mps/code/span.c | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* impl.c.span: ANSI STACK PROBE | ||
| 2 | * | ||
| 3 | * $HopeName: MMsrc!span.c(trunk.2) $ | ||
| 4 | * Copyright (C) 1997 Harlequin Limited. All rights reserved. | ||
| 5 | * | ||
| 6 | * PURPOSE | ||
| 7 | * | ||
| 8 | * .purpose: The purpose of the ANSI Stack Probe is to provide a | ||
| 9 | * non-functional implementation of the StackProbe interface. | ||
| 10 | * StackProbe has a function implementation on platforms where the | ||
| 11 | * MPS takes some special action to avoid stack overflow. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #include "mpm.h" | ||
| 15 | |||
| 16 | SRCID(span, "$HopeName: MMsrc!span.c(trunk.2) $"); | ||
| 17 | |||
| 18 | |||
| 19 | /* StackProbe -- probe above the stack to provoke early stack overflow */ | ||
| 20 | |||
| 21 | void StackProbe(Size depth) | ||
| 22 | { | ||
| 23 | AVER(depth == 0); | ||
| 24 | NOOP; | ||
| 25 | } | ||