From ef701a4dce8b7d9a663e084d1fc0b243ddae9397 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 10 Nov 2025 23:20:11 +0800 Subject: format core code again --- core/src/xmake/string/split.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/src/xmake/string/split.c') diff --git a/core/src/xmake/string/split.c b/core/src/xmake/string/split.c index 5ca0c92bb..03c5f04fa 100644 --- a/core/src/xmake/string/split.c +++ b/core/src/xmake/string/split.c @@ -40,7 +40,7 @@ static tb_void_t xm_string_split_str(lua_State *lua, tb_size_t ndls, tb_bool_t strict, tb_int_t limit) { - tb_int_t num = 0; + tb_int_t num = 0; tb_char_t const *end = cstr + nstr; tb_char_t const *pos = tb_strstr(cstr, cdls); // faster than tb_strnstr() while (pos && pos < end) { @@ -66,7 +66,7 @@ static tb_void_t xm_string_split_str(lua_State *lua, } static tb_void_t xm_string_split_chr( lua_State *lua, tb_char_t const *cstr, tb_size_t nstr, tb_char_t ch, tb_bool_t strict, tb_int_t limit) { - tb_int_t num = 0; + tb_int_t num = 0; tb_char_t const *end = cstr + nstr; tb_char_t const *pos = tb_strchr(cstr, ch); // faster than tb_strnchr() while (pos && pos < end) { @@ -106,11 +106,11 @@ tb_int_t xm_string_split(lua_State *lua) { tb_assert_and_check_return_val(lua, 0); // get string - size_t nstr = 0; + size_t nstr = 0; tb_char_t const *cstr = luaL_checklstring(lua, 1, &nstr); // get delimiter - size_t ndls = 0; + size_t ndls = 0; tb_char_t const *cdls = luaL_checklstring(lua, 2, &ndls); // is strict? -- cgit v1.3.1