nobu
3dacfd3fe4
* encoding.c (rb_enc_compatible): ASCII encoding is compatible with
...
ASCII-compatible encoding, even for non-string objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-29 08:18:36 +00:00
matz
d9ff0a6c22
* array.c (rb_ary_assoc): check and convert inner arrays (assocs)
...
using #to_ary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 16:52:40 +00:00
nobu
bb053cd824
* io.c (rb_io_tell, rb_io_seek): check errno too. [ruby-dev:32093]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 05:19:33 +00:00
nobu
2070362f33
* parse.y (parser_tokspace): make space in token buffer.
...
* parse.y (parser_yylex): fix encoding of single character literal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 08:09:40 +00:00
matz
15112cf003
* enum.c (enum_cycle): hide temporary array from ObjectSpace.
...
[ruby-core:12762]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-22 15:29:17 +00:00
nobu
00befb4b3f
* encoding.c (rb_enc_compatible): check if two objects have compatible
...
encodings.
* encoding.c (enc_compatible_p): added Encoding.compatible?.
* include/ruby/encoding.h (rb_enc_compatible): prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-22 01:57:08 +00:00
nobu
b2c81746ac
* encoding.c (rb_enc_default, rb_enc_primary): return pointers to
...
rb_encoding of default and primary respectively. [ruby-core:12795]
* encoding.c (set_primary_encoding): removed primary_encoding setter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-21 09:29:19 +00:00
nobu
6c77d58356
* file.c (rb_get_path): returns frozen string.
...
* file.c (rb_file_s_chown, rb_file_s_lchown): use uid_t and gid_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-20 02:49:22 +00:00
nobu
c2aee4c878
* range.c (range_last): removed unused variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-19 01:55:44 +00:00
matz
fada885be6
* range.c (range_first): takes first n element if argument is
...
given. [ruby-core:12697]
* range.c (range_last): returns last n elements if argument is
given.
* array.c (rb_ary_subseq, rb_ary_last): export.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-18 06:58:35 +00:00
nobu
81ed881511
* re.c (rb_reg_initialize_m): allow binary encoding option.
...
[ruby-dev:32083]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-16 16:57:08 +00:00
matz
ff3859899d
* encoding.c (Init_Encoding): define #to_s to show encoding name
...
in to_s representation as well as #inspect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-15 16:28:18 +00:00
nobu
14264f5f62
* marshal.c (r_bytes0): check if source has enough data.
...
[ruby-dev:32054]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-15 00:58:09 +00:00
nobu
9c24fed339
* encoding.c (rb_cEncoding): new Encoding class.
...
* encoding.c (rb_to_encoding, rb_to_encoding_index): helper functions.
* encoding.c (rb_obj_encoding): return Encoding object now.
* gc.c (garbage_collect): mark Encoding objects.
* string.c (rb_str_force_encoding): accept Encoding object as well as
encoding name.
* include/ruby/encoding.h (rb_to_encoding_index, rb_to_encoding):
prototypes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-13 16:32:40 +00:00
matz
d962ef7454
* parse.y: encoding specifier should work if the line matches
...
/coding[:=] ?/, a la Python PEP-263, so that VIM comments like
"# vim: set fileencoding=<encoding name>" should be recognized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-12 15:04:46 +00:00
nobu
b1e97c9070
* trunk/parse.y (magic_comments): add "encoding" as same as "coding".
...
* trunk/parse.y (set_file_encoding): special file encoding handling.
* trunk/parse.y (parser_yylex): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-12 06:04:57 +00:00
matz
5fc7312d1b
* include/ruby/oniguruma.h (OnigEncodingTypeST): add OnigEncoding
...
parameter to every function members.
* include/ruby/oniguruma.h (OnigEncodingTypeST): add auxiliary
data member to provide user defined data for an encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-10 15:05:32 +00:00
nobu
8c19ecbeeb
* string.c (rb_enc_str_coderange): fixed checkfor non-ascii.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-10 05:31:08 +00:00
nobu
78c4cc29ae
* parse.y (STR_NEW3): check for if single byte sequence.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-09 06:40:26 +00:00
ko1
3c78d621e6
* insns.def (opt_eq): fix to use rb_str_equal().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-07 06:49:38 +00:00
matz
bd00bb3ef7
* include/ruby/defines.h: no longer provide DEFAULT_KCODE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-05 17:39:59 +00:00
knu
ee6901b199
2007-10-05
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-04 19:56:35 +00:00
matz
612b2ed6a7
* array.c (rb_ary_permutation): remove C99 dependency.
...
[ruby-dev:31934]
* array.c (rb_ary_product): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-04 06:51:17 +00:00
nobu
ee2ac58e4d
* ruby.c (ruby_process_options): push frame with program name.
...
[ruby-core:12351]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-03 01:06:57 +00:00
ko1
88f570d9ae
* proc.c (proc_dup): proc->block.proc should be self.
...
* bootstraptest/test_knownbug.rb, test_method.rb:
move a fixed test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-01 22:02:23 +00:00
nobu
b9b34059a6
* eval.c (ruby_options), ruby.c (proc_options, process_options): not
...
call exit(2) directly. [ruby-dev:31912]
* eval.c (ruby_run_node): deal with direct exit code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-01 01:52:32 +00:00
usa
38694262ef
* variable.c (obj_ivar_each): get rid of warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-29 15:56:50 +00:00
ko1
534d057e58
* cont.c: Thread local storage should be fiber local.
...
* bootstraptest/test_knownbug.rb, test/ruby/test_fiber.rb:
move a fixed test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-28 19:04:45 +00:00
ko1
6698dd81e6
* benchmark/driver.rb: fix file selection algorithm.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-28 03:51:41 +00:00
nobu
4d1450fc96
* process.c (rb_waitpid): no needs to poll. [ruby-dev:31871]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-26 18:17:43 +00:00
nobu
52866db1fe
* parse.y (parser_yyerror): limit error message length.
...
[ruby-dev:31848]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-25 20:12:24 +00:00
matz
72ea36112c
* eval.c (rb_longjmp): source file information may be NULL.
...
[ruby-dev:31849]
* eval.c (ruby_finalize_0): clear trace_func before finalization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-25 12:40:17 +00:00
matz
af4310be97
* lib/weakref.rb (WeakRef): remove debug print. [ruby-dev:31799]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-24 13:15:34 +00:00
nobu
bc5d305843
* eval_method.ci (remove_method): check for undefined method.
...
[ruby-dev:31816]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-22 21:16:21 +00:00
nobu
2f4951f01e
* ext/stringio/stringio.c (strio_init): separate from strio_initialize
...
to share with strio_reopen properly. [ruby-Bugs-13919]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-21 20:19:51 +00:00
matz
f4d9d3d39b
* hash.c (hash_equal): should call rb_eql when argument eql is set.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-20 17:03:41 +00:00
nobu
bf6575ef62
* io.c (popen_exec), process.c (rb_spawn): stop other threads before
...
exec. [ruby-core:08262]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-20 08:28:03 +00:00
kou
1b56bcce22
* lib/rss.rb, lib/rss/, test/rss/:
...
- 0.1.9 -> 0.2.0.
- supported Slash module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-15 04:41:28 +00:00
ko1
8b92f5df32
* insnhelper.ci (vm_expandarray): should be volatile value for GC.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-14 07:14:13 +00:00
nobu
f41c0a54e2
* parse.y (rb_id2str): fixed typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-13 04:47:10 +00:00
nobu
9391daf954
* io.c (rb_io_s_sysopen): should not use alloca for unknowen size
...
input. [ruby-dev:31775]
* parse.y (rb_id2str): ditto.
* marshal.c (w_float): use snprintf instead of sprintf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-12 06:19:06 +00:00
matz
3ee33a6dbc
* range.c (range_step): fixed integer overflow. [ruby-dev:31763]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-09 16:11:28 +00:00
usa
eda22a3411
* 2007-09-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-07 16:48:10 +00:00
matz
ae11bc70f1
* io.c (rb_io_getc): forgot to commit rb_enc_mbclen() fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-06 15:30:49 +00:00
nobu
629b1e4324
* string.c (rb_str_succ, rb_str_chop_bang, rb_str_chop): m17n support.
...
[ruby-dev:31734]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-06 03:42:12 +00:00
matz
c349959778
* string.c (rb_str_splice): integer overflow for length.
...
[ruby-dev:31739]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-05 13:06:01 +00:00
suke
9ecd43fa98
* ext/win32ole/win32ole.c: add WIN32OLE_EVENT#unadvise.
...
* test/win32ole/test_win32ole_event.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-04 11:48:53 +00:00
nobu
1acdd51cf9
* common.mk (vm.o): depends on st.h too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-03 06:37:11 +00:00
nobu
d4cbf95002
* st.c (st_numcmp, st_numhash): use st_data_t instead of long, because
...
the former may be larger than the latter.
* include/ruby/st.h (CHAR_BIT): get rid of magic number.
* include/ruby/st.h (struct st_table): num_entries never exceed
num_bins.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-01 02:14:40 +00:00
nobu
7aaf7dac8d
* parse.y (assignable_gen): ignore already erred names.
...
* parse.y (shadowing_lvar_gen): always make new block local variable
when shadowing outer local variable. [ruby-dev:31507]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-30 18:49:00 +00:00
matz
3d7f8c2320
* string.c (str_gsub): should not use mbclen2() which has broken API.
...
* re.c: remove rb_reg_mbclen2().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-29 19:16:02 +00:00
matz
3783246a2e
* include/ruby/defines.h (flush_register_windows): call "ta 0x03"
...
even on Linux/Sparc. [ruby-dev:31674]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-29 02:15:03 +00:00
ko1
6244e502cc
* thread.c: fix Mutex to be interruptable lock.
...
* thread_win32.ci, thread_win32.h, thread_pthread.ci, thread_pthread.h:
prepare native_cond_*() which are based on pthread_cond_*() spec.
* prelude.rb: fix Mutex#synchronize method.
* vm_core.h, include/ruby/intern.h: change unblock function interface
(to pass some user data).
* file.c, process.c: ditto.
* benchmark/bm_vm2_mutex.rb: add a benchmark for mutex.
* benchmark/bm_vm3_thread_mutex.rb: add a benchmark for mutex
with contension.
* benchmark/run.rb: fix to remove ENV['RUBYLIB'] for matzruby.
* test/ruby/test_thread.rb: add a test.
* common.mk: fix benchmark options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-27 16:48:14 +00:00
matz
98d6d636e3
* enumerator.c (enumerator_next): message changed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-26 16:33:45 +00:00
matz
1ba65ebfe9
* include/ruby/encoding.h: remove unused rb_enc_ismbchar().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-25 15:27:08 +00:00
ko1
b285d26a16
* compile.c (compile_massign_opt): fix to skip massign optimization
...
with global variables.
* bootstraptest/test_massign.rb: add some tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-24 15:19:00 +00:00
matz
99ab1fed49
* eval.c (rb_f_send_bang): abandon the name funcall for private
...
aware method call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-24 08:15:37 +00:00
matz
3e68736791
* missing/strtod.c: removed. [ruby-dev:31588]
...
* LEGAL: updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-22 15:05:56 +00:00
ko1
c5e4cd0638
* cont.c: add Fiber#resume and Fiber.yield.
...
and Fiber::Core class to realize Coroutine.
* include/ruby/intern.h: declare rb_fiber_yield(), rb_fiber_resume(),
* enumerator.c: use above api.
* test/ruby/test_fiber.rb: fix and add tests for above changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-21 18:51:39 +00:00
ko1
ad56f8c611
* enumerator.c (next_i): fix to return with Fiber#yield at
...
the end of each block. [ruby-dev:31470]
* enumerator.c (enumerator_next_p): call init_next if not
initialized. [ruby-dev:31514]
* test/ruby/test_enumerator.rb: add tests for Enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-20 18:58:32 +00:00
nobu
f2f08335df
* vm_core.h (struct rb_thread_struct): removed first_func_arg and
...
reuse first_args instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-20 14:17:16 +00:00
ko1
98e7aa679a
* insnhelper.ci (vm_callee_setup_arg): fix to mark enough VM stack.
...
[ruby-dev:31492]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-19 03:35:39 +00:00
nobu
69dd06ae68
* eval.c (frame_func_id): return proper method ID.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-17 16:12:03 +00:00
ko1
e7c3478261
* insns.def (throw): insert a RUBY_VM_CHECK_INTS(). [ruby-dev:31361]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-16 16:24:18 +00:00
ko1
3efcb087a3
* cont.c (rb_fiber_m_yield): added. use this function
...
for Fiber#yield instead of rb_fiber_yield.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-15 17:56:22 +00:00
matz
c8c6ab229a
* ext/stringio/stringio.c (strio_getc): should returns
...
one-character string.
* ext/stringio/stringio.c: remove unnecessary prototypes.
* ext/stringio/stringio.c (strio_getbyte): new method.
* ext/stringio/stringio.c (strio_readbyte): new method.
* ext/stringio/stringio.c (strio_ungetc): should take a string as
an input.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-15 00:33:33 +00:00
ko1
9cdeae9dad
* common.mk: change test order (test -> btest).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-14 10:53:06 +00:00
ko1
99b51f6020
* template/yasmdata.rb.tmpl: fix type and name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-12 19:02:30 +00:00
nobu
1a7564a0ed
* thread.c (thread_start_func_2): not re-raise to main thread if it is
...
joining the current thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-10 15:01:14 +00:00
nobu
d3a1980b96
* parse.y (internal_id_gen): internal ID must be bigger than
...
tLAST_TOKEN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-09 19:47:11 +00:00
matz
e2de7c70dc
* enum.c (enum_cycle): typo fixed. a patch from Kazuhiro
...
NISHIYAMA <zn AT mbf.nifty.com>. [ruby-dev:31362]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-08 17:03:33 +00:00
nobu
9644a2c02c
* common.mk (btest-miniruby, test-sample): split the test target
...
so that -k option works.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-08 02:02:45 +00:00
matz
b3e977a4c0
* enum.c (enum_cycle): new method to cycle enumerable forever.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 16:26:17 +00:00
nobu
ee8f40b5a6
* common.mk (INSNS): not chdir to srcdir.
...
* lib/vm/instruction.rb (RubyVM::SourceCodeGenerator): --destdir
option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 04:00:09 +00:00
nobu
43009063c7
* io.c (pipe_open_v, pipe_open_s): separate array and string
...
cases. [ruby-dev:31344]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-04 19:56:27 +00:00
nobu
899742b269
* lib/mkmf.rb: more verbose message. [ruby-Bugs-12766]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 21:17:37 +00:00
nobu
46e848a65a
* sprintf.c (rb_f_sprintf): should not check positional number as
...
width. [ruby-core:11838]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 04:46:41 +00:00
nobu
12b1e59f2e
* generic.rb (URI::Generic::merge_path): behave as RFC 3986.
...
[ruby-talk:252052]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-01 03:40:08 +00:00
nobu
798b8d2791
* bignum.c (rb_big_aref): check for Bignum index range.
...
[ruby-dev:31271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-30 02:16:42 +00:00
matz
0e83f22cf5
* ext/digest/lib/digest.rb (Digest::self.const_missing): avoid
...
infinite recursive const_missing call. [ruby-talk:262193]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-28 00:44:08 +00:00
nobu
ea7e249079
* dln.c (conv_to_posix_path): removed.
...
* ruby.c (rubylib_mangled_path, rubylib_mangled_path2): return
VALUE instead of a pointer to static buffer.
* ruby.c (push_include_cygwin): fixed buffer overflow.
[ruby-dev:31297]
* ruby.c (ruby_init_loadpath): not convert built-in paths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-26 04:38:07 +00:00
matz
6afa428a34
* regint.h (USE_MATCH_RANGE_IS_COMPLETE_RANGE): undef to achieve old
...
rindex behavior. [ruby-dev:31265]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-23 16:11:37 +00:00
matz
46eb6e9428
* parse.y (value_expr_gen): warn for empty expression ().
...
[ruby-dev:31252]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-23 09:13:44 +00:00
nobu
fb00d61acf
* thread.c (is_ruby_native_thread): made an int function as
...
well as version 1.8.
* include/ruby/ruby.h (is_ruby_native_thread): moved prototype
from intern.h as well as version 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-22 07:07:12 +00:00
nobu
90ae4b364b
* lib/mkmf.rb (init_mkmf): should remove mkmf.log too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-21 03:06:50 +00:00
nobu
4beb119393
* bootstraptest/runner.rb (get_result_string): check $?.coredump?
...
first.
* bootstraptest/runner.rb (cleanup_coredump, check_coredump): see
stackdump file too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-20 00:50:42 +00:00
nobu
09ce106ab3
* bignum.c (rb_big_lshift, rb_big_rshift): separated functions
...
to get rid of infinite recursion. fixed calculation in edge
cases. [ruby-dev:31244]
* numeric.c (rb_fix_lshift, rb_fix_rshift): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-19 05:38:48 +00:00
matz
73c8156360
* time.c (time_succ): Time#succ should return a time object in the
...
same timezone mode to the original. [ruby-talk:260256]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-17 23:55:17 +00:00
matz
bc8724d05f
* lib/base64.rb (Base64::b64encode): should not specify /o option
...
for regular expression. [ruby-dev:31221]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-16 15:45:35 +00:00
nobu
66e1be60c3
* bignum.c (rb_big_pow): removed invariant variable. [ruby-dev:31236]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-15 15:26:12 +00:00
nobu
2adf19d6c4
* bignum.c (get2comp): do nothing for empty Bignum. [ruby-dev:31225]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-14 19:42:25 +00:00
matz
3e6f0e6a20
* numeric.c (int_round): should not return false, but self.
...
[ruby-dev:31212]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 15:38:48 +00:00
nobu
b53224b493
* lib/mkmf.rb (link_command, cc_command, cpp_command): do not expand
...
::CONFIG which is an alias of MAKEFILE_CONFIG.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 01:10:48 +00:00
usa
2e4f2aaaf0
* include/ruby/ruby.h (FIX2ULONG): drop sign bit for LLP64 platform.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-11 20:35:10 +00:00
nobu
c18e8ad7e9
* bcc32/{Makefile.sub,setup.mak}: remove surplus slash from srcdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-10 05:50:10 +00:00
usa
a87664923f
* 2007-07-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-08 19:16:33 +00:00
ko1
0afe6cb08f
* insnhelper.ci (vm_yield_setup_args), vm.c, insns.def:
...
fix to pass nil as block parameter to yielded block.
[ruby-dev:31147]
* bootstraptest/test_block.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-07 06:34:40 +00:00
ko1
b9171a73c4
* insns.def: fix to invoke nil.to_splat on NODE_ARGSCAT.
...
[ruby-dev:31138].
* bootstraptest/test_literal.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-05 17:11:45 +00:00
nobu
ba563e4a41
* include/ruby/st.h, st.c (st_init_table, st_init_table_with_size):
...
constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-05 01:06:49 +00:00
ko1
d82f3e7d5c
* compile.c (compile_massign): fix massign compilation
...
(example: a, *v, (*x) = ...). [ruby-dev:31107]
* bootstraptest/test_massign.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-03 18:50:28 +00:00
ko1
0e5360b2e4
* cont.c (cont_save_machine_stack): clear saved_thread.machine_stack*.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-03 04:53:05 +00:00
ko1
27013e71e4
* yarvcore.h, compile.c, insnhelper.ci, iseq.c, vm.c:
...
rename structure names and field names.
* insnhelper.h, insns.def: add GET_CONST_INLINE_CACHE().
* iseq.c: add rb_iseq_build_for_ruby2cext().
* yarvcore.h, vm.h: move declaration of rb_insn_func_t
to yarvcore.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-01 18:16:02 +00:00
ko1
eb9aaa4c4f
* vm.h: rename insn_func_type to rb_insn_func_type.
...
* vm_evalbody.ci: ditt.
* insns.def: add opt_call_native_compiled instruction
instead of opt_call_native_compiled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-30 18:02:24 +00:00
nobu
fd3f9eee0e
* parse.y (parser_yylex): return non-valid token for an invalid
...
instance/class variable name. a patch from from Yusuke ENDOH
<mame AT tsg.ne.jp>. [ruby-dev:31095]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-29 15:17:02 +00:00
nobu
cf46a2fce6
* parse.y (dsym): return non-null NODE even if yyerror(). based on a
...
patch from from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:31085]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-29 02:23:13 +00:00
ko1
4a7d47e41a
* compile.c (iseq_compile_each): fix popped backref and others.
...
([ruby-dev:31068]).
* compile.c (iseq_compile_each): remove needless statements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-27 16:21:57 +00:00
matz
99c58e9ebc
* string.c (rb_str_clear): need to check STR_EMBED_P() before
...
free()ing memory. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>.
[ruby-dev:31062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-26 15:19:39 +00:00
ko1
ed4e57690c
* insnhelper.ci, vm.c: complete block parameter support.
...
post arguments, optional arguments, block argument.
* compile.c, parse.y: fix {|a|} parameter.
* insnshelper.ci, insns.def: revert caller_setup_args() option
(need_block_check) parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-25 16:05:17 +00:00
ko1
97ba019c94
* vm.c: some refactoring.
...
* rename th_* to vm_*.
* remove unused variables functions.
* add prototypes.
* blockinlining.c, compile.c, cont.c, eval.c, eval_intern.h,
eval_jump.h, eval_load.c, inits.c, insns.def, iseq.c, parse.y,
proc.c, process.c, signal.c, thread.c, vm.c, vm_dump.c,
vm_evalbody.ci, yarvcore.c, yarvcore.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-24 15:42:41 +00:00
matz
3f2fe37200
* enum.c (enum_minmax): new method to get the minimum and maximum
...
values from the enumerable at once.
* enum.c (enum_minmax_by): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-23 15:05:05 +00:00
matz
115410ecde
* string.c (rb_str_upto): add optional argument to specify
...
exclusiveness.
* range.c (range_step): use String#upto with optional argument.
* range.c (range_each): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-22 16:23:16 +00:00
nobu
3fc180ebeb
* parse.y (rb_intern2): name may not be NUL-terminated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-21 08:12:14 +00:00
nobu
9a7a11564c
* parse.y (rb_intern2): use rb_intern2 to intern without trailing
...
equal sign.
* parse.y (rb_intern2, ripper_id2sym): fixed indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-19 19:43:59 +00:00
nobu
f91ec98d43
* eval_load.c (load_ext, rb_require_safe): pass VALUE instead of
...
pointer. [ruby-Bugs-11659]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-19 01:53:31 +00:00
nobu
3dc070e90e
* variable.c (rb_path2class): get rid of dangling pointer caused by
...
optimized out value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 15:56:36 +00:00
ko1
f84c8cb190
* sample/test.rb: fix to show line information whether test succeeds.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 03:18:12 +00:00
eban
e948c70e06
* 2007-06-14
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-14 06:38:07 +00:00
nobu
0e62875433
* configure.in (darwin): prohibit loading extension libraries to
...
miniruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-12 21:04:07 +00:00
usa
3cf184ce6f
* 2007-06-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-12 04:09:12 +00:00
nobu
2b592580bf
* include/ruby: moved public headers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 03:06:15 +00:00
matz
4d43632852
* parse.y (call_args): allow splat argument after unpacked
...
assocs like 1.8 does.
* parse.y (call_args): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 05:58:06 +00:00
ko1
ed88975237
* eval_intern.h, eval.c (ruby_init): remove POP_TAG_INIT().
...
* cont.c (rb_fiber_start): remove zero-clearing tag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-06 16:04:02 +00:00
ko1
78029f00d5
* parse.y (new_yield), compile.c (iseq_compile_each): fix
...
passing parameter.
* eval.c, eval_jump.h: simplify rb_yield*.
* proc.c (proc_mark): fix to mark proc->block.proc.
* proc.c (Init_Proc): add Proc#lambda?
* test/ruby/test_lambda.rb: add some tests.
* vm.c (invoke_block): fix to check lambda block or not.
* vm.c (th_yield_setup_args): fix to check arguments size
when lambda block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 17:26:00 +00:00
nobu
99d65b14b4
* compile.c, dir.c, eval.c, eval_jump.h, eval_method.h, numeric.c,
...
pack.c, parse.y, re.c, thread.c, vm.c, vm_dump.c, call_cfunc.ci,
thread_pthread.ci, thread_win32.ci: fixed indentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-05 04:25:10 +00:00
usa
f3dfa40734
* 2007-06-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-04 12:48:11 +00:00
matz
2c4aff3fe0
* numeric.c (int_round): small optimization to handle bignums.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-01 16:27:05 +00:00
matz
3d7439d568
* enum.c (each_with_index_i): should work well with continuation.
...
a patch from sheepman <sheepman AT sheepman.sakura.ne.jp>.
[ruby-dev:30846]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-31 16:59:12 +00:00
nobu
44475bb208
* lib/benchmark.rb (Benchmark::Job::item): avoid modifying the
...
argument unintentionally. [ruby-talk:253676]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-31 08:26:31 +00:00
nobu
0d2109239d
* parse.y (open_args, arg_ambiguous, parser_warning): should not use
...
rb_warning in the parser.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-29 15:22:49 +00:00
nobu
d15b7d0509
* win32/win32.c (rb_w32_opendir, rb_w32_readdir): eliminate magic
...
numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-29 01:53:14 +00:00
ko1
57062d91b9
* cont.c: support Fiber. Check test/ruby/test_fiber.rb for detail.
...
Fiber is known as "Micro Thread", "Coroutine", and other terms.
At this time, only Fiber#pass is supported to change context.
I want to know more suitable method name/API for Fiber (... do you
know more suitable class name instead of Fiber?) as "suspend/resume",
"call", "yield", "start/kick/stop/restart", ....
* eval.c, eval_intern.h, thread.c, yarvcore.c, yarvcore.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-27 19:12:43 +00:00
nobu
a1cb9efd34
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-25 15:04:05 +00:00
usa
e8a5295841
* regint.h (include): on some platform, defines.h redefines
...
SIZE_OF_LONG_LONG so souldn't re-include config.h after included
defines.h.
* regint.h (vsnprintf): ruby on windows already have vsnprintf macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-25 02:13:18 +00:00
ko1
7c4ff2d332
* cont.c: support callcc which everyone love.
...
incomplete. please give me bug reports.
* common.mk, inits.c, thread.c: ditto.
* yarvcore.c: export thread_mark().
* yarvcore.h: disable value cache option.
* eval_intern.h: set th_get_ruby_level_cfp to inline.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-23 22:52:19 +00:00
nobu
80a0e2f753
* ext/extmk.rb, ext/purelib.rb, lib/mkmf.rb, runruby.rb: clear default
...
load path to get rid of load pre-installed extensions/libraries.
[ruby-core:11017]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-22 20:48:34 +00:00
matz
64bffee8d6
* ruby.c (set_arg0): support RSTRING_LEN on HP-UX. a patch from
...
WATANABE Tetsuya <Tetsuya.WATANABE AT nifty.com>. [ruby-dev:30806]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-22 07:38:50 +00:00
ko1
affa7430b7
* compile.c, vm_macro.def: support tail call optimization
...
(on default, this feature is not enabled).
* iseq.c, compile.c, vm_opts.h: add "tailcall_optimization"
option.
* sample/test.rb (test_ok): fix to adjust tailcall stack layout.
* insns.def, vm.c, compile.c, yarvcore.c, yarvcore.h:
add opt_gt, opt_le instructions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-21 04:46:51 +00:00
nobu
62b3932c9c
* file.c (Init_File): method definition mismatch.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-18 16:04:22 +00:00
nobu
635c599d6b
* ruby.c (DllMain, ruby_init_loadpath): use DLL instance handle given
...
to DllMain instead of VirtualQuery so that loadpath becomes relative
from the DLL on WinCE too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-18 02:11:42 +00:00
ko1
84fbcb9694
* debug.c (ruby_debug_node): fix to show node line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-17 04:00:36 +00:00
usa
216dcd80ff
* win32/win32.c (init_stdhandle): stderr should be without buffering,
...
but mswin32 use buffering when stderr is not connected to tty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-15 06:01:33 +00:00
matz
aa77090aef
* array.c (rb_ary_choice): should return nil when the array is
...
empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-13 16:54:58 +00:00
eban
2216212554
* 2007-05-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-12 09:29:54 +00:00
nobu
a1295b0f79
* iseq.c (iseq_data_to_ary): internal IDs must not be exposed.
...
[ruby-core:11073]
* parse.y (internal_id_gen): now returns scope local ID instead of
global one.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-11 06:26:06 +00:00
nobu
f563dc875c
* thread.c (rb_thread_priority): rdoc fix; the initial value is
...
inherited from the creating thread. [ruby-core:10607]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-10 01:12:10 +00:00
nobu
a78970e211
* 2007-05-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-09 01:47:55 +00:00
usa
91e5b6f1fa
* 2007-05-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-08 11:41:13 +00:00
kou
1548542f21
* lib/rss/image.rb, test/rss/test_image.rb: fixed Image module
...
namespace URI. reported by Dmitry Borodaenko. Thanks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-07 02:02:50 +00:00
eban
73e20674f6
* 2007-05-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-06 09:13:52 +00:00
nobu
84daaed844
* lib/date/format.rb (Format::Bag#method_missing): get rid of
...
modifying orginal argument. [ruby-core:11090]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-05 07:25:35 +00:00
nobu
5bfe949dd5
* thread.c: copied rdocs from fastthread.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-03 13:04:42 +00:00
nobu
0c1f1fb531
* bignum.c (rb_big_pow): improvement by calculating from MSB and using
...
factorization. <http://yowaken.dip.jp/tdiary/20070426.html#p01 >
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-01 20:39:48 +00:00
matz
2b6252e64e
* array.c (rb_ary_choice): a new method to choose an element
...
randomly from an array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-01 08:45:28 +00:00
ko1
75d28f8870
* yarvcore.h, compile.c (set_arguments): support post arguments.
...
* test/ruby/test_method.rb: add tests for above.
* test/ruby/test_proc.rb: ditto.
* proc.c: fix an arity bug ([ruby-core:11029]).
* vm.c, vm.h, insns.def, vm_dump.h: fix bmethod process.
* vm.c: support block argument on block parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-01 04:35:58 +00:00
ko1
9d89855052
* compile.c: support multiple splat (e.g, [a, *b, *c, e, *f]).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-26 16:54:58 +00:00
nobu
da4ad54e47
* misc/ruby-style.el: new file. C/C++ style for ruby source code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-26 04:54:01 +00:00
nobu
4134a542ba
* thread.c (alloc_event_fook, rb_thread_remove_event_hook): should
...
return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25 01:32:24 +00:00
nobu
787c3ead18
* dir.c (do_stat, do_lstat, do_opendir): should not warn ENOTDIR.
...
[ruby-talk:248288]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-24 00:33:09 +00:00
nobu
692010a235
* lib/mkmf.rb (libpathflag): not to append RPATHFLAG to current
...
directory.
* lib/mkmf.rb (init_mkmf): add current directory to default
library path with highest priority. [ruby-core:10960]
* lib/mkmf.rb (LINK_SO): LIBPATH to be placed before DLDFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-23 13:08:29 +00:00
nobu
3fc37d71c4
* eval.c (ruby_cleanup): re-send signal. [ruby-dev:30516]
...
* eval_error.h (error_handle): no message when exiting by signal.
* intern.h (rb_thread_signal_raise, ruby_default_signal): prototypes.
* signal.c (esignal_init): takes a signal number and an optional
signal name.
* signal.c (interrupt_init): pass SIGINT always.
* signal.c (ruby_default_signal): invoke system default signal
handler.
* signal.c (rb_f_kill): use NUM2PIDT instead of NUM2INT.
* signal.c (rb_signal_exec, trap): handle SIGTERM. [ruby-dev:30505]
* thread.c (rb_thread_signal_raise): now takes signal number instead
of signal name.
* thread.c (rb_thread_signal_exit): since rb_make_exception() calls
#exception method, rb_class_new_instance() is not needed here.
* yarvcore.h (struct rb_vm_struct), eval_jump.h (terminate_process):
exit_code is no longer stored in VM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-19 17:37:03 +00:00
ko1
2dd91facca
* lib/optparse.rb: fix to override conv proc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-19 08:48:03 +00:00
nobu
5f8b25745b
* configure.in (LDFLAGS): prepend -L. instead appending it to
...
XLDFLAGS. [ruby-core:10933]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-17 17:17:15 +00:00
matz
9cd678b72f
* time.c (time_arg): should allow to specify 24:00.
...
[ruby-core:10915]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 07:28:16 +00:00
ko1
baeb828c03
* compile.c (iseq_compile_each): check node->nd_state == 1, not !0 .
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-12 07:06:17 +00:00
usa
314734add8
* win32/win32.[ch] (rb_w32_enter_critical, rb_w32_leave_critical): no
...
need to reject reentrance. removed.
* rubysig.h (RUBY_CRITICAL): follow above changes.
* rubysig.h (TRAP_BEG, TRAP_END): no need to save errno.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-11 07:37:02 +00:00
usa
f024801e1e
* thread_pthread.ci (native_thread_create): initialize sleep_cond.
...
fixed: [ruby-dev:30675]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-10 06:53:39 +00:00
usa
1486959550
* thread.c (do_select): use ubf_select() as UBF on windows.
...
* win32/win32.c (do_select): shouldn't call catch_interrupt() here.
fixed: [ruby-dev:30674], reported by wanabe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-09 09:29:45 +00:00
nobu
e12090b9b2
* compile.c (defined_expr): test arguments of NODE_CALL and so
...
on as well as NODE_ATTRASGN. [ruby-core:10886]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-08 04:27:41 +00:00
usa
406389a9f3
* 2007-04-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-06 01:29:48 +00:00
nobu
f1796fdb2c
* error.c (rb_notimplement), io.c (pipe_open): removed definite
...
articles and UNIX manual section from messages. [ruby-dev:30690]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-04 15:42:16 +00:00
nobu
1f9d0992ab
* io.c (pipe_open): raise NotImplementedError for command "-" on
...
platforms where fork(2) is not available. [ruby-dev:30681]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-04 01:17:34 +00:00
usa
7fa11815f8
* 2007-04-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-03 00:14:28 +00:00
nobu
790999028d
* insns.def (throw), thread.c, yarvcore.h (throwed_errinfo): fixed
...
typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-02 12:54:42 +00:00
eban
d46b261599
* 2007-03-30
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-29 17:32:56 +00:00
usa
240f1279aa
* win32/win32.c (init_env, insert, cmdglob, rb_w32_cmdvector,
...
rb_w32_opendir, rb_w32_readdir, rb_w32_strerror, rb_w32_stati64,
rb_w32_get_environ): use strlcpy() and strlcat().
* win32/win32.c (rb_w32_opendir): use realloc() instead of xrealloc().
* win32/win32.c (rb_w32_closedir): check NULL before free pointers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-23 02:30:53 +00:00
usa
fa36cffb3e
* 2007-03-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-22 01:28:41 +00:00
nobu
df896a0560
* bignum.c (rb_big2str0): round up for the most significant digit.
...
[ruby-core:10686]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-21 08:04:11 +00:00
nobu
08b53aa67a
* thread.c (thread_create_core): block is not used if first_func
...
is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-19 16:02:05 +00:00
usa
a20ecf3be4
* 2007-03-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-19 03:22:01 +00:00
usa
f3cde2b5fb
* win32/dir.h, win32/win32.c (rb_w32_opendir, rb_w32_readdir,
...
rb_w32_closedir): get rid of possible buffer-overflows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-17 23:42:00 +00:00
kou
966a25465a
* lib/rss, test/rss:
...
- supported Atom.
- bumped version 0.1.6 to 0.1.7.
* sample/rss/convert.rb: added new sample.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-17 10:13:25 +00:00
eban
53cbab0484
* 2007-03-16
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16 13:35:14 +00:00
matz
30aa46db0b
* ext/bigdecimal/bigdecimal.c: BigDecimal("-.31") is now
...
treated as ("-0.31") not as ("0.31").
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-14 05:39:00 +00:00
knu
9d5c0ea4a3
* lib/cgi.rb (CGI::header): IIS >= 5.0 does not need the nph
...
assumption any more; submitted by MIYASAKA Masaru <alkaid AT
coral.ocn.ne.jp> in [ruby-dev:30537].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-12 17:48:10 +00:00
knu
62d54a282e
20070312
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-12 04:04:17 +00:00
eban
7f4bbc6530
* 2007-03-11
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-11 03:13:07 +00:00
nobu
da3558fddb
* parse.y (parser_yylex), win32/win32.c (rb_w32_utime): fixed
...
indentation broken at YARV merger.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-04 16:36:36 +00:00
nobu
9b7ecc68a9
* file.c (rb_stat_s_utime): fixed a commit miss for the platforms
...
where utimes() does not exist.
* lib/fileutils.rb (touch): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-04 14:38:02 +00:00
nobu
15dabe8216
* file.c (rb_file_s_utime): allow nil to set the current time.
...
* lib/fileutils.rb (touch): ditto, and added :mtime and :nocreate
options. fixed: [ruby-talk:219037]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-03 13:37:02 +00:00
knu
5d8187d772
* object.c (instance_variable_get): Restore rdoc markups lost in
...
the last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-03 06:53:38 +00:00
matz
582f1ecdfb
* object.c (rb_obj_ivar_set): RDoc updated according to a
...
suggestion from Brian Candler <B.Candler AT pobox.com>.
[ruby-core:10469]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-01 22:59:12 +00:00
nobu
50d3ece900
* mkconfig.rb (patchlevel): read from version.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-28 17:05:18 +00:00
shyouhei
e38fd64fcd
* mkconfig.rb (RbConfig): add CONFIG['PATCHLEVEL']
...
* common.mk: new target dist
* distruby.rb: new file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-27 15:12:18 +00:00
eban
3623df9bc6
* 2007-02-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-26 16:29:21 +00:00
ko1
e98f7e1eaa
* common.mk: change "gdb" rule. You can debug miniruby with
...
$(srcdir)/test.rb on gdb by this rule (type "make gdb").
If you write break points to "breakpoints.gdb" on $srcdir,
gdb runs with this file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-25 15:58:27 +00:00
ko1
71986ef6bc
* yarvcore.h:
...
rename:
rb_iseq_t#file_name -> filename
rb_iseq_t#local_tbl -> local_table
add:
rb_iseq_t#local_table_size
* compile.c: separate local_table_size and local_size
(local variable size)
* blockinlining.c: apply above rename.
* compile.h: ditto.
* eval.c: ditto.
* iseq.c: ditto.
* proc.c: ditto.
* vm.c: ditto.
* vm_dump.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-25 01:34:33 +00:00
suke
1fcf93350f
* ext/win32ole/win32ole.c: add WIN32OLE_VARIANT.array,
...
WIN32OLE_VARIANT#value=, refactoring.
* test/win32ole/test_win32ole_variant.rb: add some test for
WIN32OLE_VARIANT.array, WIN32OLE_VARIANT#value=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 22:39:25 +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
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
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
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
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
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
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
matz
76a27adfda
* ext/socket/socket.c (init_unixsock): path may contain NUL for
...
abstract unix sockets. [ruby-core:10288]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-13 15:31:18 +00:00
eban
62815a50bc
* 2007-02-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-13 06:20:51 +00:00
kou
4924197d1c
* lib/rss/dublincore.rb, lib/rss/maker/dublincore.rb: dc_rightses
...
-> dc_rights_list. dc_rightses still exists for backward
compatibility. [ruby-core:8350]
* test/rss/test_maker_dc.rb: added tests for dc_rights_list.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-12 02:52:32 +00:00
knu
8833abd556
20070211
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 22:46:37 +00:00
eban
6ccbfd76a1
* 2007-02-10
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09 15:49:35 +00:00
ko1
a9026242f2
* thread.c, thread_pthread.ci, thread_win32.ci (thread_start_func_1):
...
move cleanup function to thread_start_func_2().
* thread.c, thread_pthread.ci, thread_win32.ci:
add more destruct functions.
(native_thread_destroy() and native_mutex_destroy())
* thread_pthread.ci, thread_pthread.h: make native_mutex_* functions
(check error, etc), it's not macro any more.
* thread_win32.ci (thread_start_func_1): store some values before
running thread (to release these after running thread).
* thread_win32.ci (native_thread_create): fix spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-08 20:24:55 +00:00
ko1
9c574383a4
* blockinlining.c, error.c, eval.c, eval_error.h, eval_intern.h,
...
eval_jump.h, eval_load.c, eval_safe.h, gc.c, proc.c, signal.c,
thread.c, thread_pthread.ci, thread_win32.ci, vm.c, vm.h,
vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h:
fix typo (rb_thead_t -> rb_thread_t).
* eval_intern.h: remove unused definitions.
* common.mk: fix around vm_opts.h path
and remove harmful argument passed to insns2vm.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-08 06:37:46 +00:00
usa
b1c6339b0c
* 2007-02-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-06 15:13:18 +00:00
ko1
27172b8e6f
* intern.h: prepare rb_last_status_get() and rb_last_status_set().
...
Use these functions instead of rb_last_status ([ruby-dev:30264]).
* process.c: define above functions.
* ext/pty/pty.c: use above functins.
* io.c (pipe_finalize): ditto.
* process.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-05 16:22:38 +00:00
matz
cbee6e017d
* eval.c (rb_frame_callee): check if prev_cfp can be accessible.
...
a patch from Yoshinori Sano <yoshinori.sano at gmail.com> in
[ruby-dev:30252]. solves [ruby-dev:30200] and [ruby-core:9856].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-04 19:12:52 +00:00
eban
900ff1276f
* 2007-02-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-03 18:01:58 +00:00
eban
497220616a
* 2007-02-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-02 15:24:35 +00:00
matz
0cd337b1f0
* eval.c: remove duplicated global variables rb_cProc and
...
rb_cBinding. [ruby-dev:30242]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-02 09:32:28 +00:00
eban
f5883fbe87
* 2007-01-31
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31 05:43:47 +00:00
eban
c93ca8ee38
* 2007-01-30
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-29 15:42:23 +00:00
matz
024c694c95
* tool/parse.rb: replace YARVCore by VM class.
...
http://d.hatena.ne.jp/ysano2005/20070128
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-29 05:16:38 +00:00
eban
f74039ec51
* 2007-01-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-28 03:54:19 +00:00
eban
c91a817032
* 2007-01-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-26 15:09:43 +00:00
matz
369b098721
* enumerator.c (enumerator_init_copy): need to copy internal
...
structure on clone and dup. [ruby-dev:30192]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-25 22:52:38 +00:00
usa
b696420526
* Makefile.in, common.mk, configure.in, */{Makefile.sub, configure.bat,
...
setup.mak}: add --with-baseruby configure option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-23 06:41:22 +00:00
matz
06720d45c7
* ext/socket/socket.c: fix errors in socket sample code.
...
[ruby-core:09992]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-22 06:01:17 +00:00
suke
e16e6a66ae
modify WIN32OLERuntimeError message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-20 02:28:49 +00:00
suke
72cc74655f
IN32OLE_VARIANT.new accepts nil as first argument for some VARIANT TYPE. fix memory leak.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-18 22:08:29 +00:00
ko1
dbee678630
* some refactoring around yarvcore and proc.
...
* eval_proc.c: renamed to proc.c.
* common.mk: ditto.
* yarvcore.h, yarvcore.c: rename or remove some global variables
removed: mYarvCore, mYarvInsns
renamed: cYarvISeq -> rb_cISeq,
cYarvProc -> rb_cProc, cYarvBinding -> rb_cBinding
::YarvCore module is removed and ::YarvCore::VM class becomes ::VM.
And change/remove some functions which added with YARV.
* compile.c: ditto.
* eval.c: ditto.
* iseq.c: ditto.
* vm.c: ditto.
* inits.c: rename Init_yarvcore to Init_vm.
* yarvcore.c, proc.c: move some functions and initialization
from yarvcore.c to proc.c.
* intern.h, proc.c: add global function rb_binding_new(void).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-17 08:48:52 +00:00
ko1
7eb928624f
* eval_proc.c (rb_proc_new): added.
...
* string.c (sym_to_proc): supported.
* vm.c (invoke_block, th_invoke_yield, th_invoke_proc): fix to support
rb_proc_new.
* yarvcore.c: add a test code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-16 03:06:01 +00:00
suke
d2907d42be
fix memory leak of win32ole.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-13 14:40:54 +00:00
nobu
82e937f511
* array.c (rb_ary_replace): use ptr and len of orig instead of
...
shared. fixed: [ruby-dev:30116]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-09 15:11:01 +00:00
eban
ef05955d2f
* 2007-01-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-09 02:43:17 +00:00
ko1
4e4eec7016
* common.mk: add a "compare" rule and fix MATZRUBY variable
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-07 09:36:30 +00:00
ko1
384cfd3871
* benchmark/run.rb : change option format
...
* common.mk : ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-05 18:54:33 +00:00
usa
f189294d04
* 2007-01-05
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-05 03:40:38 +00:00
eban
2589412b70
* 2007-01-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-04 04:54:30 +00:00
eban
1e46ba3439
* 2007-01-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-03 10:29:36 +00:00
usa
0ecf102274
* 2007-01-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-02 03:49:54 +00:00
ko1
a3e1b1ce7e
* Merge YARV
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-31 15:02:22 +00:00
eban
b58aef095a
* 2006-12-31
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-30 15:36:41 +00:00
matz
424f8ec44f
* ext/stringio/stringio.c (strio_gets): accepts limit argument.
...
* ext/stringio/stringio.c (strio_readline, strio_each,
strio_readlines): ditto.
* ext/stringio/stringio.c (strio_getline): add limit capability.
* io.c (rb_io_gets_m): accepts limit argument. [ruby-talk:231563]
* io.c (rb_io_readline, rb_io_readlines, rb_io_each_line, argf_getline):
ditto.
* io.c (appendline): add limit capability.
* io.c (rb_io_getline_fast, rb_io_getline): ditto.
* io.c (rb_io_getline): small refactoring for DRY.
* io.c (rb_io_s_foreach, rb_io_s_readlines): small refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-29 19:21:50 +00:00
eban
0d2e0eb6cb
* 2006-12-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-28 06:36:14 +00:00
eban
a77bb6b7a7
* 2006-12-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-27 12:25:09 +00:00
eban
a17e7d92a2
* 2006-12-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-26 06:37:14 +00:00
usa
219fafd4d2
* 2006-12-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-22 00:13:57 +00:00
matz
5bcb3797cb
version.h update
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-20 04:04:54 +00:00
matz
3fe6595026
2006-12-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-17 23:37:45 +00:00
nobu
a6563ee8c7
2006-12-15
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-14 15:07:49 +00:00
matz
1275a05824
2006-12-14
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-14 09:27:32 +00:00
nobu
2b38044b26
2006-12-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-12 14:34:22 +00:00