Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jan 5, 2009
  1. @shyouhei

    merge revision(s) 18316,18319:

    shyouhei authored
    	* rubysig.h (CHECK_INTS): gives the chance to perform to deferred
    	  finalizers before explicit GC.start or the process termination.
    	* eval.c (rb_thread_schedule): runs deferred finalizers.
    	* gc.c (gc_sweep): sets rb_thread_pending to run deferred finalizers.
    	* rubysig.h (CHECK_INTS): now checks rb_thread_pending even on
    	  platforms where setitimer is not available.  [ruby-core:18045]
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Oct 21, 2005
Commits on Oct 19, 2005
  1. @unak

    * rubysig.h (CHECK_INTS): fix typo.

    unak authored
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. * rubysig.h (CHECK_INTS): prevent signal handler to run during

    matz authored
      critical section.  [ruby-core:04039]
    * eval.c (load_wait): need not to call rb_thread_schedule()
      explicitly.  [ruby-core:04039]
    * eval.c (rb_thread_schedule): clear rb_thread_critical.
    * st.c (st_free_table): do not call free() but xfree().
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Sep 27, 2005
  1. @unak

    * rubysig.h: fixed build problem with --enable-pthread on platforms

    unak authored
      which don't have setitimer().
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 6, 2004
  1. @nobu

    * rubysig.h (TRAP_BEG, TRAP_END): safe errno around CHECK_INTS.

    nobu authored
      (backported from CVS HEAD)  [ruby-dev:24993]
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jul 22, 2004
  1. * lib/irb/ruby-lex.rb (RubyLex::identify_string): %s string do not

    matz authored
      process expression interpolation.  [ruby-talk:106691]
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 24, 2003
  1. * eval.c (catch_timer): do not call rb_thread_schedule() inside to

    matz authored
      avoid pthread_mutex_lock() deadlock.  interrupts to system calls
      are detected by TRAP_END via EINTR error.
    * eval.c (thread_timer): do not post signal unless it is
      absolutely necessary.
    * rubysig.h (TRAP_END): add CHECK_INTS to switch thread.
    * regex.c (re_compile_pattern): check if nextp is smaller than
      pend.  [ruby-dev:22372]
    * eval.c (umethod_bind): remove method overridden check.
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 22, 2003
  1. @nobu

    * (ac_cv_func_setitimer): moved from defines.h

    nobu authored
    * defines.h, rubysig.h, signal.c: removed macro handling which
      should be done in configure.
    * (intrinsics.h): check if present.
    * ruby.h: include intrinsics.h if available.
    * bignum.c, marshal.c: include ieeefp.h if available.
    * missing.h (isinf): define as a macro if finite() and isnan()
      are available.  [ruby-core:02032]
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Mar 4, 2003
  1. @nobu

    *, bcc32/Makefile.sub, win32/Makefile.sub: define

    nobu authored
      RUBY_EXPORT to export symbols.
    * defines.h: use RUBY_EXTERN instead of EXTERN.
    * intern.h, re.h, ruby.h, rubysig.h: ditto.
    * win32/win32.h: remove EXTERN definition.
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jan 16, 2003
  1. Updated Copyrights of Matz to 2003.

    michal authored
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 15, 2002
  1. *, defines.h, dir.c, dir.h, dln.c, error.c,

    uema2 authored
          eval.c, file.c, hash.c, io.c, main.c, missing.c,
          process.c, ruby.c, rubysig.h, signal.c, st.c, util.c, util.h,
          bcc/Makefile.sub, win32/Makefile.sub, win32/win32.h,
          ext/Win32API/Win32API.c, ext/socket/getaddrinfo.c,
          ext/socket/getnameinfo.c, ext/socket/socket.c,
          : replace "NT" with "_WIN32", add DOSISH_DRIVE_LETTER
    * wince/exe.mak : delete \r at the end of lines.
    * wince/mswince-ruby17.def : delete rb_obj_become
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 2, 2002
  1. WinCE patch merged

    matz authored
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 29, 2002
  1. Wed May 29 18:55:47 2002 KONISHI Hiromasa <>

    H_Konishi authored
    	* function renames my* and win32_* to rb_w32_* in win32/win32.c
    	  fixed files win32/win32.c, win32/win32.h, win32/dir.h,
    	              hash.c, rubysig.h, signal.c, ext/socket/socket.c
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 14, 2002
  1. * eval.c (rb_clear_cache_by_class): new function.

    matz authored
    * eval.c (set_method_visibility): should have clear cache forq
      updated visibility.
    * numeric.c (flo_to_s): default format precision to be "%.16g".
    * util.c (ruby_strtod): use own strtod(3) implementation to avoid
      locale hell.  Due to this change "0xff".to_f no longer returns 255.0
    * eval.c (avalue_to_yvalue): new function to distinguish yvalue
      (no-arg == Qundef) from svalue (no-arg == Qnil).
    * eval.c (rb_yield_0): use avalue_to_yvalue().
    * eval.c (assign): warn if val == Qundef where it means rhs is
      void (e.g. yield without value or call without argument).
    * parse.y (value_expr): need not to warn for WHILE and UNTIL,
      since they can have return value (via valued break).
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Apr 24, 2002
  1. * io.c (rb_io_mode_flags): both 'r+b' and 'rb+' should be allowed.

    matz authored
    * io.c (rb_io_mode_modenum): ditto.
    * gc.c (rb_memerror): rename from mem_error, and exported.
    * gc.c (Init_GC): pre-allocate NoMemoryError instance.
    * object.c (convert_type): error message changed from "failed to
      convert" to "cannot convert", since it does not try to convert
      if an object does not respond to the converting method.
    * eval.c (block_pass): convert Method to Proc using
    * object.c (rb_check_convert_type): always convert T_DATA
    * eval.c (rb_thread_cleanup): should not terminate main_thread by
      Fatal error.
    * regex.c (is_in_list): need to not exclude NUL and NEWLINE.
    * re.c (rb_reg_expr_str): wrong backslash escapement.
    * re.c (rb_reg_expr_str): do not escape embedded space
    * marshal.c (w_object): T_DATA process patch from Joel VanderWerf
      <vjoel@PATH.Berkeley.EDU>.  This is temporary hack; it remains
      undocumented, and it will be removed when marshaling is
    * marshal.c (r_object): ditto.
    * numeric.c (num_step): Integer#step is moved to Numeric#step;
      Fixnum#step is merged into this method.
    * numeric.c (int_dotimes): Fixnum#times is merged.
    * numeric.c (int_upto): Fixnum#upto is merged.
    * numeric.c (int_downto): Fixnum#downto is merged.
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 2, 2001
  1. * eval.c (block_pass): should not downgrade safe level.

    matz authored
    * ext/dbm/extconf.rb: allow specifying dbm-type explicitly.
    * ext/dbm/extconf.rb: avoid gdbm if possible, because it leaks
      memory, whereas doesn't.  potential incompatibility.
    * string.c (rb_str_insert): new method.
    * parse.y (yylex): lex_state after RESCUE_MOD should be EXPR_BEG.
    * array.c (rb_ary_insert): new method.
    * array.c (rb_ary_update): new utility function.
    * io.c (set_outfile): should check if closed before assignment.
    * eval.c (rb_eval): should preserve value of ruby_errinfo.
    * eval.c (rb_thread_schedule): infinite sleep should not cause
      dead lock.
    * array.c (rb_ary_flatten_bang): proper recursive detection.
    * eval.c (yield_under): need not to prohibit at safe level 4.
    * pack.c (pack_pack): p/P packs nil into NULL.
    * pack.c (pack_unpack): p/P unpacks NULL into nil.
    * pack.c (pack_pack): size check for P template.
    * ruby.c (set_arg0): wrong predicate when new $0 value is bigger
      than original space.
    * gc.c (id2ref): should use NUM2ULONG()
    * object.c (rb_mod_const_get): check whether name is a class
      variable name.
    * object.c (rb_mod_const_set): ditto.
    * object.c (rb_mod_const_defined): ditto.
    * marshal.c (w_float): precision changed to "%.16g"
    * eval.c (rb_call0): wrong retry behavior.
    * numeric.c (fix_aref): a bug on long>int architecture.
    * eval.c (rb_eval_string_wrap): should restore ruby_wrapper.
    * regex.c (re_compile_pattern): char class at either edge of range
      should be invalid.
    * eval.c (handle_rescue): use === to compare exception match.
    * error.c (syserr_eqq): comparison between SytemCallErrors should
      based on their error numbers.
    * eval.c (safe_getter): should use INT2NUM().
    * bignum.c (rb_big2long): 2**31 cannot fit in 31 bit long.
    * regex.c (calculate_must_string): wrong length calculation.
    * eval.c (rb_thread_start_0): fixed memory leak.
    * parse.y (none): should clear cmdarg_stack too.
    * io.c (rb_fopen): use setvbuf() to avoid recursive malloc() on
      some platforms.
    * file.c (rb_stat_dev): device functions should honor stat field
      types (except long long such as dev_t).
    * eval.c (rb_mod_nesting): should not push nil for nesting array.
    * eval.c (rb_mod_s_constants): should not search array by
      rb_mod_const_at() for nil (happens for singleton class).
    * class.c (rb_singleton_class_attached): should modify iv_tbl by
      itself, no longer use rb_iv_set() to avoid freeze check error.
    * variable.c (rb_const_get): error message "uninitialized constant
      Foo at Bar::Baz" instead of "uninitialized constantBar::Baz::Foo".
    * eval.c (rb_mod_included): new hook called from rb_mod_include().
    * io.c (opt_i_set): should strdup() inplace_edit string.
    * eval.c (exec_under): need to push cref too.
    * eval.c (rb_f_missing): raise NameError for "undefined local
      variable or method".
    * error.c (Init_Exception): new exception NoMethodError.
      NameError moved under ScriptError again.
    * eval.c (rb_f_missing): use NoMethodError instead of NameError.
    * file.c (Init_File): should redifine "new" class method.
    * eval.c (PUSH_CREF): sharing cref node was problematic.  maintain
      runtime cref list instead.
    * eval.c (rb_eval): copy defn node before registering.
    * eval.c (rb_load): clear ruby_cref before loading.
    * variable.c (rb_const_get): no recursion to show full class path
      for modules.
    * eval.c (rb_set_safe_level): should set safe level in curr_thread
      as well.
    * eval.c (safe_setter): ditto.
    * object.c (rb_obj_is_instance_of): nil belongs to false, not true.
    * time.c (make_time_t): proper (I hope) daylight saving time
      handling for both US and Europe.  I HATE DST!
    * eval.c (rb_thread_wait_for): non blocked signal interrupt should
      stop the interval.
    * eval.c (proc_eq): class check aded.
    * eval.c (proc_eq): typo fixed ("return" was ommitted).
    * error.c (Init_Exception): move NameError under StandardError.
    * class.c (rb_mod_clone): should copy method bodies too.
    * bignum.c (bigdivrem): should trim trailing zero bdigits of
      remainder, even if dd == 0.
    * file.c (check3rdbyte): safe string check moved here.
    * time.c (make_time_t): remove HAVE_TM_ZONE code since it
      sometimes reports wrong time.
    * time.c (make_time_t): remove unnecessary range check for
      platforms where negative time_t is available.
    * process.c (proc_waitall): should push Process::Status instead of
      Finuxm status.
    * process.c (waitall_each): should add all entries in pid_tbl.
      these changes are inspired by Koji Arai.  Thanks.
    * process.c (proc_wait): should not iterate if pid_tbl is 0.
    * process.c (proc_waitall): ditto.
    * numeric.c (flodivmod): a bug in no fmod case.
    * process.c (pst_wifsignaled): should apply WIFSIGNALED for status
      (int), not st (VALUE).
    * io.c (Init_IO): value of $/ and $\ are no longer restricted to
      strings.  type checks are done on demand.
    * class.c (rb_include_module): module inclusion should be check
    * ruby.h (STR2CSTR): replace to StringType() and StringTypePtr().
    * ruby.h (rb_str2cstr): ditto.
    * eval.c (rb_load): should not copy topleve local variables.  It
      cause variable/method ambiguity.  Thanks to L. Peter Deutsch.
    * class.c (rb_include_module): freeze check at first.
    * eval.c (rb_attr): sprintf() and rb_intern() moved into
      conditional body.
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 17, 2001
  1. @unak

    * win32/win32.c: fasten file I/O on mswin32/mingw32.

    unak authored
    * win32/win32.h: ditto.
    * rubysig.h: ditto.
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 14, 2001
  1. * dir.c (dir_s_glob): supprt backslash escape of metacharacters

    matz authored
      and delimiters.
    * dir.c (remove_backslases): remove backslashes from path before
      calling stat(2).
    * dir.c (dir_s_glob): call rb_yield directly (via push_pattern) if
      block is given to the method.
    * dir.c (push_pattern): do not call rb_ary_push; yield directly.
    * eval.c (blk_copy_prev): reduced ALLOC_N too much.
    * eval.c (frame_dup): ditto.
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 16, 2000
  1. matz

    matz authored
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 14, 2000
  1. matz

    matz authored
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Sep 27, 2000
  1. matz

    matz authored
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 1, 2000
  1. 2000-05-01

    matz authored
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Aug 13, 1999
  1. 1.4.0

    matz authored
    git-svn-id: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Something went wrong with that request. Please try again.