467
|
1 int printf(const char *format, ...);
|
|
2
|
36
|
3
|
|
4 int heap[100];
|
|
5
|
|
6 #define car(e) (heap[(int)(e)])
|
|
7 #define cadr(e) (heap[((int)(e))+1])
|
|
8
|
|
9 #define TEST
|
|
10 int i;
|
|
11 TEST
|
|
12
|
304
|
13 char *a = "test" "test";
|
|
14
|
115
|
15 #define TEST0 33
|
|
16 #define TEST111 TEST0
|
|
17
|
36
|
18 #define c(a,b) g(a+1,b+1)
|
491
|
19 #define g(a,b) printf("#0018:%d %d\n",a+1,b+1);
|
180
|
20 #define d(a,b) cadr(b)+3
|
183
|
21 /*
|
|
22
|
|
23 #define stdio stdio
|
|
24 #define f(a,b) aho+a+b
|
|
25 f (a,b)
|
|
26 */
|
36
|
27
|
311
|
28 // name concateneation
|
|
29
|
|
30 #define name(a,b) name_##b(a)
|
|
31
|
|
32 #define name_hoge(c) (c+a)
|
|
33
|
|
34
|
|
35
|
36
|
36 main() {
|
|
37 int a,b,e;
|
|
38
|
115
|
39 b = heap[TEST111];
|
180
|
40 d(a,b);
|
36
|
41 a =1; b = 3;
|
|
42 #ifndef a
|
|
43 c(a,
|
|
44 b);
|
|
45 /* 3,5 expected */
|
|
46 #endif
|
111
|
47 e=50; heap[51]=3; heap[3]=4;
|
|
48 /* 5,4 expected */
|
|
49 #if 0
|
|
50 g(car(cadr(e)),cadr(e));
|
|
51 #endif
|
177
|
52 #if 0
|
491
|
53 printf("#0052:1\n");
|
177
|
54 #elif (1)
|
491
|
55 printf("#0054:2\n");
|
177
|
56 #elif (2)
|
491
|
57 printf("#0056:3\n");
|
177
|
58 #else
|
491
|
59 printf("#0058:4\n");
|
177
|
60 #endif
|
|
61 #if 0
|
491
|
62 printf("#0061:1\n");
|
177
|
63 #elif (0)
|
491
|
64 printf("#0063:2\n");
|
177
|
65 #elif (0)
|
491
|
66 printf("#0065:3\n");
|
177
|
67 #else
|
491
|
68 printf("#0067:4\n");
|
177
|
69 #endif
|
491
|
70 printf("#0069:%d\n",name(3,hoge));
|
172
|
71 return 0;
|
36
|
72 }
|
|
73
|
312
|
74 #if 0
|
|
75 #endif /* whoeh
|
|
76 wohefwiehfoi */
|
|
77 longlong(int i,int j)
|
|
78 {
|
|
79 // long long i,j;
|
|
80 if (i>j) main();
|
|
81 }
|