Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (L)
Guardian Procedure Calls Reference Manual522629-013
8-4
LASTADDRX Procedure
(Superseded by ADDRESS_DELIMIT_ Procedure )
LASTADDRX Procedure
(Superseded by ADDRESS_DELIMIT_
Procedure )
Summary
Syntax for C Programmers
CEXTDECS (via the included file TNSINTH) defines 32-bit values as the typedef
__int32_t which for TNS and TNS/R compiles is defined as long and for TNS/E
compiles is defined as int.
Parameters
Example
Summary
LASTADDRX allows user programs to check stack limits or parameter addresses.
LASTADDRX returns the last extended address available in the specified relative
segment. A selectable extended data segment must be currently addressable (that is,
a call to USESEGMENT must have been made for this segment). You can use
LASTADDR with 16-bit addresses and LASTADDRX with 32-bit addresses, so both the
last address and the last extended address are available to your program to check
stack limits or parameter addresses.
Syntax for C Programmers
CEXTDECS (via the included file TNSINTH) defines 32-bit values as the typedef
__int32_t which for TNS and TNS/R compiles is defined as
long and for TNS/E
compiles is defined as
int.
Syntax for TAL Programmers
Parameters
last-addr returned value
INT(32)
Note. This procedure cannot be called by native processes. Although this procedure is
supported for TNS processes, it should not be used for new development.
#include <cextdecs(LASTADDRX)>
__int32_t LASTADDRX ( [ short seg ] );
last-addr := LASTADDRX ( [ seg ] ); ! i