mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: realpath => real_path
This commit is contained in:
@@ -176,7 +176,7 @@ fn (v mut V) new_parser_from_file(path string) Parser {
|
||||
}
|
||||
}
|
||||
mut p := v.new_parser(new_scanner_file(path))
|
||||
path_dir := os.realpath(os.dir(path))
|
||||
path_dir := os.real_path(os.dir(path))
|
||||
p = {
|
||||
p |
|
||||
file_path:path,
|
||||
@@ -418,7 +418,7 @@ fn (p mut Parser) statements_from_text(text string, rcbr bool, fpath string) {
|
||||
|
||||
fn (p mut Parser) parse(pass Pass) {
|
||||
p.cgen.line = 0
|
||||
p.cgen.file = cescaped_path(os.realpath(p.file_path))
|
||||
p.cgen.file = cescaped_path(os.real_path(p.file_path))
|
||||
// ///////////////////////////////////
|
||||
p.pass = pass
|
||||
p.token_idx = 0
|
||||
|
||||
Reference in New Issue
Block a user