I accidentally wrote the macro file as:

#define MCAPI_THREAD_ENTRY(x) int f (x)

Surprisingly, it seemed to work much better.  I will try to figure out the 
problem, but inthe meantime, you may want to try this strange solution.

julia




On Fri, 18 Feb 2011, Leino, Tammy wrote:

> Hello,
> 
> I am facing a problem with a Coccinelle script I wrote, and I was hoping to 
> get some advice please.
> 
> The purpose of the script is to reorder the last two parameters of 
> mcapi_wait_any() both in the function declaration and in usage.  When I 
> execute the script, it reorders the parameters properly except for one 
> condition – it does not reorder the first instance it finds in 
> fts_mcapi_wait_any.c.  I have changed the order of the functions in the file, 
> and it always misses the very first instance, regardless of which function is 
> declared first.
> 
> Any advice on this problem would be greatly appreciated.
> 
> I am executing the following command line:
> 
> spatch -sp_file rename.cocci openmcapi/test/1/fts_mcapi_wait_any2.c 
> -macro_file defs.h > rename.patch
> 
> The script and supporting files are attached.  Thank you very much.
> 
> 
> Regards,
> Tammy Leino
> 
>  
> Tammy Leino | Sr. Software Development Engineer
> Mentor Embedded™ |739 N University Blvd, Mobile, AL 36608 USA
> P 251.208.3511
> Nucleus® | Linux® | Android™ | Services | UI | Multi-OS
> 
> 
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to