multibyteaware. NXP CodeWarrior Development Studio
விளம்பரம்
விளம்பரம்
Chapter 30 Pragmas for Language Translation
Syntax
#pragma mpwc_relax on | off | reset
Remarks
If you enable this pragma, the compiler treats char*
and unsigned char*
as the same type.
Use this setting to compile source code written before the ISO C standards. Old source code frequently uses these types interchangeably.
This setting has no effect on C++ source code.
NOTE
Turning this option on may prevent the compiler from detecting some programming errors. We recommend not turning on this option.
shows how to use this pragma to relax function pointer checking.
Listing 30-1. Relaxing function pointer checking
#pragma mpwc_relax on extern void f(char *);
/* Normally an error, but allowed. */ extern void(*fp1)(void *) = &f;
/* Normally an error, but allowed. */ extern void(*fp2)(unsigned char *) = &f;
This pragma does not correspond to any panel setting. By default, this pragma is disabled.
30.9 multibyteaware
Controls how the Source encoding option in the IDE is treated
Syntax
#pragma multibyteaware on | off | reset
Remarks
This pragma is deprecated. See
#pragma text_encoding
for more details.
By default, this pragma is off
.
CodeWarrior Development Studio for Power Architecture Processors Build Tools Reference Manual, Rev.
10.6, 02/2014
Freescale Semiconductor, Inc.
463
பதிவிறக்கு
விளம்பரம்