mirror of
https://github.com/neovim/neovim.git
synced 2026-02-04 03:21:29 +10:00
refactor: saner options for uncrustify #16196
* refactor: general good option changes sp_deref = remove sp_not = remove sp_inv = remove sp_inside_paren_cast = remove mod_remove_duplicate_include = true sp_after_semi = add sp_after_semi_for = force sp_sizeof_paren = remove nl_return_expr = remove nl_else_brace = remove nl_else_if = remove * refactor: mod_remove_extra_semicolon = true * refactor: nl_max = 3 * refactor: sp_bool = force * refactor: sp_compare = force * refactor: sp_inside_paren = remove * refactor: sp_paren_paren = remove * refactor: sp_inside_sparen = remove * refactor: sp_before_sparen = force * refactor: sp_sign = remove * refactor: sp_addr = remove * refactor: sp_member = remove * refactor: nl_struct_brace = remove * refactor: nl_before_if_closing_paren = remove * refactor: nl_fdef_brace = force * refactor: sp_paren_comma = force * refactor: mod_full_brace_do = add
This commit is contained in:
@@ -229,7 +229,7 @@ static int nlua_str_utf_start(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
|
||||
const char *s1 = luaL_checklstring(lstate, 1, &s1_len);
|
||||
long offset = luaL_checkinteger(lstate, 2);
|
||||
if (offset < 0 || offset > (intptr_t)s1_len) {
|
||||
return luaL_error(lstate, "index out of range");
|
||||
return luaL_error(lstate, "index out of range");
|
||||
}
|
||||
int tail_offset = mb_head_off((char_u *)s1, (char_u *)s1 + (char_u)offset - 1);
|
||||
lua_pushinteger(lstate, tail_offset);
|
||||
@@ -249,7 +249,7 @@ static int nlua_str_utf_end(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
|
||||
const char *s1 = luaL_checklstring(lstate, 1, &s1_len);
|
||||
long offset = luaL_checkinteger(lstate, 2);
|
||||
if (offset < 0 || offset > (intptr_t)s1_len) {
|
||||
return luaL_error(lstate, "index out of range");
|
||||
return luaL_error(lstate, "index out of range");
|
||||
}
|
||||
int tail_offset = mb_tail_off((char_u *)s1, (char_u *)s1 + (char_u)offset - 1);
|
||||
lua_pushinteger(lstate, tail_offset);
|
||||
@@ -311,7 +311,8 @@ int nlua_regex(lua_State *lstate)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static dict_T *nlua_get_var_scope(lua_State *lstate) {
|
||||
static dict_T *nlua_get_var_scope(lua_State *lstate)
|
||||
{
|
||||
const char *scope = luaL_checkstring(lstate, 1);
|
||||
handle_T handle = (handle_T)luaL_checkinteger(lstate, 2);
|
||||
dict_T *dict = NULL;
|
||||
@@ -463,7 +464,6 @@ static int nlua_stricmp(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
|
||||
}
|
||||
|
||||
|
||||
|
||||
void nlua_state_add_stdlib(lua_State *const lstate)
|
||||
{
|
||||
// stricmp
|
||||
|
||||
Reference in New Issue
Block a user