summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-05-02* compile.c: use Qtrue instead of 2.ko1
* vm.c, insns.def: support "lambda" calling convention. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-02* parse.y: removed garbage spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-01* error.c, parse.y, ruby.h (rb_compile_warn, rb_compile_warning): warnnobu
for compilation. the parser should no longer use rb_warn() and rb_warning(). [ruby-dev:30121] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-01* parse.y (assoc): result of assoc_new needs to be an assoc.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-01* bignum.c (rb_big_pow): improvement by calculating from MSB and usingnobu
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* sample/test.rb: import matzruby's sample/test.rb.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-01* array.c (rb_ary_choice): fixed mistake from RDoc.matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-01* array.c (rb_ary_choice): a new method to choose an elementmatz
randomly from an array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-01* proc.c (proc_arity): fix an arity bug ([ruby-core:11060]).ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-01* yarvcore.h, compile.c (set_arguments): support post arguments.ko1
* 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-04-27* numeric.c (int_pow): bugfix of overflow detection.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-27* numeric.c (int_pow): rb_big_pow() may return other than Bignum.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-26* compile.c: support multiple splat (e.g, [a, *b, *c, e, *f]).ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-26* bignum.c (rb_big_pow): truncate all zero BDIGITs. [ruby-dev:30733]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-26* bignum.c (rb_big_pow): reduce multiplying for even number.nobu
* numeric.c (int_pow): calculate power in Fixnum as possible. [ruby-dev:30726] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-26* parse.y: fixes for ripper.nobu
* parse.y (primary): reduced duplcated code. * parse.y (f_arg_item): should not override by meaningless value. * parse.y (f_arg, assocs): should not use $$ before assigned. * parse.y (assoc_list): dispatch assoclist_from_args for assocs as well as args. * parse.y (assoc): return assoc if dispatched result is $1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-26* misc/ruby-style.el: new file. C/C++ style for ruby source code.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25clear cmsg padding.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25* ext/socket/socket.c (unix_send_io, unix_recv_io): use CMSG_DATA toakr
align file descriptor appropriately. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25 * win32/win32.c (NtInitialize, exit_handler): add initializing andusa
cleanup of critical section object for select. * win32/win32.c (do_select): block reentrance. * win32/win32.c (rb_w32_select): 0 sec polling of socket. this is workaround because winsock cannot do select at same socket at the same time by two or more threads. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25* ext/probeprofiler/probeprofiler.c: fix function name andko1
return value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25* ext/probeprofiler: set eol-style.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25* yarvcore.h: remove rb_control_frame_t#callee_id.ko1
* vm_macro.def: ditto. * eval_intern.h (exec_event_hooks): fix to check event flags * eval_intern.h (EXEC_EVENT_HOOK): fix to re-check event flags. * ext/probeprofiler : added. this profiler is sampling based profiler. * vm.c: add rb_thread_current_status() API for probeprofiler. * thread.c (rb_thread_execute_interrupts): add comments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25* eval_intern.h (PUSH_TAG): no argument now.nobu
* eval.c, eval_error.h, eval_jump.h, eval_load.c, proc.c, thread.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25* thread.c (alloc_event_fook, rb_thread_remove_event_hook): shouldnobu
return value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-24* dir.c (do_stat, do_lstat, do_opendir): should not warn ENOTDIR.nobu
[ruby-talk:248288] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-23* ext/extmk.rb ($ruby): add extout directory to include path.nobu
[ruby-core:11003] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-23* lib/mkmf.rb (libpathflag): not to append RPATHFLAG to currentnobu
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-20* parse.y (symbol): symbols should be followed by EXPR_ENDARG.matz
* parse.y (dsym): ditto. * parse.y (parser_yylex): strings should be followed by EXPR_ENDARG. * parse.y (parser_yylex): ditto for numbers. * parse.y (parser_yylex): EXPR_ENDARG after ']' and '}'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20* configure.in (LIBPATHFLAG, RPATHFLAG): no needs to be quoted,nobu
it is done by libpathflag in mkmf.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20* eval.c (ruby_cleanup): inversed the order of errinfos.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20* lib/optparse.rb: fix to override conv proc.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20* eval.c (ruby_cleanup): fixed access to out of bound, and inversednobu
the order of errinfos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20* eval_intern.h: add prototypes of rb_sourceline() andko1
rb_sourcefile(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-19* eval.c (ruby_cleanup): re-send signal. [ruby-dev:30516]nobu
* 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* eval.c, node.h, thread.c, yarvcore.[ch], eval_intern.h:ko1
support set_trace_func (incomplete. id and klass don't be passed). And support Thread#set_trace_func which hook only specified thread and Thread#add_trace_func which add new trace func instead of replace old one. C level API was modified. See thread.c (logic) and yarvcore.h (data structures). * vm.c, vm_macro.def: add hook points. * compile.c, insns.def: fix "trace" instruction. * iseq.c, vm_macro.h: add compile option "trace_instruction". * test/ruby/test_settracefunc.rb: hook "c-return" of set_trace_func. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-19* lib/optparse.rb: fix to override conv proc.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-18* util.c (ruby_strtod): exponent is radix 10. [ruby-talk:248272]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-17* yarvcore.c (th_init2): push initial blockptr value fornobu
rb_block_given_p() outside ruby_exec(). [ruby-core:10923] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-17* configure.in (Makefile): remove $U for automake from MISSING.nobu
[ruby-talk:248171] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-17* configure.in (LDFLAGS): prepend -L. instead appending it tonobu
XLDFLAGS. [ruby-core:10933] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16* ext/pty/expect_sample.rb: avoid symbolic link representation formatz
expect. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>. [ruby-dev:30714] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16* sample: replace TRUE, FALSE with true, false respectively.matz
a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>. [ruby-dev:30713] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16* parse.y (parser_yylex): should set command_start after blockmatz
starting "do"s and braces. [ruby-core:10916] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16* lib/optparse.rb (make_switch): do not clobber converter if patternnobu
has no convert method. reported by sheepman in [ruby-dev:30709]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16* ext/stringio/stringio.c (strio_seek): consistent behavior withnobu
IO#seek. patch by sheepman in [ruby-dev:30710]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16* enum.c (enum_each_with_index): each_with_index to forwardmatz
arguments to each. [ruby-core:10921] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16* time.c (time_arg): should allow to specify 24:00.matz
[ruby-core:10915] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-15 * lib/date/format.rb: added some zone names.tadf
* lib/date/format.rb (_parse): now interprets doted numerical dates as a big endian (except dd.mm.yyyy). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-12* thread.c (mutex_try_lock): check and set owner thread.ko1
* thread_pthread.ci: fix to show error code in error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e