> ack.  I tried to bind them to the md rule,
> both in metavar section, and in transform section.
> ie
> expression md.ct, md.name;
> -register_chrdev_region(devt, md.ct, md.name)
> 
> the errors suggested that was wrongheaded.

If you want to inherit a metavariable, the inheritance part only goes in
the metavariable declaration section.  Thus:

@@
expression md.ct, md.name;
@@

-register_chrdev_region(devt, ct, name)

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

Reply via email to