18.08.2013 Views

Programming Reference Manual - Public Support Login - Unisys

Programming Reference Manual - Public Support Login - Unisys

Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Functions of PCFP<br />

All of the above parameters are moved to a dynamic basic mode bank where they are<br />

operated on by PCFP. In addition to these parameters, PLUS stack space and PLUS<br />

work space are also allocated in the dynamic bank. The maximum possible size of the<br />

dynamic basic mode bank limits the maximum size that can be specified for the return<br />

area and the work area. The maximum size for most PCFP functions is the difference<br />

between the minimum relative address, defined by MIN_DATA_ADDR, and the<br />

maximum relative address, defined by MAX_DATA_ADDR. These definitions are<br />

contained in the copy/include element FP$DEFS. Some functions require a different<br />

minimum relative address or a different maximum relative address. In these cases the<br />

function descriptions in Sections 3 – 10 indicate the minimum and maximum addresses<br />

that apply for the function.<br />

2.2. Data Types<br />

The following data types are used in the item descriptions throughout this manual.<br />

These data types are described here in a language-independent manner. Any<br />

language-specific considerations are described in Sections 11 – 13.<br />

Character<br />

The item contains an ASCII character string, the maximum length of which is given in the<br />

item description. The calling program must specify character values shorter than the<br />

maximum by one of the following means:<br />

• Left-justified within the item, and space-filled on the right. This is the typical method<br />

for specifying strings in languages other than C.<br />

• Left-justified within the item, and null-terminated on the right. (Null-terminated<br />

means that the string is followed immediately by a null character [integer code 0],<br />

and that all characters following the null are insignificant.) This is the typical method<br />

for specifying strings in C.<br />

Either of these methods can be used by a calling program written in any language. It is<br />

permissible for some strings to be specified using one method, and others to be<br />

specified using the other method.<br />

In character items input to PCFP, both uppercase and lowercase letters are allowed.<br />

PCFP treats each lowercase letter as its uppercase equivalent except where noted<br />

otherwise. In character items returned by PCFP, letters are uppercase only, except<br />

where noted otherwise.<br />

Integer<br />

The item may assume integer values. In some cases, “unsigned” is also specified to<br />

indicate that only nonnegative integer values are legal. Unless the range of integer<br />

values that can be assumed by the item is particularly important, it is not noted in the<br />

item description (but can be inferred from the structure layout). Integer items are<br />

allocated with sizes large enough so that the size of the item poses no significant<br />

restriction on the capabilities of PCFP.<br />

Condition<br />

The item can assume only the values TRUE and FALSE. Internally, TRUE is represented<br />

by 1, and FALSE is represented by 0.<br />

7830 9796–013 2–3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!