diff options
| author | Jeff Olson <olson.jeffery@gmail.com> | 2012-04-04 09:28:26 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-06 15:35:50 -0700 |
| commit | 82f8d8cb2a139a303354358ea272948fd177dab3 (patch) | |
| tree | 0c2e22fee48eb8ebcfb7cce25c23480489761cd5 /src/rt/rust_uv.cpp | |
| parent | 6b349f3d11349cf96be0bd68e20578fd5608b090 (diff) | |
| download | rust-82f8d8cb2a139a303354358ea272948fd177dab3.tar.gz rust-82f8d8cb2a139a303354358ea272948fd177dab3.zip | |
removing some unneeded native fn mappingsin uv.rs and misc clean
.. 32bit linux issues persist.
Diffstat (limited to 'src/rt/rust_uv.cpp')
| -rw-r--r-- | src/rt/rust_uv.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/rt/rust_uv.cpp b/src/rt/rust_uv.cpp index 316a44cc5d8..2b1e5d1ca3c 100644 --- a/src/rt/rust_uv.cpp +++ b/src/rt/rust_uv.cpp @@ -302,22 +302,13 @@ current_kernel_malloc_alloc_cb(uv_handle_t* handle, extern "C" void rust_uv_buf_init(uv_buf_t* out_buf, char* base, size_t len) { - printf("rust_uv_buf_init: base: %lu len: %lu\n", - (long unsigned int)base, - (long unsigned int)len); + printf("rust_uv_buf_init: base: %lu len: %lu\n", + (long unsigned int)base, + (long unsigned int)len); *out_buf = uv_buf_init(base, len); printf("rust_uv_buf_init: after: result->base: %lu len: %lu\n", - (unsigned long int)(*out_buf).base, - (unsigned long int)(*out_buf).len); -} -extern "C" uv_buf_t -rust_uv_buf_init_2(char* base, size_t len) { - printf("uv_buf_init: base ptr %p\n len: %lu", base, - (long unsigned int)len); - uv_buf_t result = uv_buf_init(base, len); - printf("after uv_buf_init: result->base %p\n", - result.base); - return result; + (unsigned long int)(*out_buf).base, + (unsigned long int)(*out_buf).len); } extern "C" uv_loop_t* |
