Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

max number of continuation lines

2 views
Skip to first unread message

Lynn McGuire

unread,
Dec 18, 2008, 2:19:55 PM12/18/08
to
Does anyone know the maxium number of continuation lines in
the F77 standard ? Has this changed in the newer standards ?

Thanks,
Lynn


fj

unread,
Dec 18, 2008, 3:30:36 PM12/18/08
to

19

This value has been extended by F90 but I don't remeber the new value
(30 ?)

jfh

unread,
Dec 18, 2008, 4:30:07 PM12/18/08
to
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.

John Harper

Terence

unread,
Dec 19, 2008, 8:15:14 AM12/19/08
to

> > > 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...

me...@skyway.usask.ca

unread,
Dec 19, 2008, 8:22:23 AM12/19/08
to
In a previous article, jfh <john....@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)

Chris

michael...@compuserve.com

unread,
Dec 19, 2008, 10:36:22 AM12/19/08
to

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

Terence

unread,
Dec 19, 2008, 8:09:57 PM12/19/08
to

> 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).

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.

0 new messages