I would like to try this out from the package "coccinelle 1.0.0-13.4" on my
openSUSE 12.1 system. But I stumble on the following messages.
@initialize:python@
[...]
@is_pass_through_candidate@
identifier function, input;
type data_type;
position pos;
@@
data_type@pos function(..., data_type input, ...);
@script:python collection depends on is_pass_through_candidate@
typ << is_pass_through_candidate.data_type;
fun << is_pass_through_candidate.function;
pt_param << is_pass_through_candidate.input;
places << is_pass_through_candidate.pos;
@@
store_positions(fun, typ, pt_param, places)
[...]
elfring@Sonne:~/Projekte/Coccinelle/lokal/demos/pass-through> spatch -sp_file
list_pass-through_candidates1.cocci pt1.c
init_defs_builtins: /usr/share/coccinelle/standard.h
866 874
Fatal error: exception Failure("scriptmeta: parse error:
= File "list_pass-through_candidates1.cocci", line 34, column 33, charpos =
866
around = 'function', whole content = fun <<
is_pass_through_candidate.function;
")
Shouldn't I dare to reuse such a "special name"?
Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)