On Fri, 2 Mar 2012, ron minnich wrote:

Now, to match this one, I've tried quite a number of things, all of
which fail ...

#define INTEL_VGA_DEVICE(id, info) {            \
       .class = PCI_CLASS_DISPLAY_VGA << 8,    \
       .class_mask = 0xff0000,                 \
       .vendor = 0x8086,                       \
       .device = id,                           \
       .subvendor = PCI_ANY_ID,                \
       .subdevice = PCI_ANY_ID,                \
       .driver_data = (unsigned long) info }

any thoughts on this one :-)

I don't think it will be possible. Only statements and expressions are supported, I think, and { ... } is an initializer.

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

Reply via email to