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
|
540
|
32 #define names(a,b) name_ ## b(a)
|
|
33
|
311
|
34 #define name_hoge(c) (c+a)
|
|
35
|
|
36
|
542
|
37 int
|
36
|
38 main() {
|
|
39 int a,b,e;
|
|
40
|
115
|
41 b = heap[TEST111];
|
180
|
42 d(a,b);
|
36
|
43 a =1; b = 3;
|
|
44 #ifndef a
|
|
45 c(a,
|
|
46 b);
|
|
47 /* 3,5 expected */
|
|
48 #endif
|
111
|
49 e=50; heap[51]=3; heap[3]=4;
|
|
50 /* 5,4 expected */
|
|
51 #if 0
|
|
52 g(car(cadr(e)),cadr(e));
|
|
53 #endif
|
177
|
54 #if 0
|
542
|
55 printf("#0054:1\n");
|
177
|
56 #elif (1)
|
542
|
57 printf("#0056:2\n");
|
177
|
58 #elif (2)
|
542
|
59 printf("#0058:3\n");
|
177
|
60 #else
|
542
|
61 printf("#0060:4\n");
|
177
|
62 #endif
|
|
63 #if 0
|
542
|
64 printf("#0063:1\n");
|
177
|
65 #elif (0)
|
542
|
66 printf("#0065:2\n");
|
177
|
67 #elif (0)
|
542
|
68 printf("#0067:3\n");
|
177
|
69 #else
|
542
|
70 printf("#0069:4\n");
|
177
|
71 #endif
|
542
|
72 printf("#0071:%d\n",name(3,hoge));
|
|
73 printf("#0072:%d\n",names(3,hoge));
|
172
|
74 return 0;
|
36
|
75 }
|
|
76
|
312
|
77 #if 0
|
|
78 #endif /* whoeh
|
|
79 wohefwiehfoi */
|
542
|
80 void longlong(int i,int j)
|
312
|
81 {
|
|
82 // long long i,j;
|
|
83 if (i>j) main();
|
|
84 }
|