parent
b48b076dac
commit
f6147b7ac7
|
@ -723,16 +723,15 @@ fn new_v(args[]string) *V {
|
|||
}
|
||||
}
|
||||
else {
|
||||
_os = match target_os {
|
||||
'linux' => { OS.linux }
|
||||
'windows' => { OS.windows }
|
||||
'mac' => { OS.mac }
|
||||
'freebsd' => { OS.freebsd }
|
||||
'openbsd' => { OS.openbsd }
|
||||
'netbsd' => { OS.netbsd }
|
||||
'dragonfly' => { OS.dragonfly }
|
||||
'msvc' => { OS.msvc }
|
||||
else => { OS.linux }
|
||||
switch target_os {
|
||||
case 'linux': _os = .linux
|
||||
case 'windows': _os = .windows
|
||||
case 'mac': _os = .mac
|
||||
case 'freebsd': _os = .freebsd
|
||||
case 'openbsd': _os = .openbsd
|
||||
case 'netbsd': _os = .netbsd
|
||||
case 'dragonfly': _os = .dragonfly
|
||||
case 'msvc': _os = .msvc
|
||||
}
|
||||
}
|
||||
builtins := [
|
||||
|
|
|
@ -779,10 +779,6 @@ if p.scanner.line_comment != '' {
|
|||
}
|
||||
}
|
||||
|
||||
fn (p mut Parser) warn(s string) {
|
||||
println('warning: $p.file_name:$p.scanner.line_nr ' + s)
|
||||
}
|
||||
|
||||
fn (p mut Parser) error(s string) {
|
||||
// Dump all vars and types for debugging
|
||||
if p.pref.is_debug {
|
||||
|
@ -3290,7 +3286,6 @@ fn (p mut Parser) for_st() {
|
|||
|
||||
fn (p mut Parser) switch_statement() {
|
||||
if p.tok == .key_switch {
|
||||
//p.warn('`switch` was replaced `match`, it will be removed soon')
|
||||
p.check(.key_switch)
|
||||
} else {
|
||||
p.check(.key_match)
|
||||
|
|
Loading…
Reference in New Issue