]> code.delx.au - gnu-emacs-elpa/blob - packages/sm-c-mode/sm-c-mode-test.c
* sm-c-mode.el: Auto-align backslashes. Improve indent rules
[gnu-emacs-elpa] / packages / sm-c-mode / sm-c-mode-test.c
1 /* -*- sm-c -*- */
2
3 #define toto(arg) /* bla
4 bla */ \
5 if (a) { /* toto
6 * titi
7 */ \
8 fs((arg) + 2); \
9 }
10
11 #define test(arg) \
12 (hello + arg)
13
14 struct foo;
15
16 #define titi(arg) { \
17 if (a) { \
18 f(arg + 1) \
19 } \
20 }
21
22 DEFUN ()
23 ()
24 {
25 return Qnil;
26 }
27
28 int main (void)
29 {
30 if (a)
31 do
32 if (b)
33 if (c)
34 printf ("hello\n");
35 else
36 printf ("there\n");
37 else
38 printf ("elsewhere\n");
39 while (6);
40 else if (b)
41 printf ("wow\n");
42 else
43 if (c)
44 printf
45 ("weee\n");
46 else
47 printf ("wop\n");
48
49 if (a)
50 if (b) {
51 c;
52 }
53
54 *a = b;
55
56 if (pITORIG != pITCOPY)
57 *(pITORIG)
58 = *(pITCOPY);
59
60 switch (a)
61 {
62 case 1:
63 {
64 if (a)
65 {
66 y = 5;
67 case 2:
68 x = 3;
69 }
70 }
71 }
72 }
73
74 static struct myownspecialstruct *
75 testfunction
76 (args)
77 {
78 return NULL;
79 }