diff options
| author | apocelipes <[email protected]> | 2026-08-06 18:30:22 +0800 |
|---|---|---|
| committer | apocelipes <[email protected]> | 2026-08-06 18:30:22 +0800 |
| commit | 4fb5874898c4f7bc4ff5e9fe15f3ba7e5c3f02ed (patch) | |
| tree | ad133de97c075542a326aeb065acd80e810939b8 /core/src | |
| parent | 53c06b72cc8b1521aae266543aee634c917a030f (diff) | |
fix: fix deprecated warnings
Replace all functions marked as deprecated by tbox.
Diffstat (limited to 'core/src')
| -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); } /* ////////////////////////////////////////////////////////////////////////////////////// |
