diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-26 03:37:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-26 03:37:15 +0000 |
commit | 21d7cd39883c77404f81752a9072896d76f8c618 (patch) | |
tree | 44a02461181e7df8a30653673448229a8551a625 /sizes.c | |
parent | c3ab2dc6ae728f4574909d6c77e54320b5e24e37 (diff) | |
download | ruby-21d7cd39883c77404f81752a9072896d76f8c618.tar.gz |
sizes.c.tmpl: autogenerate
* template/sizes.c.tmpl: generate automatically by extracting
RUBY_CHECK_SIZEOF from configure.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sizes.c')
-rw-r--r-- | sizes.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/sizes.c b/sizes.c deleted file mode 100644 index 629978dc00..0000000000 --- a/sizes.c +++ /dev/null @@ -1,55 +0,0 @@ -#include "ruby/ruby.h" - -void -Init_sizes(void) -{ - VALUE s = rb_hash_new(); - rb_define_const(rb_define_module("RbConfig"), "SIZEOF", s); - -#define DEFINE(type, size) rb_hash_aset(s, rb_str_new_cstr(#type), INT2FIX(SIZEOF_##size)); - -#if SIZEOF_INT != 0 - DEFINE(int, INT); -#endif -#if SIZEOF_SHORT != 0 - DEFINE(short, SHORT); -#endif -#if SIZEOF_LONG != 0 - DEFINE(long, LONG); -#endif -#if SIZEOF_LONG_LONG != 0 && defined(HAVE_TRUE_LONG_LONG) - DEFINE(long long, LONG_LONG); -#endif -#if SIZEOF___INT64 != 0 - DEFINE(__int64, __INT64); -#endif -#if SIZEOF___INT128 != 0 - DEFINE(__int128, __INT128); -#endif -#if SIZEOF_OFF_T != 0 - DEFINE(off_t, OFF_T); -#endif -#if SIZEOF_VOIDP != 0 - DEFINE(void*, VOIDP); -#endif -#if SIZEOF_FLOAT != 0 - DEFINE(float, FLOAT); -#endif -#if SIZEOF_DOUBLE != 0 - DEFINE(double, DOUBLE); -#endif -#if SIZEOF_TIME_T != 0 - DEFINE(time_t, TIME_T); -#endif -#if SIZEOF_CLOCK_T != 0 - DEFINE(clock_t, CLOCK_T); -#endif -#if SIZEOF_SIZE_T != 0 - DEFINE(size_t, SIZE_T); -#endif -#if SIZEOF_PTRDIFF_T != 0 - DEFINE(ptrdiff_t, PTRDIFF_T); -#endif - -#undef DEFINE -} |