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

replace *Foo with &Foo everywhere

This commit is contained in:
Alexander Medvednikov
2019-09-01 22:51:16 +03:00
parent aaab24dcf8
commit 0e2c41e0f9
12 changed files with 52 additions and 50 deletions

View File

@@ -34,7 +34,7 @@ struct C.FILE {
}
struct File {
cfile *FILE
cfile &FILE
}
struct FileInfo {
@@ -87,7 +87,7 @@ fn C.sigaction(int, voidptr, int)
fn todo_remove(){}
fn init_os_args(argc int, argv *byteptr) []string {
fn init_os_args(argc int, argv &byteptr) []string {
mut args := []string
$if windows {
mut args_list := &voidptr(0)
@@ -308,7 +308,7 @@ pub fn (f File) close() {
// system starts the specified command, waits for it to complete, and returns its code.
fn popen(path string) *FILE {
fn popen(path string) &FILE {
$if windows {
mode := 'rb'
wpath := path.to_wide()
@@ -320,7 +320,7 @@ fn popen(path string) *FILE {
}
}
fn pclose(f *FILE) int {
fn pclose(f &FILE) int {
$if windows {
return C._pclose(f)
}