comparison test/macro.c @ 491:a379da780856

cond signed/unsigned
author kono
date Wed, 21 Dec 2005 11:33:53 +0900
parents 32737bad7489
children fe37f32b552b
comparison
equal deleted inserted replaced
490:95fcc858fd1c 491:a379da780856
14 14
15 #define TEST0 33 15 #define TEST0 33
16 #define TEST111 TEST0 16 #define TEST111 TEST0
17 17
18 #define c(a,b) g(a+1,b+1) 18 #define c(a,b) g(a+1,b+1)
19 #define g(a,b) printf("#0016:%d %d\n",a+1,b+1); 19 #define g(a,b) printf("#0018:%d %d\n",a+1,b+1);
20 #define d(a,b) cadr(b)+3 20 #define d(a,b) cadr(b)+3
21 /* 21 /*
22 22
23 #define stdio stdio 23 #define stdio stdio
24 #define f(a,b) aho+a+b 24 #define f(a,b) aho+a+b
48 /* 5,4 expected */ 48 /* 5,4 expected */
49 #if 0 49 #if 0
50 g(car(cadr(e)),cadr(e)); 50 g(car(cadr(e)),cadr(e));
51 #endif 51 #endif
52 #if 0 52 #if 0
53 printf("#0050:1\n"); 53 printf("#0052:1\n");
54 #elif (1) 54 #elif (1)
55 printf("#0052:2\n"); 55 printf("#0054:2\n");
56 #elif (2) 56 #elif (2)
57 printf("#0054:3\n"); 57 printf("#0056:3\n");
58 #else 58 #else
59 printf("#0056:4\n"); 59 printf("#0058:4\n");
60 #endif 60 #endif
61 #if 0 61 #if 0
62 printf("#0059:1\n"); 62 printf("#0061:1\n");
63 #elif (0) 63 #elif (0)
64 printf("#0061:2\n"); 64 printf("#0063:2\n");
65 #elif (0) 65 #elif (0)
66 printf("#0063:3\n"); 66 printf("#0065:3\n");
67 #else 67 #else
68 printf("#0065:4\n"); 68 printf("#0067:4\n");
69 #endif 69 #endif
70 printf("#0067:%d\n",name(3,hoge)); 70 printf("#0069:%d\n",name(3,hoge));
71 return 0; 71 return 0;
72 } 72 }
73 73
74 #if 0 74 #if 0
75 #endif /* whoeh 75 #endif /* whoeh