nobu
c719cd9b46
* eval_method.ci (rb_alias): do not call hook functions until
...
initialization finishes. [ruby-talk:279538]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-18 05:03:46 +00:00
nobu
16dc06014c
* lib/mkmf.rb (String#tr_cpp): make preprocessor identifiers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-18 00:09:50 +00:00
akr
5c19fbacec
check class.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-17 20:25:27 +00:00
akr
aa7ce1ece1
* lib/mkmf.rb (have_struct_member): define HAVE_type_member.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-17 20:20:44 +00:00
suke
24dcd39f19
ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-17 15:04:55 +00:00
matz
4bd57e3311
* bignum.c (rb_big_odd_p): new method added. a patch from Tadashi
...
Saito <shiba AT mail2.accsnet.ne.jp>. [ruby-dev:32305]
* bignum.c (rb_big_even_p): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16 14:41:11 +00:00
nobu
0d95854a52
* ext/iconv/iconv.c (iconv_iconv): also instance method needs to be
...
qualified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16 08:41:37 +00:00
nobu
85b72a85b5
* ext/iconv/iconv.c (Document-class): moved the simplest example to
...
the top.
* ext/iconv/iconv.c (iconv_s_iconv): Document-method: needs class
prefix for class method. [ruby-core:13542]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16 08:03:36 +00:00
shugo
731aa0d0a8
* include/ruby/ruby.h: added some declarations for event hooks.
...
* lib/profile.rb: set VM::InstructionSequence.compile_option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16 07:29:44 +00:00
nobu
fd0ab68415
* lib/yaml/rubytypes.rb (String#is_binary_data?): use Integer#fdiv.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16 02:16:43 +00:00
nobu
75feee0968
* set eol-style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16 01:30:29 +00:00
akr
501407d3af
add largefile.h, miniprelude.c,
...
ext/fiber/extconf.h, ext/fiber/Makefile,
ext/continuation/extconf.h, ext/continuation/Makefile for svn:ignore.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 22:47:47 +00:00
why
c0978692df
* ext/syck/rubyext.c: Node#value defined twice.
...
* lib/yaml/: several method redefinitions causing warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 18:36:51 +00:00
why
91e0600535
* lib/yaml/types.rb: Likewise, pass self to YAML::quick_emit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 18:03:26 +00:00
why
2fb73a8b0a
* lib/yaml.rb (quick_emit): use combination of object_id and hash to
...
identify repeated object references, since GC will reuse memory of
objects during output of YAML. [ruby-Bugs-8548] [ruby-Bugs-3698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 17:54:32 +00:00
usa
808becf9e0
* ChangeLog: add ML ref.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 10:52:21 +00:00
usa
0595aef18e
* ext/curses/extconf.rb: check macro if cannot find func.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 10:50:34 +00:00
akr
7d6eb8e68b
* tool/compile_prelude.rb: fix TMP_RUBY_PREFIX for relative load path
...
environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 09:07:45 +00:00
akr
790f631301
escape "{" too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 08:33:10 +00:00
akr
479c06d19d
* tool/compile_prelude.rb: absolute path may not start with a slash.
...
pointed by usa.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 08:30:07 +00:00
akr
f1bc46f06d
* tool/compile_prelude.rb: fix first substitution.
...
use constant for prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 08:08:40 +00:00
nobu
dc6e570665
* common.mk (prereq): added auto generated sources. [ruby-dev:32280]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 05:29:58 +00:00
akr
afb554d90a
* tool/compile_prelude.rb: use constant for prefix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 03:32:26 +00:00
akr
3b37c74564
* tool/compile_prelude.rb: use simple template system for source
...
code generation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 03:26:20 +00:00
matz
af2ab37334
* lib/cgi/session.rb (CGI::Session::FileStore::restore): use
...
lockfile for exclusive locks. a patch from <tommy AT tmtm.org>.
[ruby-dev:32296]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 03:20:52 +00:00
matz
4c56aaa162
* tool/compile_prelude.rb (c_esc): need to escape closing brace.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 03:15:37 +00:00
akr
af6a9d70b2
* tool/compile_prelude.rb: adjust RbConfig::CONFIG paths relative
...
to the installation path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 02:54:55 +00:00
akr
0529882de7
* ruby.c (usage): fix typo on --disable-gems option.
...
pointed by Richard Kilmer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 02:27:08 +00:00
matz
67172a2401
* test/net/http/test_https_proxy.rb
...
(HTTPSProxyTest::test_https_proxy_authentication): initialize
local variable 't' first. [ruby-dev:32253]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-14 07:17:18 +00:00
matz
326659c0bf
* test/socket/test_socket.rb: update not to use 1.8 assignment to
...
external local variable in the block parameters. [ruby-dev:32251]
* test/strscan/test_stringscanner.rb: avoid $KCODE, and use
String#force_encoding(). [ruby-dev:32251]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-14 07:03:39 +00:00
akr
e81b38e378
* common.mk, Makefile.in: rename prelude.c to miniprelude.c.
...
rename ext_prelude.c to prelude.c
* win32/Makefile.sub: ditto.
* bcc32/Makefile.sub: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-14 05:06:36 +00:00
ko1
d907cbc81d
* blockinlining.c, compile.c, compile.h, debug.c, debug.h,
...
id.c, insnhelper.h, insns.def, thread.c, thread_pthread.ci,
thread_pthread.h, thread_win32.ci, thread_win32.h, vm.h,
vm_dump.c, vm_evalbody.ci, vm_opts.h: fix comments and
copyright year.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 22:13:04 +00:00
ko1
3688c7a1ee
* tool/makedocs.rb, template/insnstbl.html: removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 22:09:43 +00:00
nobu
499fef3e53
* common.mk (parse.c): dependency also needs vpath.
...
* common.mk (node_name.inc, prelude.c): VPATH in nmake does not
work for targets of explicit rules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 17:50:33 +00:00
akr
1a6e152000
fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 17:18:34 +00:00
akr
c87280a54e
* configure.in: no need to set ac_cv_func_isinf=yes on non-gcc
...
solaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 17:12:52 +00:00
akr
093fe3b839
* missing/isinf.c (isinf): don't define is the macro is defined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 16:54:27 +00:00
nobu
fd3ef45a42
* numeric.c (round): fallback definition.
...
* numeric.c (flo_divmod, flo_round): use round() always.
[ruby-dev:32269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 16:34:45 +00:00
ko1
25c0cb981a
* include/ruby/ruby.h: introduce 2 macros:
...
RFLOAT_VALUE(v), DOUBLE2NUM(dbl).
Rename RFloat#value -> RFloat#double_value.
Do not touch RFloat#double_value directly.
* bignum.c, insns.def, marshal.c, math.c, numeric.c, object.c,
pack.c, parse.y, process.c, random.c, sprintf.c, string.c,
time.c: apply above changes.
* ext/dl/mkcallback.rb, ext/json/ext/generator/generator.c:
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 16:00:53 +00:00
nobu
c4af7f51b7
* tool/ytab.sed: get rid of GNU sed feature. a patch from Laurent
...
Sansonetti <laurent.sansonetti AT gmail.com> in [ruby-core:13470].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 15:15:39 +00:00
akr
19c0ede6fc
fix test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 14:59:02 +00:00
nobu
d5a3389886
* common.mk (parse.c), ext/ripper/depend (ripper.c): process after
...
bison with sed. [ruby-dev:32204]
* ruby.c (proc_options): use yydebug in cmdline_options.
* ruby.c (process_options): set yydebug flag of parser.
* parse.y (yydebug): moved into struct parser_params.
* parse.y (rb_parser_get_yydebug, rb_parser_set_yydebug): parser
generic methods.
* */Makefile.sub (parse.c): moved to common.mk.
* tool/ytab.sed: comment out yydebug definition, and substitute
yyerror with parser_yyerror.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 12:41:41 +00:00
nobu
b7d363ead6
* numeric.c (flodivmod): work around for inifinity.
...
* numeric.c (flo_divmod): work around for platforms have no round().
[ruby-dev:32247]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 07:33:09 +00:00
akr
9829e14432
* lex.c.blt: moved from lex.c.
...
* lex.c.src: copied from keywords. This is the source of lex.c.blt.
* Makefile.in (lex.c): use lex.c.blt if keywords is same as lex.c.src.
* win32/Makefile.sub (lex.c): re-introduce copy rule.
* bcc32/Makefile.sub (lex.c): ditto.
* wince/Makefile.sub (lex.c): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 06:29:49 +00:00
ko1
65cb92fca3
* compile.c (iseq_specialized_instruction): check argc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 06:24:06 +00:00
why
69c1181a9f
* test/yaml/test_yaml.rb: fixed the failing YAML Struct test
...
at ko1's request.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 05:45:52 +00:00
shyouhei
8d464a9948
* numeric.c (flo_divmod): round to the nearest integer. [ ruby-Bugs-14540 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 18:41:31 +00:00
shugo
862cd3cd3c
* test/ruby/test_settracefunc.rb: fixed tests for set_trace_func.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 15:38:10 +00:00
usa
fef818ec82
* thread.c (call_trace_proc): should return value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 10:47:46 +00:00
usa
647cd75166
* {bcc,win}32/Makefile.sub (miniruby): use $(COMMONOBJS) and $(DMYEXT)
...
instead of $(LIBRUBY_A).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 10:46:02 +00:00