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

builtin: cleanup by turning backtrace* fns to ordinary C. fns

This commit is contained in:
Delyan Angelov
2020-05-15 15:23:58 +03:00
parent e18268e2f4
commit 66cb61c242
3 changed files with 59 additions and 65 deletions

View File

@@ -26,10 +26,10 @@ fn C.isdigit(s byteptr) bool
fn C.popen(c byteptr, t byteptr) voidptr
// <execinfo.h>
// backtrace functions are not #included, that's why they have to be defined without C.
fn backtrace(a &voidptr, b int) int
fn backtrace_symbols(a &voidptr, size int) &charptr
fn backtrace_symbols_fd(a &voidptr, size int, fd int) void
fn C.backtrace(a &voidptr, size int) int
fn C.backtrace_symbols(a &voidptr, size int) &charptr
fn C.backtrace_symbols_fd(a &voidptr, size int, fd int)
// <libproc.h>
fn proc_pidpath(int, voidptr, int) int