-gen_entry_dcl

Generate entry declarations to check that arguments match parameters.

Syntax

-gen_entry_dcl [file-name]

Parameter

file-name
The name of a file in which to write entry declarations. If omitted, the default is the prefix of the compiled file with a .dcl file extension.

Example

-gen_entry_dcl foo.dcl

Comments

The declaration of the ENTRY in the calling routine is generated from the definition, and includes the attributes of all the parameters. This enables the compiler to check that arguments match corresponding parameters, and if not, convert the actual argument for each non-matching argument/parameter pair to a dummy argument. When compiled again with the generated declarations, the compiler can then issue warning diagnostics or, when conversion is not possible, issue severe diagnostics.