aamine
bcd3345136
* test/ruby/test_optimization.rb: new test (merges test_opts.rb).
...
* yarvtest/test_opts.rb: removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 09:13:49 +00:00
aamine
f52fd2165b
* test/ruby/test_assignment.rb: merge yarvtest/test_massign.
...
* yarvtest/test_massign.rb: removed (merged to test_assignment.rb).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 07:59:54 +00:00
usa
3207cd3897
* signal.c (sighandler): need to re-install sighandler on some
...
platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 06:59:12 +00:00
aamine
f35a641adb
* test/ruby/test_primitive.rb: new test.
...
* yarvtest/test_bin.rb: removed (altered by test/ruby/test_{literal,primitive}.rb).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 06:41:25 +00:00
usa
5834171904
* win32/win32.c (set_pioinfo_extra): simplified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 06:07:55 +00:00
aamine
a9921d08f9
* test/ruby/test_literal.rb: new test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 05:23:33 +00:00
knu
9af03319fb
fix credit
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 03:44:46 +00:00
knu
e17884c45c
* lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): Make the
...
Content-Length parameter optional for responses in
xmlrpc/client.rb; suggested by Daniel Berger
<Daniel.Berger@qwest.com> and approved by the maintainer.
* lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Add DateTime
support to xmlrpc; approved by the maintainer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 03:42:01 +00:00
aamine
67c94cae96
* parse.y (lambda): add ripper event. This fixes bus error on "make test-all".
...
* ext/ripper/extconf.rb: do not stop build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 03:25:26 +00:00
matz
606734f0b1
* parse.y: remove dyna_check_gen() prototype.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 03:16:57 +00:00
matz
b83ed6d1bd
* parse.y, compile.c, gc.c, insns.def, intern.h, iseq.c, node.h,
...
object.c, string.c, variable.c, vm_macro.def: revert private
instance variable feature, which is postponed until next major
release.
* marshal.c: TYPE_SYMBOL2 removed; MARSHAL_MINOR reverted back to
8th version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 02:49:41 +00:00
aamine
3600c7ef8f
ignore *.dylib (shared library on Mac OS X)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 02:25:55 +00:00
shugo
c56b2c1084
* thread_pthread.ci (native_mutex_lock): do not call
...
pthread_mutex_trylock().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 01:56:43 +00:00
aamine
6dde5de022
* dln.c: use dlopen on Mac OS X 10.3 or later.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 01:31:37 +00:00
matz
0c882f4c9d
* string.c (rb_str_ord): need not to check string length; ord
...
returns a codepoint for the first character in the string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 01:21:49 +00:00
knu
4563573a6b
* numeric.c (fix_equal): A bit more optimization.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-21 13:30:17 +00:00
matz
f67795869d
* numeric.c (fix_equal): remove FIX2LONG() to optimize. suggested
...
in http://t-a-w.blogspot.com/2007/02/making-ruby-faster.html .
[ruby-talk:240223]
* numeric.c (fix_cmp): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-21 08:53:15 +00:00
nobu
e3b0b6d5fe
* eval_load.c (rb_require_safe): should restore safe level.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-21 00:14:07 +00:00
suke
975ce3add3
* ext/win32ole/win32ole.c (installed_code_page_proc,
...
ole_variant2val): small refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-20 12:25:40 +00:00
knu
9f6cd833e6
fix
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-20 07:35:33 +00:00
knu
74adb2b8d4
Update the distribution information.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-20 07:34:30 +00:00
ko1
90a192865a
* eval.c, vm.c, yarvcore.h: move definition of rb_call_super() to
...
vm.c from eval.c. change th_call_super() to static function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-20 06:16:04 +00:00
ko1
db95cb49af
* test/io/nonblock/test_flush.rb: YARV doesn't raise any errors if
...
another thread close IO object which current thread is blocking with.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-20 06:11:37 +00:00
ko1
661955cc39
* thread.c (do_select, rb_thread_wait_fd_rw): raise sys error if
...
errno is not 0 and EBADF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-20 06:07:05 +00:00
tadf
a29c96840d
just a minor change
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-19 16:30:02 +00:00
tadf
d429f63168
just a minor change
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-19 16:16:12 +00:00
nobu
128cc954d0
* configure.in (RUBY_REPLACE_TYPE): cache convertible type info.
...
* intern.h (rb_detach_process): use rb_pid_t instead of pid_t.
* ruby.h (PIDT2NUM, NUM2PIDT, UIDT2NUM, NUM2UIDT, GIDT2NUM, NUM2GIDT):
defaulted to conversion using long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-19 13:16:12 +00:00
nobu
085fee9087
* configure.in (RUBY_REPLACE_TYPE): cache convertible type info.
...
* intern.h (rb_detach_process): use rb_pid_t instead of pid_t.
* ruby.h (PIDT2NUM, NUM2PIDT, UIDT2NUM, NUM2UIDT, GIDT2NUM, NUM2GIDT):
defaulted to conversion using long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-19 13:15:36 +00:00
matz
2551d9b534
* ext/socket/socket.c (unix_peeraddr): wrong syscall name in error
...
message for #peeraddr. a patch from Sam Roberts
<sroberts at uniserve.com>. [ruby-core:10366]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-19 08:17:14 +00:00
nobu
9c79e14614
* ext/etc/etc.c (etc_getgrgid): missed to replace a macro.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-18 13:56:15 +00:00
eban
728fa4a661
* 2007-02-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-18 10:47:07 +00:00
tadf
c04f4aa0ee
updated based on date2 4.0.3.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-18 10:34:58 +00:00
nobu
562f256c54
* configure.in (pid_t, uid_t, gid_t): check if defined.
...
* intern.h, process.c, rubyio.h, ext/etc/etc.c, ext/pty/pty.c: use
rb_{pid,uid,gid}_t instead of plain int. [ruby-dev:30376]
* ext/etc/extconf.rb (PIDT2NUM, NUM2PIDT, UIDT2NUM, NUM2UIDT, GIDT2NUM,
NUM2GIDT): moved to configure.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-18 04:13:09 +00:00
nobu
bf6efa76c0
* configure.in (pid_t, uid_t, gid_t): check if defined.
...
* intern.h, process.c, rubyio.h, ext/etc/etc.c, ext/pty/pty.c: use
rb_{pid,uid,gid}_t instead of plain int. [ruby-dev:30376]
* ext/etc/extconf.rb (PIDT2NUM, NUM2PIDT, UIDT2NUM, NUM2UIDT, GIDT2NUM,
NUM2GIDT): moved to configure.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-18 04:11:57 +00:00
ko1
353cd25170
* object.c (rb_obj_ivar_set/get/defined): fix to check :@_v/C id.
...
* test/testunit/test_testcase.rb: fix to use instance_variable_get()
to access @_result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-16 12:36:49 +00:00
ko1
b13c74bf82
* intern.h: add a prototype of rb_sym_to_s().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-16 12:00:27 +00:00
matz
a9e13cc40c
* math.c (math_log): update document to mention second optional
...
argument for logarithm base.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-16 11:12:11 +00:00
matz
163163afdf
* parse.y (mrhs): need to append by arg_append().
...
[ruby-talk:239385]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-16 10:58:04 +00:00
drbrain
d908340910
* lib/.document: Apply patch for irb, e2mmap and README by Hugh Sasse
...
<hgs at dmu.ac.uk> from [ruby-core:10135]
* lib/prettyprint.rb: Suppress RDoc for PrettyPrint test suite.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-16 02:23:15 +00:00
usa
691b6fb869
* win32/win32.c (get_pioinfo_extra): new function for VC++8 SP1
...
workaround. [ruby-core:10259]
* win32/win32.c (NtInitialize): call above function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-15 11:50:28 +00:00
knu
ea51ff20ac
* lib/uri/generic.rb (URI::Generic::userinfo): Considering how
...
`scheme://user:@...', `scheme://:password@...' and
`scheme://:@...' are parsed, an empty user name or password
should be allowed and represented as it is.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-15 07:43:37 +00:00
ko1
5e4e71a348
* vm.(c|h), yarvcore.(c|h) (yarvGlobalStateVersion): rename to
...
ruby_vm_global_state_version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 18:08:10 +00:00
ko1
a8d47615da
* test/fileutils/test_fileutils.rb (check_singleton): fix to use
...
symbole instead of string.
* test/io/nonblock/test_flush.rb: enable tests.
* test/xmlrpc/test_webrick_server.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 16:53:00 +00:00
ko1
970df0d138
* lib/delegate.rb: catch up with class local variable (@_v) spec.
...
* lib/singleton.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 16:50:16 +00:00
suke
fdf4aa982f
* ext/win32ole/win32ole.c (ole_variant2val): VC++6 does not
...
support VT_I8, VT_UI8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 13:57:59 +00:00
ko1
bee3de05ad
* configure.in: change stack limit to 2MB from 32MB.
...
* win32/Makefile.sub: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 13:13:52 +00:00
knu
559be019de
* ext/digest/lib/digest.rb (Digest::self.const_missing): Drop
...
autoloads for sha2 classes in favor of handling in
const_missing(), to work around a problem exposed on OS X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 12:45:59 +00:00
ko1
b9084ef408
* thread_pthread.ci (native_thread_create): adjust 4KB (page size)
...
alignment. (missed at last commit)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 12:24:20 +00:00
ko1
b1c1f4957f
* thread_pthread.ci (native_thread_create): adjust 4KB (page size)
...
alignment.
* thread_pthread.ci (CHECK_ERR): call rb_bug()
instead of printf() and exit().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 12:15:39 +00:00
matz
3044252beb
* lib/date/format.rb (Date::Format::Bag::method_missing): need not
...
to use instance variables corresponding each method; use Hash
instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 08:10:10 +00:00