From 0232c85ea93af938dc717f8a1e6dc7cbe6c5d105 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 17 Feb 2012 21:59:10 +0000 Subject: [PATCH] Edje Lua: remove ugly FMT_* compatibility strings as Evil has now POSIX printf family functions. As per caro's commits. Not actually tested under Windows, my WiMo phone doesn't quite have what it takes to compile EFL. SVN revision: 68093 --- legacy/edje/src/lib/edje_lua2.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/legacy/edje/src/lib/edje_lua2.c b/legacy/edje/src/lib/edje_lua2.c index 1d167e9eb4..05e8eea476 100644 --- a/legacy/edje/src/lib/edje_lua2.c +++ b/legacy/edje/src/lib/edje_lua2.c @@ -6,11 +6,6 @@ #define RASTER_FORGOT_WHY "this is here." -#ifdef _WIN32 -# define FMT_SIZE_T "%Iu" -#else -# define FMT_SIZE_T "%zu" -#endif //--------------------------------------------------------------------------// #define MAX_LUA_MEM (4 * (1024 * 1024)) @@ -216,7 +211,7 @@ _elua_alloc(void *ud, void *ptr, size_t osize, size_t nsize) ela->cur += nsize - osize; if (ela->cur > ela->max) { - ERR("Lua memory limit of " FMT_SIZE_T " bytes reached (" FMT_SIZE_T " allocated)", + ERR("Lua memory limit of %zu bytes reached (%zu allocated)", ela->max, ela->cur); return NULL; } @@ -228,7 +223,7 @@ _elua_alloc(void *ud, void *ptr, size_t osize, size_t nsize) ptr2 = realloc(ptr, nsize); if (ptr2) return ptr2; - ERR("Lua cannot re-allocate " FMT_SIZE_T " bytes", nsize); + ERR("Lua cannot re-allocate %zu bytes", nsize); return ptr2; }