File: x.cxx.styled

package info (click to toggle)
codequery 1.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,860 kB
  • sloc: cpp: 151,420; xml: 16,576; python: 5,602; ansic: 5,487; makefile: 559; perl: 496; ruby: 209; sql: 194; sh: 106; php: 53; vhdl: 51; erlang: 47; objc: 22; lisp: 18; cobol: 18; modula3: 17; asm: 14; fortran: 12; ml: 11; tcl: 6
file content (80 lines) | stat: -rw-r--r-- 1,824 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{2}// A demonstration program
{9}#include <stdio.h>
#if 0 {23}/* */{9}
{73}#define DUMMY() \
	if (1);
{9}#endif
{0}
{2}// Test preprocessor expressions with parentheses 
{9}#if ((0))
{75}a{64}
{9}#elif ((1))
{11}b{0}
{9}#endif
{0}
{3}/** {17}@file{3} LexCPP.cxx
 <{17}file{3}>
 <{17}file{3} >filename</{17}file{3}>
 LexCPP.cxx.
 </{17}file{3}>
 **/{0}

{3}/** Unknown doc keywords so in SCE_C_COMMENTDOCKEYWORDERROR:
 {18}@wrong{3} LexCPP.cxx
 <{18}wrong{3}>filename</{18}wrong{3}>
**/{0}

{9}#define M\

{0}\
 

{2}// Test preprocessor active branches feature
{0}
{9}#if HAVE_COLOUR
{2}// Active
{9}#endif
#if NOT_HAVE_COLOUR
{66}// Inactive
{9}#endif
{0}
{9}#if FEATURE==2
{2}// Active
{9}#endif
#if FEATURE==3
{66}// Inactive
{9}#endif
{0}
{9}#if VERSION(1,2)==3
{2}// Active
{9}#endif
#if VERSION(1,2)==4
{66}// Inactive
{9}#endif
{0}
{9}#undef HAVE_COLOUR
#if HAVE_COLOUR
{66}// Inactive
{9}#endif
{0}
{9}#define MULTIPLY(a,b) a*b
#if MULTIPLY(2,3)==6
{2}// Active
{9}#endif
{0}
{5}int{0} {11}main{10}(){0} {10}{{0}
	{11}double{0} {11}x{10}[]{0} {10}={0} {10}{{4}3.14159{10},{4}6.02e23{10},{4}1.6e-19{10},{4}1.0{10}+{4}1{10}};{0}
	{5}int{0} {11}y{10}[]{0} {10}={0} {10}{{4}75{10},{4}0113{10},{4}0x4b{10}};{0}
	{11}printf{10}({6}"hello world %d %g{27}\n{6}"{10},{0} {11}y{10}[{4}0{10}],{0} {11}x{10}[{4}0{10}]);{0}

	{2}// JavaScript regular expression (14) tests
{0}	{5}let{0} {11}a{0} {10}={0} {14}/a/{10};{0}
	{5}let{0} {11}b{0} {10}={0} {14}/[a-z]+/gi{10};{0}

	{2}// Escape sequence (27) tests
{0}	{11}printf{10}({6}"{27}\'\"\?\\\a\b\f\n\r\t\v{6} {27}\P{6}"{10});{0}
	{11}printf{10}({6}"{27}\0{6}a {27}\013{6}a {27}\01{6}9"{10});{0}
	{11}printf{10}({6}"{27}\x013a{6}c {27}\xd{6}z"{10});{0}
	{11}printf{10}({6}"{27}\ua34d{6}f {27}\u{6}z"{10});{0}
	{11}printf{10}({6}"{27}\Ua34df783{6}3 {27}\U{6}z"{10});{0}
{10}}{0}