On Dec 19, 9:30 am, fj <francois.j...@irsn.fr> wrote:
> On 18 déc, 20:19, "Lynn McGuire" <l...@winsim.com> wrote:
> > Does anyone know the maxium number of continuation lines in > > the F77 standard ? Has this changed in the newer standards ?
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.
> > > Does anyone know the maxium number of continuation lines in > > > the F77 standard ? Has this changed in the newer standards ?
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...
In a previous article, jfh <john.har...@vuw.ac.nz> wrote:
>On Dec 19, 9:30 am, fj <francois.j...@irsn.fr> wrote: >> On 18 d=E9c, 20:19, "Lynn McGuire" <l...@winsim.com> wrote:
>> > Does anyone know the maxium number of continuation lines in >> > the F77 standard ? Has this changed in the newer standards ?
>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
WATCOM F77 limit is 61 in 72 col format or 31 in 132col (from the Lang. Ref. Manual - I'v never tried 132 col)
On Dec 19, 2:15 pm, Terence <tbwri...@cantv.net> wrote:
> > > > Does anyone know the maxium number of continuation lines in > > > > the F77 standard ? Has this changed in the newer standards ?
> 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...
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.