Thanks,
Lynn
19
This value has been extended by F90 but I don't remeber the new value
(30 ?)
I don't know what the f90 rule was, but in f95 it's 39 continuation
lines in free source form, 19 in fixed source form according to the
F95 Handbook pages 54, 58. In f2003 it's 255 in either source form
according to the f2003 standard sections 3.3.1.4 and 3.3.2.4.
The F2003 Handbook p.56 has an error here, where it says the
f2003
fixed-form limit is 19.
John Harper
I was just writing a program to rewrite Fortran programs. (Option to
change Hollerith H format to quoted text, adding commas, ensuring text
strings do NOT wrap across lines to allow easier editing; taking out
nnH0text obsolete line-starters; option to renumber labels and
separate renumbering of format statements; listing with do loop
nesting level indication, indenting, splitting shared Continues and
anding loops on continues, etc... )
I read the manual as 19 continuations for 20 lines overall per
statement.
I'd better be right...
Chris
I'm sure that you're aware that a number of such programs are already
available, for instance ftp://ftp.numerical.rl.ac.uk/pub/MRandC/convert.f90
(although this one does not transform Holleriths).
Regards,
Mike Metcalf
No, But thanks Mike!
My real reason was to auto-rewrite the Fortran II / IV /PDP-20 BMD
programs to avoid typos in a manual approach. Especially the Hollerith
H format in data statements which my compiler rejects, nad the wrapped
long lines which I want as a maximum 64 length or lengths.
With 56 programs to change , I know the statistics of error-free
changes are against me.
And what I have done is already indented and CONTINUE ends any DO
loops.
My version also notes unused labels and unfound references.
And so on and so on.
So for a compare program to find my UNWANTED changes to existing
programs, the "new" original and my "working" versions have to be
similar in layout (I have a compare program that write a third file
and stops on meaningful differences, that is VERY useful in
programming and maintenance - another story).
I already have an F77-to-F90 converter, but I don't want F90 code ths
time; just F77 code.
I think I got my copy from Alan Miller's site.