File: m_36_sjis.t

package info (click to toggle)
mcpp 2.7.2-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,152 kB
  • ctags: 29,136
  • sloc: ansic: 35,238; sh: 9,241; makefile: 176; cpp: 84; exp: 18
file content (24 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* m_36_sjis.t: Handling of 0x5c in shift-JIS multi-byte character. */

#define     str( a)     # a

/* 36.1:    0x5c in multi-byte character is not an escape character */

#pragma __setlocale( "sjis")                /* For MCPP     */
#pragma setlocale( "japanese")              /* For Visual C */

#if     '��' == '\x8e\x9a' && '�\' != '\x95\x5c'
    Bad handling of '\\' in multi-byte character.
#endif

/* 36.ext and 36.2 are expanded to:
    "�\��"; "\"�\��\"";
    or "�\\��"; "\"�\\��\"";    */

/* 36.ext:  */
    "�\��";

/* 36.2:    # operater should not insert '\\' before 0x5c in multi-byte
        character.  */
    str( "�\��");