summaryrefslogtreecommitdiff
path: root/plugins/MirLua/Modules/WinAPI/src
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-01-08 11:48:55 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-01-08 11:48:55 +0000
commit3ac10dfb4e4a20b23c96151865846477d4843b19 (patch)
treefd9c2b607017c3883ddcf3301263af9ee9c71a52 /plugins/MirLua/Modules/WinAPI/src
parentac22f38b00333bc5e040bec7a7a3fe17440d39a9 (diff)
MirLua: winapi cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16060 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/Modules/WinAPI/src')
-rw-r--r--plugins/MirLua/Modules/WinAPI/src/stdafx.h2
-rw-r--r--plugins/MirLua/Modules/WinAPI/src/winapi.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/Modules/WinAPI/src/stdafx.h b/plugins/MirLua/Modules/WinAPI/src/stdafx.h
index 9b4664bd1f..f2207236e2 100644
--- a/plugins/MirLua/Modules/WinAPI/src/stdafx.h
+++ b/plugins/MirLua/Modules/WinAPI/src/stdafx.h
@@ -43,6 +43,7 @@
* NOTES
*
***/
+
#define LUA_WINAPI_LIB extern "C" int __declspec(dllexport)
#include <lua.hpp>
@@ -62,7 +63,6 @@
#include <sys/stat.h>
#include <sys/utime.h>
-
#include <m_core.h>
#include <m_utils.h>
diff --git a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp
index dbf564d210..c3aa9f4d0e 100644
--- a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp
+++ b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp
@@ -2142,14 +2142,14 @@ static luaL_Reg winApi[] =
{ NULL, NULL }
};
-LUA_WINAPI_LIB luaopen_WinAPI(lua_State *L)
+LUA_WINAPI_LIB luaopen_winapi(lua_State *L)
{
luaL_newlib(L, winApi);
for (size_t i = 0; consts[i].name != NULL; i++)
{
lua_pushstring(L, consts[i].name);
- lua_pushnumber(L, consts[i].value);
+ lua_pushnumber(L, consts[i].value);
lua_settable(L, -3);
}