On Thu, 29 Dec 2011, SF Markus Elfring wrote:

Are there any special constraints to consider?

I don't think so.

I find that it would be sufficient for my initial "test case" that the target
metavariable get its data from the first rule that fits to the dependency
specification.

That's not going to be what happens.

But I imagine that it might be also interesting to know if a check on all
specified dependencies was performed. The data can eventually be accumulated
from each match.

It will just use all possible bindings of all variables, and execute the code once for each permutation, with no consideration of where the bindings come from.

I'm not sure that you will consider that to be a desirable result. If you want something else, you should do your code factorization by defining a function in the @initialize:python@ rule.

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

Reply via email to