1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: improve pub struct check (fix #14446) (#14777)

This commit is contained in:
yuyi
2022-06-19 22:42:22 +08:00
committed by GitHub
parent 37ef1ee453
commit de136f6baf
33 changed files with 115 additions and 95 deletions

View File

@@ -2,7 +2,7 @@ module net
const max_unix_path = 104
struct C.addrinfo {
pub struct C.addrinfo {
mut:
ai_family int
ai_socktype int
@@ -14,21 +14,21 @@ mut:
ai_next voidptr
}
struct C.sockaddr_in {
pub struct C.sockaddr_in {
mut:
sin_family u8
sin_port u16
sin_addr u32
}
struct C.sockaddr_in6 {
pub struct C.sockaddr_in6 {
mut:
sin6_family u8
sin6_port u16
sin6_addr [4]u32
}
struct C.sockaddr_un {
pub struct C.sockaddr_un {
mut:
sun_family u8
sun_path [max_unix_path]char