This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] Fortran 2003 command line argument intrinsics.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]