mirror of
https://github.com/vlang/v.git
synced 2025-09-11 16:36:20 -04:00
os: deprecate os.open_stdin in favor of os.stdin (#9989)
This commit is contained in:
parent
ae898e77c5
commit
4ba11b7752
@ -131,8 +131,14 @@ pub fn create(path string) ?File {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// open_stdin - return an os.File for stdin, so that you can use .get_line on it too.
|
[deprecated: 'use os.stdin() instead']
|
||||||
|
[deprecated_after: '2021-05-17']
|
||||||
pub fn open_stdin() File {
|
pub fn open_stdin() File {
|
||||||
|
return stdin()
|
||||||
|
}
|
||||||
|
|
||||||
|
// stdin - return an os.File for stdin, so that you can use .get_line on it too.
|
||||||
|
pub fn stdin() File {
|
||||||
return File{
|
return File{
|
||||||
fd: 0
|
fd: 0
|
||||||
cfile: C.stdin
|
cfile: C.stdin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user