You get a slightly better result by writing the switch as:
-switch(...) { case I: ... }
where I is an expression. This gets rid of most of a switch with any
number of cases. Unfortunately, it doesn't get rid of the closing }.
Switch has problems. I don't think I can fix it in the short term, so you
will have to consider whether you can live with getting rid of the }s
after the fact by hand.
julia
On Tue, 17 Apr 2012, ron minnich wrote:
I'm missing something ...
@@
type T;
statement S;
@@
T intel_crtc_dpms(...){
...
-switch(...)S
...
}
thanks
ron
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)