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/process | |
| parent | 6db4c62a474e380071625fa5cb7743972a562940 (diff) | |
format core code again
Diffstat (limited to 'core/src/xmake/process')
| -rw-r--r-- | core/src/xmake/process/open.c | 26 | ||||
| -rw-r--r-- | core/src/xmake/process/openv.c | 26 |
2 files changed, 26 insertions, 26 deletions
diff --git a/core/src/xmake/process/open.c b/core/src/xmake/process/open.c index 669e90ff1..b6cf272b2 100644 --- a/core/src/xmake/process/open.c +++ b/core/src/xmake/process/open.c @@ -45,25 +45,25 @@ tb_int_t xm_process_open(lua_State *lua) { tb_assert_and_check_return_val(lua, 0); // get command - size_t command_size = 0; - tb_char_t const *command = luaL_checklstring(lua, 1, &command_size); + size_t command_size = 0; + tb_char_t const *command = luaL_checklstring(lua, 1, &command_size); tb_check_return_val(command, 0); // init attributes tb_process_attr_t attr = { 0 }; // get option arguments - tb_size_t envn = 0; - tb_char_t const *envs[1024] = { 0 }; - tb_char_t const *inpath = tb_null; - tb_char_t const *outpath = tb_null; - tb_char_t const *errpath = tb_null; - xm_io_file_t *infile = tb_null; - xm_io_file_t *outfile = tb_null; - xm_io_file_t *errfile = tb_null; - tb_pipe_file_ref_t inpipe = tb_null; - tb_pipe_file_ref_t outpipe = tb_null; - tb_pipe_file_ref_t errpipe = tb_null; + tb_size_t envn = 0; + tb_char_t const *envs[1024] = { 0 }; + tb_char_t const *inpath = tb_null; + tb_char_t const *outpath = tb_null; + tb_char_t const *errpath = tb_null; + xm_io_file_t *infile = tb_null; + xm_io_file_t *outfile = tb_null; + xm_io_file_t *errfile = tb_null; + tb_pipe_file_ref_t inpipe = tb_null; + tb_pipe_file_ref_t outpipe = tb_null; + tb_pipe_file_ref_t errpipe = tb_null; if (lua_istable(lua, 2)) { // is detached? lua_pushstring(lua, "detach"); diff --git a/core/src/xmake/process/openv.c b/core/src/xmake/process/openv.c index 1b95c45fe..223d2d774 100644 --- a/core/src/xmake/process/openv.c +++ b/core/src/xmake/process/openv.c @@ -65,7 +65,7 @@ tb_int_t xm_process_openv(lua_State *lua) { tb_check_return_val(argn >= 0, 0); // get arguments - tb_size_t argi = 0; + tb_size_t argi = 0; tb_char_t const **argv = tb_nalloc0_type(1 + argn + 1, tb_char_t const *); tb_check_return_val(argv, 0); @@ -101,18 +101,18 @@ tb_int_t xm_process_openv(lua_State *lua) { tb_process_attr_t attr = { 0 }; // get option arguments - tb_bool_t exclusive = tb_false; - tb_size_t envn = 0; - tb_char_t const *envs[1024] = { 0 }; - tb_char_t const *inpath = tb_null; - tb_char_t const *outpath = tb_null; - tb_char_t const *errpath = tb_null; - xm_io_file_t *infile = tb_null; - xm_io_file_t *outfile = tb_null; - xm_io_file_t *errfile = tb_null; - tb_pipe_file_ref_t inpipe = tb_null; - tb_pipe_file_ref_t outpipe = tb_null; - tb_pipe_file_ref_t errpipe = tb_null; + tb_bool_t exclusive = tb_false; + tb_size_t envn = 0; + tb_char_t const *envs[1024] = { 0 }; + tb_char_t const *inpath = tb_null; + tb_char_t const *outpath = tb_null; + tb_char_t const *errpath = tb_null; + xm_io_file_t *infile = tb_null; + xm_io_file_t *outfile = tb_null; + xm_io_file_t *errfile = tb_null; + tb_pipe_file_ref_t inpipe = tb_null; + tb_pipe_file_ref_t outpipe = tb_null; + tb_pipe_file_ref_t errpipe = tb_null; if (lua_istable(lua, 3)) { // is detached? lua_pushstring(lua, "detach"); |
