permit multiline comments and strings in macros
[bpt/coccinelle.git] / demos / pycocci.c
1 #include <stdio.h>
2
3 const int qqq = 20;
4
5 void foo() {
6 int z[10];
7
8 z[2] = 34;
9 }
10
11 int main() {
12 int buf[qqq], foo[30];
13 int i;
14
15 for (i = 0; i <= 20; ++i) {
16 buf[i] = i;
17 foo[i] = i;
18 }
19
20 for (i = 0; i <= 20; ++i)
21 printf("%d: %d\n", i, buf[i]);
22 }