diff options
Diffstat (limited to 'core/src/xmake/process/open.c')
| -rw-r--r-- | core/src/xmake/process/open.c | 26 |
1 files changed, 13 insertions, 13 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"); |
