[#2840] Changing Resolv::DNS — Daniel Hobe <daniel@...>
I put out a RCR a while ago (176) that subclassed the Resolv::DNS class to
5 messages
2004/05/01
[#2853] cgi.rb: option to omit HTTP header emission — Jos Backus <jos@...>
I'm trying to use cgi.rb to write HTML-only output. This patch adds a
5 messages
2004/05/06
[#2867] ruby/dl — Jeff Mitchell <quixoticsycophant@...>
# dltest.rb
7 messages
2004/05/12
[#2878] Bug in open-uri under win32 (?) — Mauricio Fern疣dez <batsman.geo@...>
4 messages
2004/05/16
[#2894] RI for distribution — why the lucky stiff <ruby-core@...>
Hi, everyone.
6 messages
2004/05/18
[#2901] test/yaml/test_yaml.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Hello.
2 messages
2004/05/19
[#2913] [yaml] YAML.load([1,2,3].to_yaml.to_yaml) — Jeff Mitchell <quixoticsycophant@...>
A bit contrived,
8 messages
2004/05/20
[#2926] Re: [bug] [yaml] YAML.load([1,2,3].to_yaml.to_yaml)
— "daz" <dooby@...10.karoo.co.uk>
2004/05/23
[#2927] Re: [bug] [yaml] YAML.load([1,2,3].to_yaml.to_yaml)
— ts <decoux@...>
2004/05/23
>>>>> "d" == daz <dooby@d10.karoo.co.uk> writes:
[#2928] Syck CVS (was Re: [bug] [yaml] YAML.load([1,2,3].to_yaml.to_yaml))
— why the lucky stiff <ruby-core@...>
2004/05/23
ts wrote:
[#2929] Re: Syck CVS (was Re: [bug] [yaml] YAML.load([1,2,3].to_yaml.to_yaml))
— ts <decoux@...>
2004/05/23
>>>>> "w" == why the lucky stiff <ruby-core@whytheluckystiff.net> writes:
[#2918] fixed SIG_SEGV in check_stack() in eval.c — b g <bg_rubyposter_123456@...>
I was getting a crash at 'JUMP_TAG(state);' in
6 messages
2004/05/22
[#2938] -Wstrict-prototypes for extensions — Jeff Mitchell <quixoticsycophant@...>
6 messages
2004/05/25
mkmf.rb
From:
Charles Mills <boson@...>
Date:
2004-05-20 05:58:58 UTC
List:
ruby-core #2911
- check_sizeof() crashes my extconf.rb script.
$ echo 'check_sizeof("short")' | ruby -r mkmf -
checking size of short... 2
/usr/local/lib/ruby/1.8/mkmf.rb:570:in `check_sizeof': undefined local
variable or method `r' for main:Object (NameError)
from -:1
------
## Looking at the source, seems like size should be returned not r:
def check_sizeof(type, header = nil, &b)
expr = "sizeof(#{type})"
m = "checking size of #{type}... "
message "%s", m
Logging::message "check_sizeof: %s--------------------\n", m
if size = try_constant(expr, header, &b)
$defs.push(format("-DSIZEOF_%s", type.upcase))
end
message(a = size ? "#{size}\n" : "failed\n")
Logging::message "-------------------- %s\n", a
r
end
------
Other problems with check_sizeof():
the line:
$defs.push(format("-DSIZEOF_%s", type.upcase))
should probably be:
$defs.push(format("-DSIZEOF_%s=%i", type.upcase, size))
or (taken from latest source)
$defs.push(format("-DSIZEOF_%s=%i", type.upcase.tr_s("^A-Z0-9_", "_"),
size))
-----
This leads to a problem with create_header()
Looks like the regexp on line 619
/^-D(.*)(?:=(.*))?/
used to parse $defs should be
/^-D([^=]+)(=(.*))?/
and line 620 changed to:
hfile.print "#define #$1 #{$3 || 1}\n"
from
hfile.print "#define #$1 #{$2 || 1}\n"
----
using irb:
> '-DSIZEOF_INT=4' =~ /^-D(.*)(?:=(.*))?/ # old regexp
=> 0
> puts $1, $2, $3
SIZEOF_INT=4
nil
nil
=> nil
> '-DSIZEOF_INT=4' =~ /^-D([^=]+)(=(.*))?/ # possible replacement
=> 0
> puts $1, $2, $3
SIZEOF_INT
=4
4
=> nil
> '-DHAVE_STRING_H' =~ /^-D([^=]+)(=(.*))?/ # possible replacement
=> 0
> puts $1, $2, $3
HAVE_STRING_H
nil
nil
=> nil
------------
Charlie