Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GLib で型を再定義する理由は何ですか? なぜ、 、 などに変わるのですcharか?gcharintgint
char
gchar
int
gint
GLib ドキュメントの基本型を確認してください。本質的には、使用している C コンパイラまたはプラットフォームに関係なく、特定の型が特定のセマンティクスで存在することを保証することです。いずれにしても C が保証typedefする型は、すべての型名が統一的に見えるようにするためだけに編集されています。
typedef