HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Release coccinelle-0.1.8
[bpt/coccinelle.git]
/
tests
/
ifdefmeta.c
1
int
main
() {
2
buf
=
alloca
(
3
3
#ifdef PLATFORM_A
4
// platform a stuff
5
+
5
6
+
50
7
#endif
8
#ifdef PLATFORM_B
9
/* platform b stuff */
10
+
2
11
#endif
12
);
13
buf
=
alloca
(
3
14
#ifdef PLATFORM_A
15
// platform a stuff
16
+
5
17
+
50
18
#endif
19
#ifdef PLATFORM_B
20
/* platform b stuff */
21
+
2
22
#endif
23
);
24
}
25
26
int
other
() {
27
buf
=
alloca
(
3
28
#ifdef PLATFORM_A
29
// platform a stuff
30
+
5
31
#endif
32
#ifdef PLATFORM_B
33
/* platform b stuff */
34
+
2
35
#endif
36
);
37
buf
=
alloca
(
3
38
+
5
39
+
2
40
);
41
}
42
43
int
third
() {
44
buf
=
alloca
(
3
+
5
+
2
);
45
buf
=
alloca
(
3
46
+
5
47
+
2
48
);
49
}