| Electronic Components Datasheet Search |
|
AN3350 Datasheet(PDF) 135 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3350 Datasheet(HTML) 135 Page - STMicroelectronics |
|
135 / 185 page ![]() AN3350 Pragmas for language translation Doc ID 018512 Rev 2 135/185 Syntax #pragma mpwc_newline on | off | reset Remarks If you enable this pragma, the compiler translates '\n' as a Carriage Return (0x0D) and '\r' as a Line Feed (0x0A). Otherwise, the compiler uses the ISO standard conventions for these characters. If you enable this pragma, use ISO standard libraries that were compiled when this pragma was enabled. If you enable this pragma and use the standard ISO standard libraries, your program will not read and write '\n' and '\r' properly. For example, printing '\n' brings your program’s output to the beginning of the current line instead of inserting a newline. This pragma does not correspond to any IDE panel setting. By default, this pragma is disabled. 18.8 mpwc_relax Controls the compatibility of the char* and unsigned char* types. 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. Example 82 shows how to use this pragma to relax function pointer checking. Example 82 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. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |