From 1a7ecda67c4a74527415ce558fbefd233295d5f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E8=8B=B1=E6=9D=B0?= <2635879218@qq.com> Date: Fri, 26 Jul 2024 09:37:17 +0800 Subject: [PATCH] refactor(c-libuv): Separate third-party libraries from standard libraries --- c/libuv/error.go | 3 ++- c/libuv/fs.go | 3 ++- c/libuv/libuv.go | 3 ++- c/libuv/net.go | 3 ++- c/libuv/signal.go | 3 ++- c/libuv/timer.go | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/c/libuv/error.go b/c/libuv/error.go index 3b67a22b..309604e4 100644 --- a/c/libuv/error.go +++ b/c/libuv/error.go @@ -1,10 +1,11 @@ package libuv import ( + _ "unsafe" + "github.com/goplus/llgo/c" "github.com/goplus/llgo/c/net" "github.com/goplus/llgo/c/syscall" - _ "unsafe" ) const ( diff --git a/c/libuv/fs.go b/c/libuv/fs.go index 0de0a458..42afbe8a 100644 --- a/c/libuv/fs.go +++ b/c/libuv/fs.go @@ -1,8 +1,9 @@ package libuv import ( - "github.com/goplus/llgo/c" _ "unsafe" + + "github.com/goplus/llgo/c" ) const ( diff --git a/c/libuv/libuv.go b/c/libuv/libuv.go index 11a36700..ff1c7c78 100644 --- a/c/libuv/libuv.go +++ b/c/libuv/libuv.go @@ -1,9 +1,10 @@ package libuv import ( + _ "unsafe" + "github.com/goplus/llgo/c" "github.com/goplus/llgo/c/net" - _ "unsafe" ) const ( diff --git a/c/libuv/net.go b/c/libuv/net.go index 3fbb8f96..28cf10b6 100644 --- a/c/libuv/net.go +++ b/c/libuv/net.go @@ -1,9 +1,10 @@ package libuv import ( + _ "unsafe" + "github.com/goplus/llgo/c" "github.com/goplus/llgo/c/net" - _ "unsafe" ) const ( diff --git a/c/libuv/signal.go b/c/libuv/signal.go index 8aad3b0e..a3ede8ff 100644 --- a/c/libuv/signal.go +++ b/c/libuv/signal.go @@ -1,8 +1,9 @@ package libuv import ( - "github.com/goplus/llgo/c" _ "unsafe" + + "github.com/goplus/llgo/c" ) /* Handle types. */ diff --git a/c/libuv/timer.go b/c/libuv/timer.go index feeabe5a..98970402 100644 --- a/c/libuv/timer.go +++ b/c/libuv/timer.go @@ -1,8 +1,9 @@ package libuv import ( - "github.com/goplus/llgo/c" _ "unsafe" + + "github.com/goplus/llgo/c" ) // ----------------------------------------------