dollar_identifiers. NXP CodeWarrior Development Studio
Quảng cáo
Quảng cáo
Chapter 30 Pragmas for Language Translation
30.4 dollar_identifiers
Controls use of dollar signs ($) in identifiers.
Syntax
#pragma dollar_identifiers on | off | reset
Remarks
If you enable this pragma, the compiler accepts dollar signs (
$
) in identifiers. Otherwise, the compiler issues an error if it encounters anything but underscores, alphabetic, numeric character, and universal characters (
\uxxxx
,
\Uxxxxxxxx
) in an identifier.
This pragma does not correspond to any panel setting. By default, this pragma is off
.
30.5 gcc_extensions
Controls the acceptance of GNU C language extensions.
Syntax
#pragma gcc_extensions on | off | reset
Remarks
If you enable this pragma, the compiler accepts GNU C extensions in C source code. This includes the following non-ANSI C extensions:
• Initialization of automatic struct
or array
variables with non- const
values.
• Illegal pointer conversions
• sizeof( void ) == 1
• sizeof( function-type ) == 1
• Limited support for GCC statements and declarations within expressions.
• Macro redefinitions without a previous
#undef
.
• The GCC keyword typeof
• Function pointer arithmetic supported
• void*
arithmetic supported
• Void expressions in return statements of void
•
__builtin_constant_p (
expr
)
supported
CodeWarrior Development Studio for Advanced Packet Processing Build Tools Reference Manual, Rev.
10.2, 01/2016
Freescale Semiconductor, Inc.
471
Tải xuống
Quảng cáo