mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
markused, builtin: apply @[markused]
to builtin_init, remove its heuristic from markused.v
This commit is contained in:
parent
21d9a5ded5
commit
4a6941af6c
3 changed files with 2 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
||||||
// that can be found in the LICENSE file.
|
// that can be found in the LICENSE file.
|
||||||
module builtin
|
module builtin
|
||||||
|
|
||||||
|
@[markused]
|
||||||
fn builtin_init() {
|
fn builtin_init() {
|
||||||
$if gcboehm ? {
|
$if gcboehm ? {
|
||||||
$if !gc_warn_on_stderr ? {
|
$if !gc_warn_on_stderr ? {
|
||||||
|
|
|
@ -63,6 +63,7 @@ const enable_processed_output = 1
|
||||||
const enable_wrap_at_eol_output = 2
|
const enable_wrap_at_eol_output = 2
|
||||||
const evable_virtual_terminal_processing = 4
|
const evable_virtual_terminal_processing = 4
|
||||||
|
|
||||||
|
@[markused]
|
||||||
fn builtin_init() {
|
fn builtin_init() {
|
||||||
$if gcboehm ? {
|
$if gcboehm ? {
|
||||||
$if !gc_warn_on_stderr ? {
|
$if !gc_warn_on_stderr ? {
|
||||||
|
|
|
@ -60,9 +60,6 @@ pub fn mark_used(mut table ast.Table, mut pref_ pref.Preferences, ast_files []&a
|
||||||
if pref_.is_bare {
|
if pref_.is_bare {
|
||||||
core_fns << 'init_global_allocator' // needed for linux_bare and wasm_bare
|
core_fns << 'init_global_allocator' // needed for linux_bare and wasm_bare
|
||||||
}
|
}
|
||||||
if ast_files[ast_files.len - 1].imports.len > 0 {
|
|
||||||
core_fns << 'builtin_init'
|
|
||||||
}
|
|
||||||
if 'use_libbacktrace' in pref_.compile_defines {
|
if 'use_libbacktrace' in pref_.compile_defines {
|
||||||
core_fns << 'print_libbacktrace'
|
core_fns << 'print_libbacktrace'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue