Rev 548 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 548 | Rev 705 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | #include "variety.h" |
32 | #include "variety.h" |
33 | #include "rtdata.h" |
33 | #include "rtdata.h" |
34 | #include "stacklow.h" |
34 | #include "stacklow.h" |
35 | #include "exitwmsg.h" |
35 | #include "exitwmsg.h" |
Line 36... | Line -... | ||
36 | - | ||
37 | #if defined(__AXP__) || defined(__PPC__) |
- | |
38 | void _init_stk( void ) |
- | |
39 | { |
- | |
40 | } |
- | |
41 | - | ||
42 | _WCRTLINK unsigned __CHK( unsigned i ) |
- | |
43 | { |
- | |
44 | return( i ); |
- | |
45 | } |
- | |
46 | - | ||
47 | _WCRTLINK void __GRO( unsigned i ) |
- | |
48 | { |
- | |
49 | i = i; |
- | |
50 | } |
- | |
51 | - | ||
52 | _WCRTLINK void __STKOVERFLOW( void ) |
- | |
53 | { |
- | |
54 | __fatal_runtime_error( "stack overflow", -1 ); |
- | |
55 | } |
- | |
Line 56... | Line 36... | ||
56 | #endif |
36 | |
57 | 37 | ||
58 | _WCRTLINK unsigned stackavail() |
- | |
59 | { |
- | |
60 | #if defined(__AXP__) || defined(__PPC__) |
- | |
61 | unsigned _SP; |
- | |
62 | - | ||
63 | _SP = (unsigned)&_SP; |
- | |
64 | return( _SP - _RWD_stacklow ); |
38 | _WCRTLINK unsigned stackavail() |
65 | #else |
- | |
66 | return( _SP() - _RWD_stacklow ); |
39 | { |