* lib/mkmf.rb (have_type, check_sizeof): replace unusable characters.

[ruby-talk:99788]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2004-05-12 10:59:52 +00:00
parent fbb8f1964a
commit 93472ba0ed
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
Wed May 12 19:59:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (have_type, check_sizeof): replace unusable characters.
[ruby-talk:99788]
Wed May 12 17:41:42 2004 Tanaka Akira <akr@m17n.org> Wed May 12 17:41:42 2004 Tanaka Akira <akr@m17n.org>
* lib/resolv.rb (Resolv::DNS::Config): make it configurable without * lib/resolv.rb (Resolv::DNS::Config): make it configurable without

View File

@ -585,7 +585,7 @@ SRC
/*top*/ /*top*/
static #{type} *t; static #{type} *t;
SRC SRC
$defs.push(format("-DHAVE_TYPE_%s", type.upcase)) $defs.push(format("-DHAVE_TYPE_%s", type.upcase.tr_s("^A-Z0-9_", "_")))
true true
else else
false false
@ -599,7 +599,7 @@ def check_sizeof(type, header = nil, &b)
message "%s", m message "%s", m
Logging::message "check_sizeof: %s--------------------\n", m Logging::message "check_sizeof: %s--------------------\n", m
if size = try_constant(expr, header, &b) if size = try_constant(expr, header, &b)
$defs.push(format("-DSIZEOF_%s", type.upcase)) $defs.push(format("-DSIZEOF_%s", type.upcase.tr_s("^A-Z0-9_", "_")))
end end
message(a = size ? "#{size}\n" : "failed\n") message(a = size ? "#{size}\n" : "failed\n")
Logging::message "-------------------- %s\n", a Logging::message "-------------------- %s\n", a