mozilla/rust — pull request #5608 by erickt (2013-03-28 20:17:05+00:00)
Title: Change Decoder::read_option to allow returning arbitrary types; inline some malloc wrapper fns

@nikomatsakis pointed out that `fn read_option(&self, f: &fn() -> T) -> Option` should have this syntax so it can work with custom option types: `fn read_option(&self, f: &fn(bool) -> T) -> T`.

Also, this also includes some `#[inline(always)]` on the memory functions in `src/libcore/unstable/lang.rs` to reduce one level of indirection when allocating memory.