diff options
| author | ruki <[email protected]> | 2025-11-10 23:20:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-10 23:20:11 +0800 |
| commit | ef701a4dce8b7d9a663e084d1fc0b243ddae9397 (patch) | |
| tree | 45fd20851dd3480bd042dd14af77286c4289d190 /core/src/xmake/string/split.c | |
| parent | 6db4c62a474e380071625fa5cb7743972a562940 (diff) | |
format core code again
Diffstat (limited to 'core/src/xmake/string/split.c')
| -rw-r--r-- | core/src/xmake/string/split.c | 8 |
1 files changed, 4 insertions, 4 deletions
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? |
