remove execinfo.h for now
parent
bfd5fb373c
commit
5720b01b7d
|
@ -4,9 +4,9 @@
|
||||||
|
|
||||||
module os
|
module os
|
||||||
|
|
||||||
#include <execinfo.h>
|
//#include <execinfo.h> // for backtrace_symbols_fd
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
// import darwin
|
// import darwin
|
||||||
|
@ -62,10 +62,12 @@ fn ls(path string) []string {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn print_backtrace() {
|
fn print_backtrace() {
|
||||||
|
/*
|
||||||
# void *buffer[100];
|
# void *buffer[100];
|
||||||
nptrs := 0
|
nptrs := 0
|
||||||
# nptrs = backtrace(buffer, 100);
|
# nptrs = backtrace(buffer, 100);
|
||||||
# printf("%d!!\n", nptrs);
|
# printf("%d!!\n", nptrs);
|
||||||
# backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO) ;
|
# backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO) ;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ pub:
|
||||||
uni int // TODO it's safe to use "unix" now
|
uni int // TODO it's safe to use "unix" now
|
||||||
}
|
}
|
||||||
|
|
||||||
fn asfd() {
|
fn remove_me_when_c_bug_is_fixed() { // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
struct C.tm {
|
struct C.tm {
|
||||||
|
|
Loading…
Reference in New Issue