Edje Lua: remove ugly FMT_* compatibility strings as Evil has now POSIX printf family...
authoronefang <onefang>
Fri, 17 Feb 2012 21:59:10 +0000 (21:59 +0000)
committeronefang <onefang@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 17 Feb 2012 21:59:10 +0000 (21:59 +0000)
As per caro's commits.  Not actually tested under Windows, my WiMo phone doesn't quite have what it takes to compile EFL.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@68093 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_lua2.c

index 1d167e9..05e8eea 100644 (file)
@@ -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;
 }