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:
Andrew Kelley
2017-03-23 02:59:58 -04:00
parent 01b2bf4a44
commit d6856859d3
13 changed files with 119 additions and 17 deletions

View File

@@ -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");
},
}
}