From a6d33dd5fe06eeeda9298cecda35bc7456790f4f Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 11 Oct 2010 18:46:39 +0200 Subject: [PATCH] [tools] add a repository for semantic patches as reference --- tools/spatch/remove-gstrcmp.spatch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tools/spatch/remove-gstrcmp.spatch diff --git a/tools/spatch/remove-gstrcmp.spatch b/tools/spatch/remove-gstrcmp.spatch new file mode 100644 index 00000000..86fe971a --- /dev/null +++ b/tools/spatch/remove-gstrcmp.spatch @@ -0,0 +1,17 @@ +@@ +expression E,D; +@@ +- g_strcmp0(E,D) == 0 ++ lasso_strisequal(E,D) + +@@ +expression E,D; +@@ +- g_strcmp0(E,D) != 0 ++ lasso_strisnotequal(E,D) + +@@ +@@ + +- lasso_is_empty_string ++ lasso_strisempty