sequence

C compiler only

sequence syntax

Read syntax diagramSkip visual syntax diagram#pragmasequence(left_column, right_column* )

Description

Specifies the columns of the input record that are to contain sequence numbers. The column setting applies only to the source setting in which it is located and has no effect on any source members named on include directives in the member.

Parameters
left column
Must be greater than zero but less than 32 754. The left column should be less than the right column.
right column
Must be greater than zero but less than 32 754. The right column should be greater than or equal to the left column. An asterisk (*) that is specified as the right column value indicates that sequence numbers are contained between left column and the end of the input record.

Notes on Usage

The #pragma sequence directive takes effect on the line following the directive. It remains in effect until another #pragma sequence or #pragma nosequence directive is encountered or the end of the source member is reached.

The #pragma margins and #pragma sequence directives can be used together. If these two #pragma directives reserve the same columns, the #pragma sequence directive has priority, and the columns are reserved for sequence numbers.

For example, if the #pragma margins directive specifies margins of 1 and 20 and the #pragma sequence directive specifies columns 15 to 25 for sequence numbers, the margins in effect are 1 and 14, and the columns reserved for sequence numbers are 15 to 25.

If the margins specified are not in the supported range or the margins contain non-numeric values, a warning message is issued during compilation and the directive is ignored.

See also pragmas nosequence and margins.