From 7ca3bea5bfd15dd960e6346eebf72422b0020d6b Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Wed, 15 Jan 2014 11:45:12 +0200 Subject: libstd: Added more #[inline] annotations and replaced uses of `libc::abort` with the intrinsic. --- src/libstd/libc.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libstd/libc.rs') diff --git a/src/libstd/libc.rs b/src/libstd/libc.rs index 6b54a176e89..9cf94e5a1b8 100644 --- a/src/libstd/libc.rs +++ b/src/libstd/libc.rs @@ -159,7 +159,7 @@ pub use libc::funcs::c95::stdio::{fread, freopen, fseek, fsetpos, ftell}; pub use libc::funcs::c95::stdio::{fwrite, perror, puts, remove, rewind}; pub use libc::funcs::c95::stdio::{setbuf, setvbuf, tmpfile, ungetc}; -pub use libc::funcs::c95::stdlib::{abort, abs, atof, atoi, calloc, exit}; +pub use libc::funcs::c95::stdlib::{abs, atof, atoi, calloc, exit}; pub use libc::funcs::c95::stdlib::{free, getenv, labs, malloc, rand}; pub use libc::funcs::c95::stdlib::{realloc, srand, strtod, strtol}; pub use libc::funcs::c95::stdlib::{strtoul, system}; @@ -3226,7 +3226,6 @@ pub mod funcs { pub fn malloc(size: size_t) -> *c_void; pub fn realloc(p: *mut c_void, size: size_t) -> *mut c_void; pub fn free(p: *c_void); - pub fn abort() -> !; pub fn exit(status: c_int) -> !; // Omitted: atexit. pub fn system(s: *c_char) -> c_int; -- cgit 1.4.1-3-g733a5