<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.version-control.coccinelle">
    <title>gmane.comp.version-control.coccinelle</title>
    <link>http://blog.gmane.org/gmane.comp.version-control.coccinelle</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3127"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3123"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3092"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3081"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3068"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3060"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3059"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3056"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3055"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3043"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3042"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3038"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3007"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3003"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3001"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/2993"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/2989"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/2986"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/2971"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.version-control.coccinelle/2954"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3127">
    <title>Coccinelle question</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3127</link>
    <description>&lt;pre&gt;Hello,

last night i saw your website and projects from google search im really
interested in what Coccinelle doing as i understand its kind of open source
c parser library that follow in source code for variables and trace all
source and headers for it,Right?

now i have some questions:
Are you take care of Variable Scopes when you are searching the source code?

Thanks
&lt;/pre&gt;</description>
    <dc:creator>Majid Java</dc:creator>
    <dc:date>2013-04-24T10:03:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3123">
    <title>junk output</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3123</link>
    <description>&lt;pre&gt;Hi Julia, Richard,

not sure if this was already reported, but the latest Fedora 18
coccinelle produces a lot of junk. Just an example using the linux
kernel scripts:

$ spatch -sp_file ./scripts/coccinelle/free/clk_put.cocci drivers/gpio/gpio-sch.c

init_defs_builtins: /usr/share/coccinelle/standard.h
HANDLING: drivers/gpio/gpio-sch.c
No matches found for clk_get clk_put
Skipping:drivers/gpio/gpio-sch.c
left
left
left
left
left
left
left
right
right
right
right
right
right
left
left
left
left
left
left
left
left
left
left

Notice these lefts and rights.

$ rpm -q coccinelle 
coccinelle-1.0.0-0.rc14.6.fc18.x86_64

Any suggestions?

Thanks!

&lt;/pre&gt;</description>
    <dc:creator>Artem Bityutskiy</dc:creator>
    <dc:date>2013-04-26T13:52:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3092">
    <title>1.0.0-rc17</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3092</link>
    <description>&lt;pre&gt;Version 1.0.0-rc17 has been released.  Some changes are:

- allow __ at the beginning of a struct or union name

- unparsing with precedence (insertion of parentheses when needed)

- Type metavariables no longer match a case where there is no type in the
C code.

- An expression list metavariable can now be attached with &amp;lt; at &amp;gt; to a
parameter list metavariable, to allow using the parameter names as an
argument list.

julia
&lt;/pre&gt;</description>
    <dc:creator>Julia Lawall</dc:creator>
    <dc:date>2013-04-07T05:39:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3081">
    <title>Analysis for Linux source files</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3081</link>
    <description>&lt;pre&gt;Hello,

I try out a bit of static source code analysis again by the following command.

elfring&amp;lt; at &amp;gt;Sonne:~/Projekte/Coccinelle/lokal/demos/pass-through&amp;gt;
XY=/usr/src/linux-stable/ &amp;amp;&amp;amp; spatch -sp_file list_pass-through_functions.cocci \
-dir $XY \
-I ${XY}include \
-I ${XY}usr/include \
-I ${XY}arch/ia64/include \
-I ${XY}arch/ia64/include/uapi \
-I ${XY}arch/x86/include \
-I ${XY}arch/x86/include/generated \
-I /usr/include \
-I /usr/include/c++/4.7/tr1 \
-recursive_includes \
2&amp;gt;list_pass-through_functions-linux-errors.txt


I notice results like the following in my log file.

...
HANDLING: /usr/src/linux-stable/init/noinitramfs.c
EXN:Failure("empty list, max_min_ii_by_pos")
Note: processing took    85.2s: /usr/src/linux-stable/init/noinitramfs.c
HANDLING: /usr/src/linux-stable/init/do_mounts_md.c
EXN:Failure("empty list, max_min_ii_by_pos")
Note: processing took   109.5s: /usr/src/linux-stable/init/do_mounts_md.c
...


Can the shown error message be avoided?
What does it really mean?

openSUSE package: coccinell&lt;/pre&gt;</description>
    <dc:creator>SF Markus Elfring</dc:creator>
    <dc:date>2013-04-02T10:12:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3068">
    <title>Control flow query across files</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3068</link>
    <description>&lt;pre&gt;Hello,
I've stumbled accross coccinelle and I'm interested in using it to perform queries on the control flow graph (quite similarly to what have been done in "Finding Error Handling Bugs in OpenSSL using Coccinelle" by Lawall and al.).
However, I wonder if it is possible to perform queries on the control flow graph that span across a single C file.

An example to be clear:

fileA.h : f(), g(), h()
fileA.c : f() calls g() calls h() calls i()

fileA.h : i() j() k()
fileA.c : i() calls j() calls k()

Is it possible with coccinelle to match the query
f()
...
k()

that spans across fileA.c and fileB.c ?

Thanks in advance for your help,
Regards,

Julien Lancia

&lt;/pre&gt;</description>
    <dc:creator>LANCIA Julien</dc:creator>
    <dc:date>2013-03-26T14:29:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3060">
    <title>parameter list to expression list?</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3060</link>
    <description>&lt;pre&gt;Hello,

is there an intrinsic way to get from a parameter list to an expression
list? That would come in handy when forwarding from one function to
another one. At the moment I help myself with a python rule that
transforms the parameter list to an identifier but that feels clumsy.
E.g. in SmPL pseudo code something like this would be nice:

&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
type T;
parameter list P;
expression list E = P;
expression ret;
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 T foo(P)
 {
     return
-           ret
+           bar(E)
     ;
 }



thanks
bye
michael
&lt;/pre&gt;</description>
    <dc:creator>Michael Stefaniuc</dc:creator>
    <dc:date>2013-03-25T16:09:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3059">
    <title>Invitation to the thesis defense of Suman Saha (fwd)</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3059</link>
    <description>&lt;pre&gt;If you are in the Paris area and are interested in bug finding in C code,
you may be interested in coming to the following PhD defense on Monday.
We plan to make the tool developed as part of this PhD publicly available
shortly.  It has already been used to find quite a number of
resource-release omission faults in Linux, as well as some other systems
software.

julia

---------- Forwarded message ----------
Date: Thu, 21 Mar 2013 13:30:17 +0100
From: Suman &amp;lt;suman.saha&amp;lt; at &amp;gt;lip6.fr&amp;gt;
To: Tout LIP6 &amp;lt;tout-lip6&amp;lt; at &amp;gt;lip6.fr&amp;gt;
Subject: Invitation to the thesis defense of Suman Saha


Hello,

I am pleased to invite you to my thesis defense.

My thesis is entitled "Improving the Quality of Error-Handling Code in
Systems Software using Function-Local Information"

The defense will take place Monday, March 25th at 14:00 pm at Jussieu in
room 25-26/101

---------------------------------------------------------------------------
---------------------------------------------------------------------------
--------------------------&lt;/pre&gt;</description>
    <dc:creator>Julia Lawall</dc:creator>
    <dc:date>2013-03-22T17:31:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3056">
    <title>Have coccinelle follow typedef ?</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3056</link>
    <description>&lt;pre&gt;Hello,

I've got the following construction in a code:
 typedef struct Packet_ {
struct Flow_ * flow;
 } Packet;
and in an other include file:
 typedef struct Flow_ {
...
 } Flow;

My problem here is that if p is a Packet then p-&amp;gt;flow is a Flow at least
from a developer point of view. But coccinelle is not detecting the
match "Flow f" do not match on a "p-&amp;gt;flow".

I've thought about adding a new isomorphism to solve this but I don't
like the idea...

How could I fix this issue ? 

BR,
&lt;/pre&gt;</description>
    <dc:creator>Eric Leblond</dc:creator>
    <dc:date>2013-03-19T16:16:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3055">
    <title>Small 'make install' problem</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3055</link>
    <description>&lt;pre&gt;Hello,

It seems there is an installation issue in current git tree. I was not
able to run make install without doing:
mkdir ocaml/coccilib
in the base project directory.

BR,
&lt;/pre&gt;</description>
    <dc:creator>Eric Leblond</dc:creator>
    <dc:date>2013-03-19T15:25:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3043">
    <title>how to consider castings in semantic patchs</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3043</link>
    <description>&lt;pre&gt;Hi, I've been playing with Coccinele, I find it really useful.

I'm trying to create a semantic patch to rename a structure (and its
fields).
I could get almost everything in place in several patches: the structure
gets renamed, also variables of that type, also their attributes. However,
the code (not mine) uses some explicit castings and I couldn't find a way
to cover those cases also.

I've tried to follow the documented grammar but I think I got lost without
finding how to declare such castings.

I'm appending the last version of the semantic patch I've been working on
just to give the rough idea how what I am trying to describe. The code is a
Linux kernel staging driver (VIA VT6656), using their own Ethernet packet
struct.

Thanks, I will really appreciate any hints on how to consider explicit
casting.

&lt;/pre&gt;</description>
    <dc:creator>Andrés More</dc:creator>
    <dc:date>2013-03-12T13:51:49</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3042">
    <title>"virtual rule patch not supported"</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3042</link>
    <description>&lt;pre&gt;Hello,
I am running the kernel 3.9-rc2 coccicheck script on some of my module,
and I get the following message:
  virtual rule patch not supported
Things seem to work fine aside of this message. Anything to be worried
about?
I already upgraded to coccinelle 1.0-rc16 (from Debian experimental)
since rc12 didn't accept orplus.cocci. Anything else to upgrade to avoid
the message?
Thanks
Brice

&lt;/pre&gt;</description>
    <dc:creator>Brice Goglin</dc:creator>
    <dc:date>2013-03-11T08:25:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3038">
    <title>Class library for "CTL-VW"?</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3038</link>
    <description>&lt;pre&gt;Hello,

Your software uses the technology "computation tree logic with variables and
witnesses" (CTL-VW) like it is described in the document "A Foundation for
Flow-Based Program Matching Using Temporal Logic and Model Checking".
http://coccinelle.lip6.fr/papers/popl09.pdf
http://doi.acm.org/10.1145/1480881.1480897

Is a function or class library available which enables the reuse of this
technique by other source code transformation tools besides your program
implementation "spatch"?

Do you develop any further extensions for this knowledge area from computer science?

Regards,
Markus
&lt;/pre&gt;</description>
    <dc:creator>SF Markus Elfring</dc:creator>
    <dc:date>2013-03-07T13:05:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3007">
    <title>Addition of source code documentation generation to thebuild system?</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3007</link>
    <description>&lt;pre&gt;Hello,

I try to generate some documentation from the source files of your current software.

elfring&amp;lt; at &amp;gt;Sonne:~/Projekte/Coccinelle/lokal&amp;gt; MY_DIR=../Probe/Doku/ &amp;amp;&amp;amp;
MY_NAMES=${MY_DIR}file_name_list11.txt &amp;amp;&amp;amp; find . \( -name '*.ml' -o -name
'*.mli' \) -a ! -name 'myocamlbuild.ml' -type f -fprint0 $MY_NAMES &amp;amp;&amp;amp;
ocamldoc.opt -d ${MY_DIR} -I commons -I commons/ocamlextra -I
commons/ocollection -I globals -I engine -I parsing_c -I parsing_cocci -I ctl -I
ocaml -I ocamlsexp -I python -I popl09 -I extra -I /usr/local/share/menhir -I
bundles/pcre -I bundles/pycaml -dot -o ${MY_DIR}my_graph.gv -html $(sed 's/\x0/
/g' $MY_NAMES)


I get a couple of error messages because my approach is incomplete so far. I
stumble on technical challenges here.
Would you like to suggest an improved way for the construction of include
directories and file names which should be passed to the command?
Are there any chances to adapt it to the chosen build configuration?

Regards,
Markus
&lt;/pre&gt;</description>
    <dc:creator>SF Markus Elfring</dc:creator>
    <dc:date>2013-03-03T20:21:19</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3003">
    <title>[PATCH 1/4] Coccinelle: Restore coccicheck verbosity inONLINE mode (C=1 or C=2)</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3003</link>
    <description>&lt;pre&gt;A recent patch have introduce the VERBOSE variable and comments
now depend on it. However, the message printed for each cocci file
such not be printed when the ONLINE mode is active, whatever is
the value of VERBOSE.

Signed-off-by: Nicolas Palix &amp;lt;nicolas.palix&amp;lt; at &amp;gt;imag.fr&amp;gt;
---
 scripts/coccicheck |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/coccicheck b/scripts/coccicheck
index 85d3189..7f0d6a6 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -72,7 +72,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; coccinelle () {
 #
 #    $SPATCH -D $MODE $FLAGS -parse_cocci $COCCI $OPT &amp;gt; /dev/null
 
-    if [ $VERBOSE -ne 0 ] ; then
+    if [ $VERBOSE -ne 0 -a $ONLINE -eq 0 ] ; then
 
 FILE=`echo $COCCI | sed "s|$srctree/||"`
 
&lt;/pre&gt;</description>
    <dc:creator>Nicolas Palix</dc:creator>
    <dc:date>2013-03-02T21:36:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/3001">
    <title>1.0.0-rc16: Further fine-tuning for the build system?</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/3001</link>
    <description>&lt;pre&gt;Hello,

I try to regenerate your current software from the Git repository on my openSUSE
system. I stumble on the following issue.

elfring&amp;lt; at &amp;gt;Sonne:~/Projekte/Coccinelle/Bau&amp;gt; ../lokal/configure --enable-opt
--enable-ocaml --enable-python --enable-release
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
configure: configuring coccinelle 1.0.0-rc15 in
/home/elfring/Projekte/Coccinelle/Bau
...
configure: configuring package menhirLib
checking for OCaml findlib package menhirLib... not found
configure: OCaml package menhirLib is not available
checking for a bundled substitute of menhirLib... not available
configure: error: OCaml package menhirLib is required. Please make sure it is
available.


This library is installed under the directory "/usr/local/share/menhir" and is
found if I let the configuration script run while the source "lokal" is also the
working directory.
Would you like to adjust any configuration checks to support an
"out-of-source-tree build"? (How do you think about to stor&lt;/pre&gt;</description>
    <dc:creator>SF Markus Elfring</dc:creator>
    <dc:date>2013-03-02T21:02:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/2993">
    <title>[Coccinellery] drop_continue/cont.cocci broken ?</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/2993</link>
    <description>&lt;pre&gt;Hi!

I think the drop_continue/cont.cocci script is broken. Here is a simple 
semantic patch extracted from it:


$ cat foo.cocci
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
statement S;
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
for (...;...;...) {
   ...
   if (...)
- {
     S
-   continue;
- }
}


A simple C file:

$ cat continue.c
static void
foo(int max)
{
int i;
for (i = 0; i &amp;lt; max; i++) {
do_stuff();
if (i == 42) {
do_stg_else();
continue;
}
}
}

$ spatch -sp_file foo.cocci continue.c --debug --verbose-parsing
init_defs_builtins: /home/cyril/opt/spatch/share/coccinelle/standard.h
-----------------------------------------------------------------------
processing semantic patch file: foo.cocci
with isos from: /home/cyril/opt/spatch/share/coccinelle/standard.iso
-----------------------------------------------------------------------
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
statement S;
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
for (...;...;...) {
   ...
   if (...)
- {
     S
-   continue;
- }
}

warning: iso braces1 does not match the code below on line 4
{
   ...
   if (...) {
     S
     continue;
   }
}
braces must be all minus (plus code a&lt;/pre&gt;</description>
    <dc:creator>Cyril Roelandt</dc:creator>
    <dc:date>2013-02-19T20:44:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/2989">
    <title>Wrong --parse-c stats</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/2989</link>
    <description>&lt;pre&gt;Hello,

not sure if somebody is interested: while running --parse-c on the Wine
source I've noticed impossible stats for 3 C files. As those are test
files those are heavy macro (ab)users.

dlls/quartz/tests/dsoundrender.c
http://source.winehq.org/git/wine.git/blob_plain/HEAD:/dlls/quartz/tests/dsoundrender.c
NB total files = 1; perfect = 0; pbs = 0; timeout = 0; =========&amp;gt; 0%
nb good = 1124,  nb passed = 25 =========&amp;gt; 2.224199% passed
nb good = 1124,  nb bad = -891 =========&amp;gt; 482.403433% good


dlls/quartz/tests/videorenderer.c
http://source.winehq.org/git/wine.git/blob_plain/HEAD:/dlls/quartz/tests/videorenderer.c
NB total files = 1; perfect = 0; pbs = 0; timeout = 0; =========&amp;gt; 0%
nb good = 522,  nb passed = 20 =========&amp;gt; 3.831418% passed
nb good = 522,  nb bad = -358 =========&amp;gt; 318.292683% good


dlls/msxml3/tests/domdoc.c
http://source.winehq.org/git/wine.git/blob_plain/HEAD:/dlls/msxml3/tests/domdoc.c
NB total files = 1; perfect = 0; pbs = 0; timeout = 0; =========&amp;gt; 0%
nb good = 135789,  nb passed = 10&lt;/pre&gt;</description>
    <dc:creator>Michael Stefaniuc</dc:creator>
    <dc:date>2013-02-07T21:46:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/2986">
    <title>C parse error: multiplication with pointer dereference</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/2986</link>
    <description>&lt;pre&gt;Hello!

I get this parse error for the attached test case:
spatch --parse-c foo.c 2&amp;gt;&amp;amp;1 | grep BAD
BAD:!!!!!     return i * *j;

gcc -Wall -Werror has no issues with it.


thanks
bye
michael
&lt;/pre&gt;</description>
    <dc:creator>Michael Stefaniuc</dc:creator>
    <dc:date>2013-02-06T09:41:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/2971">
    <title>Dangling whitespace on added newlines</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/2971</link>
    <description>&lt;pre&gt;Hello,

when coccinelle automatically adds a newline after removing "{}" the
added newline has dangling whitespace corresponding to the indentation
level. Please see the attached test case and generated patch.

thanks
bye
michael
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
identifier mem;
statement S;
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 mem = malloc(...);
 if (mem == NULL)
-{
-    ERR(...);
     S
-}
&lt;/pre&gt;</description>
    <dc:creator>Michael Stefaniuc</dc:creator>
    <dc:date>2013-01-29T21:10:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/2954">
    <title>[PATCH V2] scripts/coccinelle/misc/memcpy-assign.cocci:Replace memcpy with struct assignment</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/2954</link>
    <description>&lt;pre&gt;There are error-prone memcpy() that can be replaced by struct
assignment that are type-safe and much easier to read. This semantic
patch looks for memcpy() that can be replaced by struct assignment.

Inspired by patches sent by Ezequiel Garcia &amp;lt;elezegarcia&amp;lt; at &amp;gt;gmail.com&amp;gt;

Signed-off-by: Peter Senna Tschudin &amp;lt;peter.senna&amp;lt; at &amp;gt;gmail.com&amp;gt;
---
Changes from V1:
 Updated commit message
 Changed Confidence comment to High on the semantic patch

 scripts/coccinelle/misc/memcpy-assign.cocci | 103 ++++++++++++++++++++++++++++
 1 file changed, 103 insertions(+)
 create mode 100644 scripts/coccinelle/misc/memcpy-assign.cocci

diff --git a/scripts/coccinelle/misc/memcpy-assign.cocci b/scripts/coccinelle/misc/memcpy-assign.cocci
new file mode 100644
index 0000000..afd058b
--- /dev/null
+++ b/scripts/coccinelle/misc/memcpy-assign.cocci
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -0,0 +1,103 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
+//
+// Replace memcpy with struct assignment.
+//
+// Confidence: High
+// Copyright: (C) 2012 Peter Senna Tschudin, INRIA/LIP6.  GPLv2.
+// URL: http://coccinelle.lip6.fr/
+// Com&lt;/pre&gt;</description>
    <dc:creator>Peter Senna Tschudin</dc:creator>
    <dc:date>2013-01-23T22:06:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.version-control.coccinelle/2943">
    <title>Two identical declarer macros handled differently</title>
    <link>http://comments.gmane.org/gmane.comp.version-control.coccinelle/2943</link>
    <description>&lt;pre&gt;Hi list. I started writing a script to be a grep for a declarer macro and
print its arguments. For one of the source files however, it produced
a false positive by printing arguments for another declarer macro as
well. Investigating this, I found the following which I think is at
least related, if not the same issue.

With the following two identical D1 and D2 macros, coccinelle fails to
handle D1.

$ more declarer_test.c declarer_test-d2.cocci
::::::::::::::
declarer_test.c
::::::::::::::

static void foo(void *arg)
{
}
D1(foo, 0, 0, 0, 0);

static void bar(void *arg)
{
}
D2(bar, 0, 0, 0, 0);

::::::::::::::
declarer_test-d2.cocci
::::::::::::::
&amp;lt; at &amp;gt;r&amp;lt; at &amp;gt;
declarer name D1;
declarer name D2;
expression E1, E2, E3, E4, E5;
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
        D2(E1, E2, E3, E4, E5);

&amp;lt; at &amp;gt;script:python&amp;lt; at &amp;gt;
e1 &amp;lt;&amp;lt; r.E1;
e2 &amp;lt;&amp;lt; r.E2;
e3 &amp;lt;&amp;lt; r.E3;
e4 &amp;lt;&amp;lt; r.E4;
e5 &amp;lt;&amp;lt; r.E5;
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
print "MATCH: 1: %s, 2: %s, 3: %s, 4: %s, 5: %s" % (e1, e2, e3, e4, e5)

$ spatch --sp-file declarer_test-d2.cocci declarer_test.c
init_defs_builtins: /usr/share/coccinelle/standar&lt;/pre&gt;</description>
    <dc:creator>Håkon Løvdal</dc:creator>
    <dc:date>2013-01-15T16:14:54</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.version-control.coccinelle">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.version-control.coccinelle</link>
  </textinput>
</rdf:RDF>
