From 34f4dcea9afc19dcaf929b0ef4170a6b6940ab42 Mon Sep 17 00:00:00 2001 From: scuri Date: Sun, 18 Jul 2010 03:04:23 +0000 Subject: *** empty log message *** --- src/lua5/imlua.c | 6 +++--- src/lua5/imlua_aux.c | 8 ++++---- src/lua5/imlua_capture.c | 4 ++-- src/lua5/imlua_file.c | 4 ++-- src/lua5/imlua_image.c | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/lua5/imlua.c b/src/lua5/imlua.c index 48224c2..af1834f 100644 --- a/src/lua5/imlua.c +++ b/src/lua5/imlua.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua.c,v 1.3 2010/06/07 20:59:32 scuri Exp $ + * $Id: imlua.c,v 1.4 2010/07/18 03:04:23 scuri Exp $ */ #include @@ -59,7 +59,7 @@ static int imluaFormatList (lua_State *L) imFormatList(format_list, &format_count); - lua_newtable(L); + lua_createtable(L, format_count, 0); for (i = 0; i < format_count; i++) { lua_pushstring(L, format_list[i]); @@ -110,7 +110,7 @@ static int imluaFormatCompressions (lua_State *L) if (error) return 1; - lua_newtable(L); + lua_createtable(L, comp_count, 0); for (i = 0; i < comp_count; i++) { lua_pushstring(L, comp[i]); diff --git a/src/lua5/imlua_aux.c b/src/lua5/imlua_aux.c index ef972b2..d74464b 100644 --- a/src/lua5/imlua_aux.c +++ b/src/lua5/imlua_aux.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_aux.c,v 1.4 2010/06/10 20:17:40 scuri Exp $ + * $Id: imlua_aux.c,v 1.5 2010/07/18 03:04:23 scuri Exp $ */ #include @@ -47,7 +47,7 @@ int imlua_getn (lua_State *L, int index) int imlua_newarrayint (lua_State *L, int *value, int count, int start) { int i; - lua_newtable(L); + lua_createtable(L, count, 0); for (i = 0; i < count; i++) { lua_pushinteger(L, value[i]); @@ -62,7 +62,7 @@ int imlua_newarrayint (lua_State *L, int *value, int count, int start) int imlua_newarrayulong (lua_State *L, unsigned long *value, int count, int start) { int i; - lua_newtable(L); + lua_createtable(L, count, 0); for (i = 0; i < count; i++) { lua_pushnumber(L, value[i]); @@ -77,7 +77,7 @@ int imlua_newarrayulong (lua_State *L, unsigned long *value, int count, int star int imlua_newarrayfloat (lua_State *L, float *value, int count, int start) { int i; - lua_newtable(L); + lua_createtable(L, count, 0); for (i = 0; i < count; i++) { lua_pushnumber(L, value[i]); diff --git a/src/lua5/imlua_capture.c b/src/lua5/imlua_capture.c index 181cbd0..fa35dea 100644 --- a/src/lua5/imlua_capture.c +++ b/src/lua5/imlua_capture.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_capture.c,v 1.4 2010/06/07 20:59:32 scuri Exp $ + * $Id: imlua_capture.c,v 1.5 2010/07/18 03:04:23 scuri Exp $ */ #include @@ -288,7 +288,7 @@ static int imluaVideoCaptureGetAttributeList (lua_State *L) int i; attribs = imVideoCaptureGetAttributeList(vc, &num_attrib); - lua_newtable(L); + lua_createtable(L, num_attrib, 0); for (i = 0; i < num_attrib; i++) { lua_pushstring(L, attribs[i]); diff --git a/src/lua5/imlua_file.c b/src/lua5/imlua_file.c index 066dd76..ac546b0 100644 --- a/src/lua5/imlua_file.c +++ b/src/lua5/imlua_file.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_file.c,v 1.2 2009/08/04 21:35:26 scuri Exp $ + * $Id: imlua_file.c,v 1.3 2010/07/18 03:04:23 scuri Exp $ */ #include @@ -467,7 +467,7 @@ static int imluaFileGetAttributeList (lua_State *L) imFileGetAttributeList(ifile, attrib, &attrib_count); - lua_newtable(L); + lua_createtable(L, attrib_count, 0); for (i = 0; i < attrib_count; i++) { lua_pushstring(L, attrib[i]); diff --git a/src/lua5/imlua_image.c b/src/lua5/imlua_image.c index f3c8855..5f84b97 100644 --- a/src/lua5/imlua_image.c +++ b/src/lua5/imlua_image.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_image.c,v 1.11 2010/06/07 20:59:32 scuri Exp $ + * $Id: imlua_image.c,v 1.12 2010/07/18 03:04:23 scuri Exp $ */ #include @@ -444,7 +444,7 @@ static int imluaImageGetAttributeList (lua_State *L) imImageGetAttributeList(image, attrib, &attrib_count); - lua_newtable(L); + lua_createtable(L, attrib_count, 0); for (i = 0; i < attrib_count; i++) { lua_pushstring(L, attrib[i]); -- cgit v1.2.3