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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user