Project

General

Profile

« Previous | Next » 

Revision c11c5e69

Added by shyouhei (Shyouhei Urabe) about 6 years ago

refactor split rb_method_definition_set

Did you know that C functions can return structs? That has been
true since the beginning, but not that very useful until C99. Now
that we can write compound literals, this feature is much easier
to use. By allowing struct-returning functions, some formerly big
functions can be split into smaller ones, like this changeset.

At least GCC is smart enough to inline the split functions back
into one. No performance penalty is observed.