diff options
Diffstat (limited to 'scripts/coccinelle/misc/doubleinit.cocci')
-rw-r--r-- | scripts/coccinelle/misc/doubleinit.cocci | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/coccinelle/misc/doubleinit.cocci b/scripts/coccinelle/misc/doubleinit.cocci index 55d7dc19dfe0..156b20adb351 100644 --- a/scripts/coccinelle/misc/doubleinit.cocci +++ b/scripts/coccinelle/misc/doubleinit.cocci | |||
@@ -7,7 +7,7 @@ | |||
7 | // Copyright: (C) 2010 Julia Lawall, DIKU. GPLv2. | 7 | // Copyright: (C) 2010 Julia Lawall, DIKU. GPLv2. |
8 | // Copyright: (C) 2010 Gilles Muller, INRIA/LiP6. GPLv2. | 8 | // Copyright: (C) 2010 Gilles Muller, INRIA/LiP6. GPLv2. |
9 | // URL: http://coccinelle.lip6.fr/ | 9 | // URL: http://coccinelle.lip6.fr/ |
10 | // Comments: | 10 | // Comments: requires at least Coccinelle 0.2.4, lex or parse error otherwise |
11 | // Options: -no_includes -include_headers | 11 | // Options: -no_includes -include_headers |
12 | 12 | ||
13 | virtual org | 13 | virtual org |
@@ -19,7 +19,7 @@ position p0,p; | |||
19 | expression E; | 19 | expression E; |
20 | @@ | 20 | @@ |
21 | 21 | ||
22 | struct I s =@p0 { ... .fld@p = E, ...}; | 22 | struct I s =@p0 { ..., .fld@p = E, ...}; |
23 | 23 | ||
24 | @s@ | 24 | @s@ |
25 | identifier I, s, r.fld; | 25 | identifier I, s, r.fld; |
@@ -27,7 +27,7 @@ position r.p0,p; | |||
27 | expression E; | 27 | expression E; |
28 | @@ | 28 | @@ |
29 | 29 | ||
30 | struct I s =@p0 { ... .fld@p = E, ...}; | 30 | struct I s =@p0 { ..., .fld@p = E, ...}; |
31 | 31 | ||
32 | @script:python depends on org@ | 32 | @script:python depends on org@ |
33 | p0 << r.p0; | 33 | p0 << r.p0; |