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

os.notify: remove the meaningless [noinit] attribute of the notifier (#19075)

This commit is contained in:
shove 2023-08-07 14:19:54 +08:00 committed by GitHub
parent 07b36d69f3
commit 320057df1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View File

@ -21,14 +21,12 @@ fn C.EV_SET(voidptr, u32, i16, u16, u32, int, voidptr)
// KqueueNotifier provides methods that implement FdNotifier using the // KqueueNotifier provides methods that implement FdNotifier using the
// kqueue I/O event notification facility (macos, freeBSD, xxxBSD...unix only) // kqueue I/O event notification facility (macos, freeBSD, xxxBSD...unix only)
[noinit]
struct KqueueNotifier { struct KqueueNotifier {
kqueue_fd int kqueue_fd int
} }
// KqueueEvent describes an event that occurred for a file descriptor in // KqueueEvent describes an event that occurred for a file descriptor in
// the watch list // the watch list
[noinit]
struct KqueueEvent { struct KqueueEvent {
pub: pub:
fd int fd int

View File

@ -26,14 +26,12 @@ fn C.epoll_wait(int, &C.epoll_event, int, int) int
// EpollNotifier provides methods that implement FdNotifier using the // EpollNotifier provides methods that implement FdNotifier using the
// epoll I/O event notification facility (linux only) // epoll I/O event notification facility (linux only)
[noinit]
struct EpollNotifier { struct EpollNotifier {
epoll_fd int epoll_fd int
} }
// EpollEvent describes an event that occurred for a file descriptor in // EpollEvent describes an event that occurred for a file descriptor in
// the watch list // the watch list
[noinit]
struct EpollEvent { struct EpollEvent {
pub: pub:
fd int fd int