put_xarg

Load data into a subroutine argument

WTSupported in traditional Synergy on Windows

 

USupported on UNIX

 

void put_xarg(DESCRIP **argblock, int arg, DESCRIP *source)

Arguments

argblock

The argument block pointer passed by the Synergy DBL subroutine to the C function.

arg

The number of the argument into which to store data.

source

Points to a descriptor for data to be transferred.

Discussion

The put_xarg function loads data into a subroutine argument.

If the argument wasn’t passed, or if it’s a literal, this routine generates an error.

The put_xarg operation performs a store operation exactly as if the following Synergy DBL statement:

DSTARG = SRCFLD

were present in a Synergy program, with source pointing to the descriptor for SRCFLD and argblock[argument] pointing to the descriptor for DSTARG. All of the required conversions, truncations, alignments, and so forth occur automatically according to the data types of the two fields.