improvements for windows and libc integration
* standard library knows if it is linking against libc and will sometimes call libc functions in that case instead of providing redundant definitions * fix infinite loop bug when resolving use declarations * allow calling the same C function from different C imports. closes #277 * push more logic from compiler to std/bootstrap.zig * standard library provides way to access errno closes #274 * fix compile error in standard library for windows * add implementation of getRandomBytes for windows
This commit is contained in:
@@ -78,13 +78,13 @@ pub fn writeStackTrace(out_stream: &io.OutStream) -> %void {
|
||||
}
|
||||
},
|
||||
ObjectFormat.coff => {
|
||||
out_stream.write("(stack trace unavailable for COFF object format)\n");
|
||||
%return out_stream.write("(stack trace unavailable for COFF object format)\n");
|
||||
},
|
||||
ObjectFormat.macho => {
|
||||
%return out_stream.write("(stack trace unavailable for Mach-O object format)\n");
|
||||
},
|
||||
ObjectFormat.unknown => {
|
||||
out_stream.write("(stack trace unavailable for unknown object format)\n");
|
||||
%return out_stream.write("(stack trace unavailable for unknown object format)\n");
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user