diff options
| author | ruki <[email protected]> | 2026-08-07 10:30:05 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-08-07 10:30:05 +0800 |
| commit | ad0d22ad5c7ca3dfc5fbb561e347d3aae67f07d1 (patch) | |
| tree | 18055b76f30053e68f02ad097ce27a6dca8c2ef9 | |
| parent | 71bc0ee880fa6be6452cbea2dddf00f45ff43c7e (diff) | |
| parent | 4fb5874898c4f7bc4ff5e9fe15f3ba7e5c3f02ed (diff) | |
Merge pull request #7693 from apocelipes/fix/deprecated
fix: fix deprecated warnings
| -rw-r--r-- | core/src/xmake/binutils/ar/extractlib.c | 2 | ||||
| -rw-r--r-- | core/src/xmake/binutils/extractlib.c | 2 | ||||
| -rw-r--r-- | core/src/xmake/io/file_close.c | 2 | ||||
| -rw-r--r-- | core/src/xmake/io/file_write.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/core/src/xmake/binutils/ar/extractlib.c b/core/src/xmake/binutils/ar/extractlib.c index d9629394a..830eb3275 100644 --- a/core/src/xmake/binutils/ar/extractlib.c +++ b/core/src/xmake/binutils/ar/extractlib.c @@ -212,7 +212,7 @@ tb_bool_t xm_binutils_ar_extract(tb_stream_ref_t istream, tb_char_t const *outpu ok = tb_false; } - tb_stream_clos(ostream); + tb_stream_close(ostream); tb_stream_exit(ostream); tb_check_break(ok); diff --git a/core/src/xmake/binutils/extractlib.c b/core/src/xmake/binutils/extractlib.c index fbfbacfef..735859ade 100644 --- a/core/src/xmake/binutils/extractlib.c +++ b/core/src/xmake/binutils/extractlib.c @@ -129,7 +129,7 @@ tb_int_t xm_binutils_extractlib(lua_State *lua) { } while (0); if (istream) { - tb_stream_clos(istream); + tb_stream_close(istream); tb_stream_exit(istream); } diff --git a/core/src/xmake/io/file_close.c b/core/src/xmake/io/file_close.c index bb5cf1060..303f9f002 100644 --- a/core/src/xmake/io/file_close.c +++ b/core/src/xmake/io/file_close.c @@ -68,7 +68,7 @@ tb_int_t xm_io_file_close(lua_State *lua) { } // close file - tb_stream_clos(file->u.file_ref); + tb_stream_close(file->u.file_ref); file->u.file_ref = tb_null; // exit fstream diff --git a/core/src/xmake/io/file_write.c b/core/src/xmake/io/file_write.c index fdfd5afe7..5f860d641 100644 --- a/core/src/xmake/io/file_write.c +++ b/core/src/xmake/io/file_write.c @@ -110,7 +110,7 @@ static tb_void_t xm_io_file_write_std(xm_io_file_t *file, tb_byte_t const *data, tb_check_return(type != XM_IO_FILE_TYPE_STDIN); // write data to stdout/stderr - tb_stdfile_writ(file->u.std_ref, data, size); + tb_stdfile_write(file->u.std_ref, data, size); } /* ////////////////////////////////////////////////////////////////////////////////////// |
