VX/FPT - Controlling the Number of Continuation Lines
The maximum number of continuation lines varies between compilers. The FORTRAN 77 standard requires at least 19, and this is the maximum number supported by Salford FTN77. The Fortran 90 standard specifies 39. VMS allows 99 continuation lines, but in fact the number is controlled by the size of a character buffer, which is large enough to hold 100*132 characters, and statements with considerably more than 100 lines may be encountered. The Gould-SEL (Encore) MPX compilers appear to have no practical limit.
VX/FPT can sub-divide most declaration statements, and will attempt to squeeze executable statements into a user-selected number of lines. The command is, for example:
Maximum number of continuation lines = 39 |
An error is reported if the statement cannot be fitted into the required number of lines.
The statement shown below occupies 23 lines.
|
DATA COUNTRIES / 1 'Austria', 1 'Belgium', 1 'Czech Republic', 1 'Denmark', 1 'Finland', 1 'France', 1 'Germany', 1 'Greece', 1 'Hungary', 1 'Italy', 1 'Latvia', 1 'Lithuania', 1 'Luxembourg', 1 'Netherlands', 1 'Norway', 1 'Poland', 1 'Portugal', 1 'Republic of Ireland', 1 'Spain', 1 'Sweden', 1 'Switzerland', 1 'United Kingdom'/ |
VX/FPT reformats it into 20 lines (19 continuations), but leaves the original statement in place, commented-out.
| C DATA COUNTRIES / C 1 'Austria', C 1 'Belgium', C 1 'Czech Republic', C 1 'Denmark', C 1 'Finland', C 1 'France', C 1 'Germany', C 1 'Greece', C 1 'Hungary', C 1 'Italy', C 1 'Latvia', C 1 'Lithuania', C 1 'Luxembourg', C 1 'Netherlands', C 1 'Norway', C 1 'Poland', C 1 'Portugal', C 1 'Republic of Ireland', C 1 'Spain', C 1 'Sweden', C 1 'Switzerland', C 1 'United Kingdom'/ DATA COUNTRIES/'Austria','Belgium','Czech Republic','Denmark', 1 'Finland','France','Germany','Greece','Hungary','Italy','Latvia', 1 'Lithuania','Luxembourg','Netherlands','Norway','Poland', 1 'Portugal','Republic of Ireland','Spain','Sweden','Switzerland', 1 'United Kingdom'/ |

