joyent/libuv — pull request #370 by avalanche123 (2012-04-03 22:16:41+00:00)
Title: add ability to lookup different handle sizes before allocation

I'm working on Ruby FFI bindings for libuv and I find myself having to copy majority of libuv struct definitions in ruby just to get correct sizes for memory allocation. This change makes it possible to dynamically lookup memory necessary for libuv's handles, removing the need to duplicate structs.

Feedback is much appreciated!