From f253e4fabec7106573b43c44425b012bc3890cf6 Mon Sep 17 00:00:00 2001 From: hackerchai Date: Thu, 1 Aug 2024 10:27:59 +0800 Subject: [PATCH] Revert "fix(c/libuv): Add libuv fs struct new func" This reverts commit 5fdb0a9634b5ecc29ddd50b6e5cce9938bcb7934. # Conflicts: # c/libuv/_wrap/fs.c # c/libuv/fs.go --- c/libuv/_wrap/fs.c | 7 ------- c/libuv/fs.go | 7 ------- 2 files changed, 14 deletions(-) delete mode 100644 c/libuv/_wrap/fs.c diff --git a/c/libuv/_wrap/fs.c b/c/libuv/_wrap/fs.c deleted file mode 100644 index e3469edc..00000000 --- a/c/libuv/_wrap/fs.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#include - -uv_fs_t* uv_fs_new() { - uv_fs_t* req = malloc(sizeof(uv_fs_t)); - return req; -} \ No newline at end of file diff --git a/c/libuv/fs.go b/c/libuv/fs.go index 1c4dfc25..9bb8f57f 100644 --- a/c/libuv/fs.go +++ b/c/libuv/fs.go @@ -6,10 +6,6 @@ import ( "github.com/goplus/llgo/c" ) -const ( - LLGoFiles = "$(pkg-config --cflags libuv): _wrap/fs.c" -) - const ( FS_UNKNOWN FsType = -1 FS_CUSTOM FsType = 0 @@ -110,9 +106,6 @@ type FsPollCb func(handle *FsPoll, status c.Int, events c.Int) /* Fs related function and method */ -//go:linkname FsNew C.uv_fs_new -func FsNew() *Fs - //go:linkname FsGetType C.uv_fs_get_type func FsGetType(req *Fs) FsType