From 2f9b7898f6fa4716d61eb8bff03cc645749e9838 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 3 Jun 2015 12:00:50 +0000 Subject: * configure.in: Don't check __int128. * ext/rbconfig/sizeof/extconf.rb: Check __int128. * ext/rbconfig/sizeof/depend: sizes.c depends on ext/rbconfig/sizeof/extconf.rb. * template/sizes.c.tmpl: Detect check_sizeof. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- template/sizes.c.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'template/sizes.c.tmpl') diff --git a/template/sizes.c.tmpl b/template/sizes.c.tmpl index ac9964dd5b..045e69ee71 100644 --- a/template/sizes.c.tmpl +++ b/template/sizes.c.tmpl @@ -6,7 +6,8 @@ class String strip.upcase.tr_s("^A-Z0-9_*", "_").tr_s("*", "P") end end -types = ARGF.grep(/^\s*RUBY_CHECK_SIZEOF\((\w[^\[\],#]*)[^#]*\)/) {$1} +types = ARGF.grep(/^\s*RUBY_CHECK_SIZEOF\((\w[^\[\],#]*)[^#]*\)| + ^\s*check_sizeof\('(\w+)'/x) {$+} conditions = { "long long" => 'defined(HAVE_TRUE_LONG_LONG)', } -- cgit v1.2.3