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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user