seoz pushed a commit to branch master.
commit 5dafc6ce9df5fa821c0f0e63526e23dd60c83228
Author: Daniel Juyung Seo <[email protected]>
Date: Wed May 29 20:42:30 2013 +0900
elm_priv.h: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as
recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
---
src/lib/elm_priv.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lib/elm_priv.h b/src/lib/elm_priv.h
index ddac2c0..1448318 100644
--- a/src/lib/elm_priv.h
+++ b/src/lib/elm_priv.h
@@ -150,7 +150,8 @@ extern const char *_elm_engines[];
#undef MAX
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
-#define ELM_FREE_FUNC(_h, _fn) do { if (_h) { _fn((void*)_h); _h = NULL; } }
while (0)
+#define ELM_FREE_FUNC(_h, _fn) do { if (_h) { _fn((void*)_h); _h = NULL; } }
while (0) // this will be removed
+#define ELM_SAFE_FREE(_h, _fn) do { if (_h) { _fn((void*)_h); _h = NULL; } }
while (0)
struct _Elm_Config
{
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1