ALIAS

General Compiler Directive: Declares alternate external names for external subprograms.

Syntax

cDEC$ ALIAS internal-name, external-name

c
Is a c, C, !, or *. (See Syntax Rules for General Directives.)


internal-name
The name of the subprogram as used in the current program unit.


external-name
A name or a character constant, delimited by apostrophes or quotation marks.

Rules and Behavior

If a name is specified, the name (in uppercase) is used as the external name for the specified internal-name. If a character constant is specified, it is used as is; the string is not changed to uppercase, nor are blanks removed.

The ALIAS directive affects only the external name used for references to the specified internal-name.

Names that are not acceptable to the linker will cause link-time errors.

You can use the prefix !MS$ in place of cDEC$.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: ATTRIBUTES - ALIAS option, General Compiler Directives