-qtabsize

Category

Language element control

Pragma equivalent

#pragma options tabsize

Purpose

Sets the default tab length, for the purposes of reporting the column number in error messages.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -q--tabsize--=----number-----------------------------------><

Defaults

-qtabsize=8

Parameters

number
The number of character spaces representing a tab in your source program.

Usage

This option only affects error messages that specify the column number at which an error occurred.

Predefined macros

None.

Examples

To compile myprogram.c so the compiler considers tabs as having a width of one character, enter:
xlc myprogram.c -qtabsize=1
In this case, you can consider one character position (where each character and each tab equals one position, regardless of tab length) as being equivalent to one character column.