On 04/05/2011 05:14 PM, Jani Monoses wrote:
What is the most straightforward way of commenting out blocks of the form:


startBlock();
operation1();
...
operationn();
endBlock();

where startBlock()/endBlock() are the markers by putting them fully

Ok, this is what I tried and did not work - I may have created a non-standard patch because of the duplication in - and + areas.

@@ @@

-one();
+#ifdef 0
+one();

>>>>> Fatal error: exception Failure("1 plus things remaining")


However the next one works - to me it looks the same but cleaner, to Coccinelle it may be this is the only correct way to express what I wanted.

@@ @@

+#ifdef 0
one();

Jani

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

Reply via email to