From 82f8d8cb2a139a303354358ea272948fd177dab3 Mon Sep 17 00:00:00 2001 From: Jeff Olson Date: Wed, 4 Apr 2012 09:28:26 -0700 Subject: removing some unneeded native fn mappingsin uv.rs and misc clean .. 32bit linux issues persist. --- src/rt/rust_uv.cpp | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'src/rt/rust_uv.cpp') 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* -- cgit 1.4.1-3-g733a5