1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00

core: fix some styles

This commit is contained in:
Sébastien Helleu
2018-01-07 09:11:45 +01:00
parent 91f792416b
commit 7ee88fb46c
58 changed files with 283 additions and 282 deletions
+3 -3
View File
@@ -405,7 +405,7 @@ weechat_lua_add_constant (lua_State *L, struct t_lua_const *ptr_const)
#else
lua_pushnumber (L, ptr_const->int_value);
#endif /* LUA_VERSION_NUM >= 503 */
lua_settable(L, -3);
lua_settable (L, -3);
}
/*
@@ -415,7 +415,7 @@ weechat_lua_add_constant (lua_State *L, struct t_lua_const *ptr_const)
int
weechat_lua_newindex (lua_State *L)
{
luaL_error(L, "Error: read-only constant");
luaL_error (L, "Error: read-only constant");
return 0;
}
@@ -514,7 +514,7 @@ weechat_lua_load (const char *filename, const char *code)
lua_current_script = NULL;
lua_registered_script = NULL;
lua_current_interpreter = luaL_newstate();
lua_current_interpreter = luaL_newstate ();
if (lua_current_interpreter == NULL)
{
+3 -3
View File
@@ -55,8 +55,8 @@ extern void *weechat_lua_exec (struct t_plugin_script *script,
int ret_type,
const char *function,
const char *format, void **argv);
extern void weechat_lua_register_lib(lua_State *L, const char *libname,
const luaL_Reg *lua_api_funcs,
struct t_lua_const lua_api_consts[]);
extern void weechat_lua_register_lib (lua_State *L, const char *libname,
const luaL_Reg *lua_api_funcs,
struct t_lua_const lua_api_consts[]);
#endif /* WEECHAT_PLUGIN_LUA_H */