[Info-vax] /NAME

John Reagan xyzzy1959 at gmail.com
Wed Feb 8 19:01:49 EST 2023


On Wednesday, February 8, 2023 at 6:46:03 PM UTC-5, Arne Vajhøj wrote:
> Am I the only that wish to be able to distinguish between 
> names the code expose and names that the code call? 
> 
> Like: 
> 
> /NAME=(EXPOSE:UPPERCASE,CALL:AS_IS) 
> 
> Use case: 
> 
> some Fortran (probably also Cobol or Basic) code -> C wrapper -> some C 
> library that has to be build with /NAME=AS_IS 
> 
> /NAME=AS_IS works fine for pure C code, but I find it a hassle 
> in Fortran. 
> 
> (it is not a problem in Pascal because the external name 
> can be specified in the external attribute) 
> 
> Arne
CDEC$ ALIAS internal-name, external-name

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

The external-name is either a quoted character constant (delimited by single
quotation marks) or a symbolic name.

If external-name is a character constant, the value of that constant is used
as the external name for the specified internal name. The character constant
is used as it appears, with no modifications for case. The default for the HP
Fortran compiler is to force the name into uppercase.

If external-name is a symbolic name, the symbolic name (in uppercase) is used
as the external name for the specified internal name. Any other declaration of
the specified symbolic name is ignored for the purposes of the ALIAS directive.

User Manual, section 10.4.1



More information about the Info-vax mailing list