User`s guide

Pragmas for the DSP56800 and DSP56800E
Pragma Reference
399Targeting MC56F83xx/DSP5685x Controllers
This pragma corresponds to the Map newlines to CR setting in the C/C++ Language
panel. To check this setting, use __option (mpwc_newline), described in
Checking Settings
. By default, this pragma is disabled.
Enabling this setting is not useful for the DSP56800 target.
mpwc_relax
Controls the compatibility of the char* and unsigned char* types.
Prototype
#pragma mpwc_relax on | off | reset
Remarks
If you enable this pragma, the compiler treats char* and unsigned char* as
the same type. This setting is especially useful if you are using code written before the
ANSI C standard. This old source code frequently used these types interchangeably.
This setting has no effect on C++ source code.
You can use this pragma to relax function pointer checking:
#pragma mpwc_relax on
extern void f(char *);
extern void(*fp1)(void *) = &f; // error but allowed
extern void(*fp2)(unsigned char *) = &f; // error but allowed
This pragma corresponds to the Relaxed Pointer Type Rules setting in the C/C++
Language panel. To check this setting, __option (mpwc_relax), described in
Checking Settings
. By default, this pragma is disabled.
notonce
Controls whether or not the compiler lets included files be repeatedly included, even
with #pragma once on.