diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-03-22 13:44:16 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-03-23 10:49:47 +0100 |
| commit | 0545e4a9200a9c971f8b5f95aa9a439ea0c20116 (patch) | |
| tree | be7a9b9f697ffe007460898137d8aafd204c6e63 /src/libcore/ptr.rs | |
| parent | 894b7469d6902bba571024cc0f39c1521156d7a3 (diff) | |
Support [rust_stack] annotation on native functions (crudely)
Diffstat (limited to 'src/libcore/ptr.rs')
| -rw-r--r-- | src/libcore/ptr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 29369d9b8ca..b2ec75e530f 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -13,7 +13,9 @@ import libc::c_void; #[nolink] #[abi = "cdecl"] native mod libc_ { + #[rust_stack] fn memcpy(dest: *c_void, src: *c_void, n: libc::size_t) -> *c_void; + #[rust_stack] fn memmove(dest: *c_void, src: *c_void, n: libc::size_t) -> *c_void; } |
