summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_utils.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-04-04 09:44:12 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-04-04 09:44:12 +0000
commit32089106fa10eba08e946693cb2939a4ab293f77 (patch)
tree102d714e16eb4d5c8da2a6a34d497ad10724c35f /plugins/MirLua/src/mlua_utils.cpp
parente1110157f8c2989a58aa12ddeef91669525d188f (diff)
MirLua:
- no need to copy pointer data in MT - project cleanup - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@16584 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_utils.cpp')
-rw-r--r--plugins/MirLua/src/mlua_utils.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/plugins/MirLua/src/mlua_utils.cpp b/plugins/MirLua/src/mlua_utils.cpp
index 7bd46d4db2..7d4515bede 100644
--- a/plugins/MirLua/src/mlua_utils.cpp
+++ b/plugins/MirLua/src/mlua_utils.cpp
@@ -90,7 +90,7 @@ int luaM_print(lua_State *L)
int luaM_toansi(lua_State *L)
{
- const char* value = luaL_checkstring(L, 1);
+ const char *value = luaL_checkstring(L, 1);
int codepage = luaL_optinteger(L, 2, Langpack_GetDefaultCodePage());
ptrA string(mir_strdup(value));
@@ -101,7 +101,7 @@ int luaM_toansi(lua_State *L)
int luaM_toucs2(lua_State *L)
{
- const char* value = luaL_checkstring(L, 1);
+ const char *value = luaL_checkstring(L, 1);
ptrW unicode(mir_utf8decodeW(value));
size_t length = mir_wstrlen(unicode) * sizeof(wchar_t);
@@ -121,22 +121,6 @@ bool luaM_toboolean(lua_State *L, int idx)
return lua_toboolean(L, idx) > 0;
}
-int luaM_totable(lua_State *L)
-{
- const char *tname = luaL_checkstring(L, 2);
-
- char message[256];
- mir_snprintf(message, "Use %s(...) instead", tname);
- ObsoleteMethod(L, message);
-
- luaL_getmetatable(L, tname);
- lua_getfield(L, -1, "__call");
- lua_pushvalue(L, 1);
- luaM_pcall(L, 1, 1);
-
- return 1;
-}
-
int luaM_ptr2number(lua_State *L)
{
luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);