rubinius/rubinius — pull request #3141 by cosmo0920 (2014-09-27 10:38:40+00:00)
Title: vm capi: more MRI C API enum types compatibility.

* add RUBY_ prefix for T_XXX types
* add backward compatibility for T_XXX types.

Currently, MRI provides `RUBY_T_XXX` forms of enum types in C extension.
But, Rubinius does not provide these of types.
So, it causes gem installation error, when gem uses `RUBY_T_XXX` in C extension.

e.g. glib2 gem:

```log
rbglib_utils.c: In function 'rg_s_parse_debug_string':
rbglib_utils.c:250:22: error: 'RUBY_T_HASH' undeclared (first use in this function)
Check_Type(keys, RUBY_T_HASH);
```