From: shumaker@eisner.decus.org
Subject: Re: FORTRAN arg lists on AXP
Date: 6 Mar 95 15:36:17 -0500 [thread overview]
Message-ID: <1995Mar6.153618.9303@eisner> (raw)
In-Reply-To: 3j2q8v$5hc@arc.electriciti.com
In article <3j2q8v$5hc@arc.electriciti.com>, jjo@triton.com (Jay Olson) writes:
> I am converting some VAX MACRO code to FORTRAN as part of an AXP conversion
> effort. Some of the entry points in this code are supposed to accept variable length
> argument lists. Is there any way in DEC FORTRAN for OpenVMS/AXP (or any other
> language) to determine the number of arguments a subroutine has been passed?
>
> Note that this is the case where the number of commas may vary (e.g CALL XXX(A1,A2)
> and CALL XXX(A1) are both supposed to be allowed). I can use %LOC to determine if an
> argument has been left out, as in CALL XXX(A1,).
There's a couple of intrinsic functions that will be a lot of help. In
6.1 of DEC Fortran was introduced:
II = IARGCOUNT ()
which retuns just what it says. Introduced with 6.2 of DEC Fortran was:
PTR = IARGPTR ()
which returns an INTEGER*8 address of the argument block as defined
by the calling standard. More details about each in the Release Notes for
Versions 6.1 and 6.2 of DEC Fortran.
next prev parent reply other threads:[~1995-03-06 20:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-01 21:51 FORTRAN arg lists on AXP Jay Olson
1995-03-03 14:49 ` Steve Lionel
1995-03-06 20:36 ` shumaker [this message]
1995-03-06 23:57 ` Martin Cohen
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox