On Mon, 5 Jul 2010, Lucas De Marchi wrote:

> On Sat, Jul 3, 2010 at 7:00 PM, Julia Lawall <[email protected]> wrote:
> > I suspect that the parser may be quite insistent about finding the ( after
> > the first word after #define.  The definition for __UNUSED__ may be taken
> > into account later.  I will take a look tomorrow.
> 
> I didn't understand what you said about 'finding the ( after the first
> word after #define' since my define is like this:
> 
> #define __UNUSED__

sorry.  Ignore what I said; it was completely off track.

> I successfully committed a change to Ecore using Coccinelle
> (http://trac.enlightenment.org/e/changeset/49985/trunk) but I found
> this problem with this file later because someone manually fixed a
> couple of missing changes
> (http://trac.enlightenment.org/e/changeset/50007/trunk).

One solution is to add #define __UNUSED__ to your standard.h.  Then the 
problem will disappear.  The file provided with -macro_file seems to be 
treated differently from the basic macro file in a way that I do not yet 
completely understand.

The problem would also have gone away if __UNUSED__ were before the 
variable name, so it seems ot be some special case.

julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to