mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os.path_separator
This commit is contained in:
parent
9850193348
commit
81f8b26127
@ -518,9 +518,9 @@ fn (p mut Parser) const_decl() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
mut name := p.check_name() // `Age = 20`
|
mut name := p.check_name() // `Age = 20`
|
||||||
//if ! (name[0] >= `A` && name[0] <= `Z`) {
|
if p.mod != 'os' && contains_capital(name) {
|
||||||
//p.error('const name must be capitalized')
|
//p.warn('const names cannot contain uppercase letters, use snake_case instead')
|
||||||
//}
|
}
|
||||||
name = p.prepend_mod(name)
|
name = p.prepend_mod(name)
|
||||||
mut typ := ''
|
mut typ := ''
|
||||||
if p.is_vh {
|
if p.is_vh {
|
||||||
|
@ -5,6 +5,7 @@ module os
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
PathSeparator = '/'
|
PathSeparator = '/'
|
||||||
|
path_separator = '/'
|
||||||
)
|
)
|
||||||
|
|
||||||
fn init_os_args(argc int, argv &byteptr) []string {
|
fn init_os_args(argc int, argv &byteptr) []string {
|
||||||
|
@ -5,6 +5,7 @@ module os
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
PathSeparator = '\\'
|
PathSeparator = '\\'
|
||||||
|
path_separator = '\\'
|
||||||
)
|
)
|
||||||
|
|
||||||
// Ref - https://docs.microsoft.com/en-us/windows/desktop/winprog/windows-data-types
|
// Ref - https://docs.microsoft.com/en-us/windows/desktop/winprog/windows-data-types
|
||||||
|
Loading…
Reference in New Issue
Block a user