author | Markus Bröker <mbroeker@largo.dyndns.tv> |
Thu, 16 Apr 2009 12:49:13 +0200 | |
changeset 54 | c064ce9f40f5 |
parent 9 | c3fecc82ade6 |
child 77 | 49e0babccb23 |
permissions | -rw-r--r-- |
0 | 1 |
/** |
9
c3fecc82ade6
standard tags for git projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
2 |
* test/demos/tokenpasting.c |
c3fecc82ade6
standard tags for git projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
3 |
* Copyright (C) 2008 Markus Broeker |
0 | 4 |
*/ |
5 |
||
6 |
#include <stdio.h> |
|
7 |
#include <stdlib.h> |
|
8 |
||
9 |
#define a(a,b) { tsb.fd##a = b; } |
|
10 |
||
11 |
struct { |
|
12 |
int fd1; |
|
13 |
int fd2; |
|
14 |
int fd3; |
|
15 |
} tsb; |
|
16 |
||
17 |
int main (int argc, char **argv) |
|
18 |
{ |
|
19 |
a (1, 10); |
|
20 |
a (2, 20); |
|
21 |
a (3, 30); |
|
22 |
||
23 |
printf ("1=[%d] 2=[%d] 3=[%d]\n", tsb.fd1, tsb.fd2, tsb.fd3); |
|
24 |
||
25 |
return EXIT_SUCCESS; |
|
26 |
} |