Преглед изворни кода

Coccinelle:tools/dev/experimental/function_call_termination_condition: do not specify the type of the "max" variable any more.

This fixes a bug that caused spatch to hang for ever. The patch will have to be edited before being committed, but that might be a good thing, since the name of the variable ("max") will probably not be good in most cases and will need to be changed.
Cyril Roelandt пре 14 година
родитељ
комит
916d1219f8
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      tools/dev/experimental/function_call_termination_condition.cocci

+ 1 - 2
tools/dev/experimental/function_call_termination_condition.cocci

@@ -67,13 +67,12 @@ p << r.p;
 coccilib.org.print_todo(p[0], orgmsg)
 
 @depends on r && patch@
-type r.t;
 expression r.E1, E2, E3;
 identifier r.it;
 position r.p;
 @@
 -for@p(it = E1; it < E3; E2) 
-+t max = E3;
++max = E3;
 +for(it = E1; it < max; E2)
 {
 ...