os,net: cleanup deprecated @VROOT usages
parent
b343f19bec
commit
7bd145d88a
|
@ -3,7 +3,7 @@ module net
|
||||||
$if windows {
|
$if windows {
|
||||||
// This is mainly here for tcc on windows
|
// This is mainly here for tcc on windows
|
||||||
// which apparently doesnt have this definition
|
// which apparently doesnt have this definition
|
||||||
#include "@VROOT/vlib/net/ipv6_v6only.h"
|
#include "@VMODROOT/vlib/net/ipv6_v6only.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Select represents a select operation
|
// Select represents a select operation
|
||||||
|
|
|
@ -7,7 +7,7 @@ $if windows {
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <afunix.h>
|
#include <afunix.h>
|
||||||
} $else {
|
} $else {
|
||||||
#include "@VROOT/vlib/net/afunix.h"
|
#include "@VMODROOT/vlib/net/afunix.h"
|
||||||
}
|
}
|
||||||
} $else {
|
} $else {
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
|
|
|
@ -495,7 +495,6 @@ pub fn walk(path string, f fn (string)) {
|
||||||
pub fn log(s string) {
|
pub fn log(s string) {
|
||||||
//$if macos {
|
//$if macos {
|
||||||
// Use NSLog() on macos
|
// Use NSLog() on macos
|
||||||
// C.darwin_log(s)
|
|
||||||
//} $else {
|
//} $else {
|
||||||
println('os.log: ' + s)
|
println('os.log: ' + s)
|
||||||
//}
|
//}
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
// that can be found in the LICENSE file.
|
// that can be found in the LICENSE file.
|
||||||
module os
|
module os
|
||||||
|
|
||||||
#include "@VROOT/vlib/os/os_darwin.m"
|
|
||||||
|
|
||||||
pub const (
|
pub const (
|
||||||
sys_write = 4
|
sys_write = 4
|
||||||
sys_open = 5
|
sys_open = 5
|
||||||
|
@ -14,5 +12,3 @@ pub const (
|
||||||
sys_open_nocancel = 398
|
sys_open_nocancel = 398
|
||||||
sys_stat64 = 338
|
sys_stat64 = 338
|
||||||
)
|
)
|
||||||
|
|
||||||
fn C.darwin_log(s string)
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
/*
|
|
||||||
NSString* nsstring(string s);
|
|
||||||
|
|
||||||
void darwin_log(string s) {
|
|
||||||
NSLog(nsstring(s));
|
|
||||||
}
|
|
||||||
*/
|
|
|
@ -1,8 +1,8 @@
|
||||||
// comment above HashStmt
|
// comment above HashStmt
|
||||||
#flag -I @VROOT/c
|
#flag -I @VMODROOT/c
|
||||||
#flag @VROOT/c/implementation.o
|
#flag @VMODROOT/c/implementation.o
|
||||||
|
|
||||||
#include "@VROOT/c/implementation.h"
|
#include "@VMODROOT/c/implementation.h"
|
||||||
|
|
||||||
// comment between with newlines around
|
// comment between with newlines around
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// vtest retry: 4
|
||||||
import sync
|
import sync
|
||||||
|
|
||||||
fn one() int {
|
fn one() int {
|
||||||
|
|
Loading…
Reference in New Issue