Skip to content

Commit 39244ae

Browse files
committed
fix
1 parent 4b26021 commit 39244ae

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

lib/bt-exe.v

+7-11
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ fn C.__bound_checking_lock()
2222
@[weak]
2323
fn C.__bound_checking_unlock()
2424

25+
@[weak]
26+
fn C.__bound_init(voidptr, int)
27+
28+
@[weak]
29+
fn C.__bound_exit_dll(voidptr)
30+
2531
@[typedef]
2632
struct C.jmp_buf {
2733
}
@@ -74,16 +80,6 @@ __global (
7480
g_rtctxt Rt_context
7581
)
7682

77-
@[weak]
78-
fn C.__bound_init(voidptr, int)
79-
80-
@[weak]
81-
fn C.__bound_exit_dll(voidptr)
82-
83-
type Bound_init_fn = fn (voidptr, int)
84-
85-
type Bound_exit_dll_fn = fn (voidptr)
86-
8783
@[export: '__bt_init']
8884
fn __bt_init(p &Rt_context, num_callers int) {
8985
main := C.main
@@ -114,7 +110,7 @@ fn _rt_error(fp voidptr, ip voidptr, fmt &char) int {
114110

115111
@[export: '__bt_exit']
116112
fn __bt_exit(p &Rt_context) {
117-
bound_exit_dll := Bound_exit_dll_fn(C.__bound_exit_dll)
113+
bound_exit_dll := C.__bound_exit_dll
118114
rc := &g_rtctxt
119115
if p.bounds_start {
120116
bound_exit_dll(p.bounds_start)

tests/run_test.v

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ fn test_build_itself() {
3636

3737
os.rm('./a.out')!
3838
os.rm('./test.c')!
39-
}
39+
}

0 commit comments

Comments
 (0)