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

checker: make use of private enum from outside module an error. (#9821)

This commit is contained in:
zakuro
2021-04-22 13:07:56 +09:00
committed by GitHub
parent c85eefa5b2
commit 7443179cc8
15 changed files with 117 additions and 105 deletions

View File

@@ -1,6 +1,6 @@
module net
enum SocketOption {
pub enum SocketOption {
// TODO: SO_ACCEPT_CONN is not here becuase windows doesnt support it
// and there is no easy way to define it
@@ -28,10 +28,10 @@ enum SocketOption {
const (
opts_bool = [SocketOption.broadcast, .debug, .dont_route, .error, .keep_alive, .oob_inline]
opts_int = [
.recieve_buf_size,
.recieve_low_size,
.recieve_buf_size,
.recieve_low_size,
.recieve_timeout,
.send_buf_size,
.send_low_size,
.send_timeout,
@@ -39,15 +39,15 @@ const (
opts_can_set = [
SocketOption.broadcast,
.debug,
.dont_route,
.keep_alive,
.linger,
.oob_inline,
.recieve_buf_size,
.recieve_low_size,
.debug,
.dont_route,
.keep_alive,
.linger,
.oob_inline,
.recieve_buf_size,
.recieve_low_size,
.recieve_timeout,
.send_buf_size,
.send_low_size,
.send_timeout,