瀏覽代碼

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 13 年之前
父節點
當前提交
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)
 {
 ...