FAQ (coding style) - miura1729/mruby GitHub Wiki
Types
_t
suffix to typedef-ed symbols?
Why don't you add There are some reasons.
-
_t
suffix is reserved by POSIX. Even though We don't express to support POSIX, we can't ignore it. -
We have already defined some types with no
_t
suffix like mrb_int. We want to keep naming consistency. -
Matz don't like
_t
suffix. :-p
mrb_
/MRB_
prefix in the header file.
I found a symbol without I'm sorry. It is ill formed. Please report to issue tracking or send pull request.
*int*_t
. (and/or types may be defined in stdint.h)
My compiler don't support It's possible even if your compiler supports C99. But it's necessary to obtain the source code portability. Please define them by yourself.
Definitions depends on your target architecture and your compiler implementation. So it's difficult to give you general guidelines. Please consult the compiler vendor.