openbsd-ports/devel/coccinelle/patches/patch-parsing_c_compare_c_ml
sthen 7901f74bbb import ports/net/coccinelle, help from kili@ and Amit Kulkarni.
tweak & ok mk@.

Coccinelle is a program matching and transformation engine which
provides the language SmPL (Semantic Patch Language) for specifying
desired matches and transformations in C code.

Coccinelle was initially targeted towards performing collateral
evolutions in Linux. Such evolutions comprise the changes that are
needed in client code in response to evolutions in library APIs, and may
include modifications such as renaming a function, adding a function
argument whose value is somehow context-dependent, and reorganizing a
data structure.

Beyond collateral evolutions, Coccinelle is successfully used (by INRIA
and others) for finding and fixing bugs in systems code.
2011-05-14 15:02:50 +00:00

28 lines
1.2 KiB
Plaintext

$OpenBSD: patch-parsing_c_compare_c_ml,v 1.1.1.1 2011/05/14 15:02:50 sthen Exp $
--- parsing_c/compare_c.ml.orig Thu May 5 20:04:22 2011
+++ parsing_c/compare_c.ml Thu May 5 20:06:39 2011
@@ -156,9 +156,9 @@ let compare_ast filename1 filename2 =
let xs =
match !Flag_parsing_c.diff_lines with
None ->
- Common.cmd_to_list ("diff -u -b -B "^filename1^ " " ^ filename2)
+ Common.cmd_to_list ("gdiff -u -b -B "^filename1^ " " ^ filename2)
| Some n ->
- Common.cmd_to_list ("diff -U "^n^" -b -B "^filename1^" "^filename2) in
+ Common.cmd_to_list ("gdiff -U "^n^" -b -B "^filename1^" "^filename2) in
(* get rid of the --- and +++ lines *)
let xs =
@@ -341,9 +341,9 @@ let do_compare_token adjust_cvs to_expected filename1
let xs =
match !Flag_parsing_c.diff_lines with
None ->
- Common.cmd_to_list ("diff -u -b -B "^filename1^ " " ^ filename2)
+ Common.cmd_to_list ("gdiff -u -b -B "^filename1^ " " ^ filename2)
| Some n ->
- Common.cmd_to_list ("diff -U "^n^" -b -B "^filename1^" "^filename2) in
+ Common.cmd_to_list ("gdiff -U "^n^" -b -B "^filename1^" "^filename2) in
(* get rid of the --- and +++ lines *)
let xs =