Guardian Programming Reference Summary for C
Functions Summary (D-F)
Guardian Programming Reference Summary for C—522630-001
5-8
DEFINERESTORE
Uses a saved version of a DEFINE in the user’s buffer to create an active DEFINE. If
an active DEFINE of the same name already exists, it can optionally be replaced. The
saved DEFINE can also be placed in the working set without its name.
return value:
#include <cextdecs(DEFINERESTORE)>
short DEFINERESTORE ( short *buffer /* i */
,[ short options ] /* i */
,[ char *define-name ] /* o */
,[ short _near *checknum ] ); /* o */
0 = Successful.
2050 = DEFINE already exists and options.<15> is 0 or options is omitted.
2051 = DEFINE does not exist and options.<15> is 1.
2052 = Unable to obtain file-system buffer space.
2053 = Unable to obtain physical memory.
2054 = Bounds error on buffer, define-name or checknum parameter.
2055 = Illegal attribute in saved DEFINE.
2057 = DEFINE or working set is incomplete.
2058 = DEFINE or working set is inconsistent.
2059 = DEFINE or working set is invalid.
2066 = Parameter missing.
2067 = Attribute contained an illegal value.
2068 = Saved DEFINE was of invalid CLASS.
2069 = Attempt to add a DEFINE that does not fall under the current DEFMODE
setting.
2075 = The value of option (bits 0-13) is not 0.
2077 = The buffer or define-name parameter is in invalid segment.
2078 = The buffer parameter does not contain a valid saved DEFINE.