Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (D-E)
Guardian Procedure Calls Reference Manual522629-013
4-12
DEFINEADD Procedure
DEFINEADD Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manual
Summary
This procedure adds a DEFINE to the calling process’s context using the attributes in
the working set. It can be used to replace an existing DEFINE with the attributes in the
working set.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
error returned value
INT
indicates the outcome of the call:
0 Add was successful
2049 A syntax error occurred in name
2050 Define already exists
2051 Define does not exist
2052 Unable to obtain file-system buffer space
2053 Unable to obtain physical memory
2054 Bounds error in
define-name
#include <cextdecs(DEFINEADD)>
short DEFINEADD ( const char *define-name
,[ short replace ]
,[ short _near *checknum ] );
error := DEFINEADD ( define-name ! i
,[ replace ] ! i
,[ checknum ] ); ! o