From 6a5233020f69a5b78bab3f81ecb714f4d3d966c4 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Tue, 24 Feb 2015 14:42:28 +0900 Subject: [PATCH] replace E_CHECK_XXX with EINA_SAFETY_ON_XXX Change-Id: I1e53ddc2c330db9b39588d442b0822c1107ea731 --- src/e_mod_atoms.c | 2 +- src/e_mod_utils.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/e_mod_atoms.c b/src/e_mod_atoms.c index 1938d86..169eae8 100644 --- a/src/e_mod_atoms.c +++ b/src/e_mod_atoms.c @@ -17,7 +17,7 @@ e_mod_pol_atoms_init(void) n = (sizeof(atom_names) / sizeof(char *)); atoms = E_NEW(Ecore_X_Atom, n); - E_CHECK_GOTO(atoms, cleanup); + EINA_SAFETY_ON_NULL_GOTO(atoms, cleanup); ecore_x_atoms_get(atom_names, n, atoms); diff --git a/src/e_mod_utils.h b/src/e_mod_utils.h index b7ea683..256c5f5 100644 --- a/src/e_mod_utils.h +++ b/src/e_mod_utils.h @@ -1,8 +1,4 @@ #ifndef E_MOD_UTILS_H #define E_MOD_UTILS_H -#define E_CHECK(x) do {if (!(x)) return; } while(0) -#define E_CHECK_RETURN(x, r) do {if (!(x)) return (r);} while(0) -#define E_CHECK_GOTO(x, l) do {if (!(x)) goto l; } while(0) - #endif -- 2.7.4