This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran] Fortran 2003 command line argument intrinsics.
- From: Janne Blomqvist <jblomqvi at cc dot hut dot fi>
- To: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Jun 2004 15:59:44 +0300
- Subject: Re: [gfortran] Fortran 2003 command line argument intrinsics.
- References: <20040629124449.GB29400@vipunen.hut.fi>
On Tue, Jun 29, 2004 at 03:44:49PM +0300, Janne Blomqvist wrote:
> Hello,
Hello again,
Murphys law has reared its ugly head.
> gcc Changelog:
>
> * intrinsic.c (add_functions): Add command_argument alias for
1
This should of course be "command_argument_count".
> ===================================================================
> RCS file: /cvsroot/gcc/gcc/libgfortran/intrinsics/args.c,v
> retrieving revision 1.1
> diff -u -p -r1.1 args.c
> --- libgfortran/intrinsics/args.c 12 Jun 2004 13:42:46 -0000 1.1
> +++ libgfortran/intrinsics/args.c 29 Jun 2004 11:24:04 -0000
[snip]
> +void
> +prefix(get_command) (char *command,
[snip]
> + /* Add space between arguments. */
> + memset((command + (tot_len + arglen) * sizeof(char)), ' ', 1);
These two lines are unnecessary since the string has already been
blanked before it is filled.
--
Janne Blomqvist