diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2014-01-15 11:45:12 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2014-01-15 11:45:12 +0200 |
| commit | 7ca3bea5bfd15dd960e6346eebf72422b0020d6b (patch) | |
| tree | b4770a25c00d27eb078b82593ee22768dd487ce9 /src/libstd/libc.rs | |
| parent | e063e96ec90544c9ffa811396d14541761656d07 (diff) | |
| download | rust-7ca3bea5bfd15dd960e6346eebf72422b0020d6b.tar.gz rust-7ca3bea5bfd15dd960e6346eebf72422b0020d6b.zip | |
libstd: Added more #[inline] annotations and replaced uses of `libc::abort` with the intrinsic.
Diffstat (limited to 'src/libstd/libc.rs')
| -rw-r--r-- | src/libstd/libc.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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; |
