builtin: add a `[has_globals]` tag for all the .v files, with global declarations in them
parent
bd9ac598f7
commit
6ac109a7c3
|
@ -1,3 +1,4 @@
|
||||||
|
[has_globals]
|
||||||
module builtin
|
module builtin
|
||||||
|
|
||||||
type FnExitCb = fn ()
|
type FnExitCb = fn ()
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// Copyright (c) 2019-2021 Alexander Medvednikov. All rights reserved.
|
// Copyright (c) 2019-2021 Alexander Medvednikov. All rights reserved.
|
||||||
// Use of this source code is governed by an MIT license
|
// Use of this source code is governed by an MIT license
|
||||||
// that can be found in the LICENSE file.
|
// that can be found in the LICENSE file.
|
||||||
|
[has_globals]
|
||||||
module builtin
|
module builtin
|
||||||
|
|
||||||
// isnil returns true if an object is nil (only for C objects).
|
// isnil returns true if an object is nil (only for C objects).
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// Copyright (c) 2019-2021 Alexander Medvednikov. All rights reserved.
|
// Copyright (c) 2019-2021 Alexander Medvednikov. All rights reserved.
|
||||||
// Use of this source code is governed by an MIT license
|
// Use of this source code is governed by an MIT license
|
||||||
// that can be found in the LICENSE file.
|
// that can be found in the LICENSE file.
|
||||||
|
[has_globals]
|
||||||
module builtin
|
module builtin
|
||||||
|
|
||||||
// dbghelp.h is already included in cheaders.v
|
// dbghelp.h is already included in cheaders.v
|
||||||
|
@ -66,9 +67,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// g_original_codepage - used to restore the original windows console code page when exiting
|
// g_original_codepage - used to restore the original windows console code page when exiting
|
||||||
__global (
|
__global g_original_codepage = u32(0)
|
||||||
g_original_codepage = u32(0)
|
|
||||||
)
|
|
||||||
|
|
||||||
// utf8 to stdout needs C.SetConsoleOutputCP(C.CP_UTF8)
|
// utf8 to stdout needs C.SetConsoleOutputCP(C.CP_UTF8)
|
||||||
fn C.GetConsoleOutputCP() u32
|
fn C.GetConsoleOutputCP() u32
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
[has_globals]
|
||||||
module builtin
|
module builtin
|
||||||
|
|
||||||
// With -prealloc, V calls libc's malloc to get chunks, each at least 16MB
|
// With -prealloc, V calls libc's malloc to get chunks, each at least 16MB
|
||||||
|
|
Loading…
Reference in New Issue