[Cocci] Unwanted empty lines

Julia Lawall julia at diku.dk
Tue Mar 30 21:50:53 CEST 2010


The following patch fixes the empty line problem.

julia

diff -u -p a/parsing_c/unparse_c.ml b/parsing_c/unparse_c.ml
--- a/parsing_c/unparse_c.ml
+++ b/parsing_c/unparse_c.ml
@@ -638,7 +638,7 @@ let remove_minus_and_between_and_expande
 	    @ (adjust_within_minus cp (t2::xs))
 	| (T2(_,Min adj2,_) as t2)::xs ->
 	    let is_whitespace_or_plus = function
-		(T2 _) as x -> is_space x
+		(T2 _) as x -> is_whitespace x
 	      | _ -> true (*plus*) in
 	    if List.for_all is_whitespace_or_plus not_minus_list
 	    then


More information about the Cocci mailing list