On 2011/08/28 13:17, Julia Lawall wrote:
> On Sun, 28 Aug 2011, Stuart Henderson wrote:
> 
> > On 2011/08/28 06:50, Julia Lawall wrote:
> > > Could you try running eg the first one outside of the testall framework.  
> > > Ie just spatch -sp tests/incpos.cocci tests/incpos.c ?  Perhaps it will 
> > > give more information about where the problem occurs.
> > 
> > $ spatch -sp tests/incpos.cocci tests/incpos.c 
> 
> -sp_file
> 
> The -sp option has been changed so that it interprets the subsequent 
> string as semantic patch.

Ah sorry, I should have spotted that.
This is correct isn't it?

$ spatch -sp_file tests/incpos.cocci tests/incpos.c                       
init_defs_builtins: /usr/local/share/coccinelle/standard.h
HANDLING: tests/incpos.c
keeping first hdr 1
dropping first hdr
dropping first hdr
dropping second hdr
dropping second hdr
diff = 
--- tests/incpos.c
+++ /tmp/cocci-output-16316-959a11-incpos.c
@@ -1,3 +1,4 @@
+#include <foo.h>
 #include <one>
 #include "two"
 #include <three>

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

Reply via email to