-fdollars-in-identifiers (-qdollar)

Pragma equivalent

None

Purpose

Allows the dollar-sign ($) symbol to be used in the names of identifiers.

When -fdollars-in-identifiers or -qdollar is in effect, the dollar symbol $ in an identifier is treated as a base character.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-dollars-in-identifiers----.     
>>- -f--+-no-dollars-in-identifiers-+--------------------------><

Read syntax diagramSkip visual syntax diagram
        .-dollar---.   
>>- -q--+-nodollar-+-------------------------------------------><

Defaults

-fdollars-in-identifiers or -qdollar

Predefined macros

None.

Examples

To compile myprogram.c so that $ is allowed in identifiers in the program, enter:

xlc myprogram.c -fdollars-in-identifiers

Related information



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us