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

vfmt: handle comments

This commit is contained in:
Alexander Medvednikov
2019-11-11 17:18:32 +03:00
parent 51663520c8
commit ffa6bcfff5
14 changed files with 153 additions and 72 deletions

View File

@ -57,7 +57,13 @@ pub fn dir_exists(path string) bool {
// mkdir creates a new directory with the specified path.
pub fn mkdir(path string) {
C.mkdir(path.str, 511)// S_IRWXU | S_IRWXG | S_IRWXO
/*
$if linux {
C.syscall(C.SYS_mkdir, path.str)
} $else {
*/
C.mkdir(path.str, 511)// S_IRWXU | S_IRWXG | S_IRWXO
//}
}
// exec starts the specified command, waits for it to complete, and returns its output.