diff options
| author | ruki <[email protected]> | 2022-09-17 00:50:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-09-17 00:50:14 +0800 |
| commit | d3f1407d8d43b853a841ca438b8c28758849c473 (patch) | |
| tree | a1fc430169feb8a49da7cd54aaf978ba00374c05 | |
| parent | 0a1fcc353eb60d54903cc505b197a6c6063b3842 (diff) | |
format code
| -rw-r--r-- | core/src/xmake/os/rename.c | 4 | ||||
| -rw-r--r-- | core/src/xmake/os/rmfile.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/core/src/xmake/os/rename.c b/core/src/xmake/os/rename.c index 438b61f05..e60afbc00 100644 --- a/core/src/xmake/os/rename.c +++ b/core/src/xmake/os/rename.c @@ -43,9 +43,7 @@ tb_int_t xm_os_rename(lua_State* lua) tb_char_t const* dst = luaL_checkstring(lua, 2); tb_check_return_val(src && dst, 0); - // done os.rename(src, dst) + // do rename lua_pushboolean(lua, tb_file_rename(src, dst)); - - // ok return 1; } diff --git a/core/src/xmake/os/rmfile.c b/core/src/xmake/os/rmfile.c index 194be2aea..ece572bad 100644 --- a/core/src/xmake/os/rmfile.c +++ b/core/src/xmake/os/rmfile.c @@ -42,9 +42,7 @@ tb_int_t xm_os_rmfile(lua_State* lua) tb_char_t const* path = luaL_checkstring(lua, 1); tb_check_return_val(path, 0); - // done os.rmfile(path) + // do remove lua_pushboolean(lua, tb_file_remove(path)); - - // ok return 1; } |
