Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jul 9, 2012
  1. @kosaki

    * include/ruby/ruby.h: Removed RUBY_GLOBAL_SETUP complely. It is

    kosaki authored
      no meaning definition since r24894.
    * main.c: ditto.
    * nacl/pepper_main.c: ditto.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 1, 2010
  1. @shyouhei

    * main.c: <stdlib.h> is needed, to introduce the getenv(3)

    shyouhei authored
      prototype declaration.  Without it a C compiler shall infer
      the getenv type as "int getenv(...);", but this is totally
      wrong, especially when your machine's sizeof(int) and
      sizeof(char*) differs.  On such environment a return value
      of getenv(3), which is in fact a char*, might first casted
      into a int (loses data here), and then casted back to char*
      by automatic integral promotion fo fit to the prototype of
      ruby_set_debug_option().
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Sep 23, 2008
  1. @akr

    * debug.h (ruby_set_debug_option): declared.

    akr authored
    * main.c: include debug.h.
    
    * common.mk (main.$(OBJEXT)): dependency updated.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Aug 9, 2008
  1. @nobu

    * configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert),

    nobu authored
      ext/digest/md5/md5.c, ext/openssl/ossl.c (main),
      ext/socket/extconf.rb (ipv6, wide-getaddrinfo): main should be int.
    
    * main.c (main), win32/winmain.c, wince/wincemain.c (WinMain): envp is
      no longer used so long time.  based on a patch from Peter Bowen at
      [ruby-core:18208]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 31, 2008
  1. @nobu

    * include/ruby/mvm.h: new header file for MVM, and moved rb_vm_t and

    nobu authored
      rb_thread_t from vm_core.h.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jan 6, 2008
  1. @akr

    * $Date$ keyword removed to avoid inclusion of locale dependent

    akr authored
      string.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 30, 2007
  1. @nobu

    * main.c, goruby.c (RUBY_MAIN_INIT): removed.

    nobu authored
    * goruby.c (goruby_run_node): run after ruby_init_loadpath() so that
      require works, and protect the call.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 25, 2007
  1. @nobu

    * trunk/common.mk, goruby.c, golf_prelude.rb: for golfers.

    nobu authored
    * trunk/main.c (main): hook for embedding applications.
    
    * trunk/tool/compile_prelude.rb: can change initialize function name.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 21, 2007
  1. @akr

    fix typo.

    akr authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @akr

    * configure.in: check langinfo.h and locale.h.

    akr authored
    * encoding.c: use langinfo.h only if available.
    
    * main.c: use locale.h only if available.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. @akr

    * encoding.c: include locale.h

    akr authored
      (rb_locale_charmap): new method Encoding.locale_charmap for
      nl_langinfo(CODESET).
    
    * include/ruby/encoding.h (rb_locale_charmap): declared.
    
    * main.c (main): call setlocale with LC_CTYPE.
    
    * ruby.c (locale_encoding): use rb_locale_charmap.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Sep 29, 2007
  1. @nobu

    * main.c (main): use platform-independent per-process initialization.

    nobu authored
      [ruby-dev:31900]
    
    * ruby.c (ruby_sysinit): new function for per-process initialization.
    
    * include/ruby/ruby.h (RUBY_GLOBAL_SETUP): toplevel setup declaration.
    
    * include/ruby/win32.h, win32/mkexports.rb: alias NtInitialize
      ruby_sysinit.
    
    * win32/win32.c (rb_w32_sysinit): renamed from NtInitialize.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Aug 25, 2007
  1. * encoding.c: provide basic features for M17N.

    matz authored
    * parse.y: encoding aware parsing.
    
    * parse.y (pragma_encoding): encoding specification pragma.
    
    * parse.y (rb_intern3): encoding specified symbols.
    
    * string.c (rb_str_length): length based on characters.  
      for older behavior, bytesize method added.
    
    * string.c (rb_str_index_m): index based on characters.  rindex as
      well.
    
    * string.c (succ_char): encoding aware succeeding string.
    
    * string.c (rb_str_reverse): reverse based on characters.
    
    * string.c (rb_str_inspect): encoding aware string description.
    
    * string.c (rb_str_upcase_bang): encoding aware case conversion.
      downcase, capitalize, swapcase as well.
    
    * string.c (rb_str_tr_bang): tr based on characters.  delete,
      squeeze, tr_s, count as well.
    
    * string.c (rb_str_split_m): split based on characters.
    
    * string.c (rb_str_each_line): encoding aware each_line.
    
    * string.c (rb_str_each_char): added.  iteration based on
      characters.
    
    * string.c (rb_str_strip_bang): encoding aware whitespace
      stripping.  lstrip, rstrip as well.
    
    * string.c (rb_str_justify): encoding aware justifying (ljust,
      rjust, center).
    
    * string.c (str_encoding): get encoding attribute from a string. 
    
    * re.c (rb_reg_initialize): encoding aware regular expression
    
    * sprintf.c (rb_str_format): formatting (i.e. length count) based
      on characters.
    
    * io.c (rb_io_getc): getc to return one-character string.
      for older behavior, getbyte method added.
    
    * ext/stringio/stringio.c (strio_getc): ditto.
    
    * io.c (rb_io_ungetc): allow pushing arbitrary string at the
      current reading point.
    
    * ext/stringio/stringio.c (strio_ungetc): ditto.
    
    * ext/strscan/strscan.c: encoding support.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jul 5, 2007
  1. @nobu

    * include/ruby/{intern,ruby}.h, compile.[ch], error.c, eval.c,

    nobu authored
      eval_load.c, gc.c, iseq.c, main.c, parse.y, re.c, ruby.c,
      yarvcore.[ch] (ruby_eval_tree, ruby_sourcefile, ruby_sourceline,
      ruby_nerrs): purge global variables.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 29, 2007
  1. @nobu

    * debug.c (ruby_set_debug_option): separated from main.c.

    nobu authored
    * gc.c (ruby_gc_stress), signal.c (ruby_enable_coredump): prefixed.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 28, 2007
  1. @akr

    debug environment variable refined.

    akr authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 10, 2007
  1. @nobu

    * include/ruby: moved public headers.

    nobu authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 2, 2007
  1. @nobu

    * call_cfunc.ci, compile.c, compile.h, debug.h, eval.c,

    nobu authored
      eval_error.h, eval_jump.h, eval_load.c, eval_thread.c, gc.c,
      insnhelper.h, insns.def, iseq.c, main.c, numeric.c, parse.y,
      range.c, regenc.h, ruby.h, signal.c, thread.c, thread_win32.ci,
      vm.c, vm.h, vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h:
      fixed indents and non-C90 comments.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 31, 2006
  1. @ko1

    * Merge YARV

    ko1 authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jan 9, 2006
  1. @akr

    * gc.c (gc_stress): renamed from always_gc and enabled by default.

    akr authored
      (gc_stress_get): new function for GC.stress.
      (gc_stress_set): new function for GC.stress=.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 27, 2005
  1. @akr

    * configure.in: define IA64 for portability. (HP aC++/ANSI C doesn't

    akr authored
      define __ia64__.)
      don't check libunwind stuff.
      check __libc_ia64_register_backing_store_base.
    
    * defines.h: declare rb_ia64_bsp and rb_ia64_flushrs.
      (flush_register_windows): call rb_ia64_flushrs on IA64.
    
    * ia64.s: new file for IA64.
      it is separated from C program files because
      Intel C++ Compiler for IA64 doesn't support inline assembly.
    
    * common.mk (ia64.$(OBJEXT)): new target.
    
    * ruby.h (RUBY_INIT_STACK): defined.
      (ruby_init_stack): declared for RUBY_INIT_STACK.
    
    * main.c (main): precedes RUBY_INIT_STACK before ruby_init.
    
    * gc.c (rb_gc_register_stack_start): new global variable on IA64.
      (garbage_collect): simplify register stack marking code.
      don't use libunwind.
      (Init_stack): initialize rb_gc_register_stack_start.
      (ruby_init_stack): new function for RUBY_INIT_STACK.
    
    * eval.c (struct thread): add bstr_pos member for original position of
      register stack.
      (rb_thread_save_context): simplify register stack saving code.
      don't use libunwind.
      (rb_thread_restore_context_0): new function.  moved from
      rb_thread_restore_context except the stack position checking code.
      don't use libunwind for IA64 register stack.
      (register_stack_extend): new function.
      (stack_extend): make it self-recursive with
      the stack position checking code in old rb_thread_restore_context.
      (rb_thread_restore_context): just call stack_extend.
      (flush_register_windows): removed.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 19, 2005
  1. @nobu

    * Makefile.in (XCFLAGS): separated as well as win32/Makefile.sub.

    nobu authored
    * main.c (always_gc): dllimport is required for VC to import a DLL
      symbol.  fixed: [ruby-dev:28051]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 12, 2005
  1. * ext/digest/digest.c (rb_digest_base_s_digest): add volatile to

    matz authored
      protect temporary context object.  [ruby-dev:27979]
    
    * ext/iconv/iconv.c (Init_iconv): rb_gc_register_address() should
      be called before actual variable initialization.
      [ruby-dev:27986]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Sep 12, 2005
  1. * array.c: moved to ANSI function style from K&R function style.

    ocean authored
      (used protoize on windows, so still K&R remains on #ifdef part of
       other platforms. And  `foo _((boo))' stuff is still there)
       [ruby-dev:26975]
    
    * bignum.c, class.c, compar.c, dir.c, dln.c, dmyext.c, enum.c,
      enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c,
      io.c, main.c, marshal.c, math.c, numeric.c, object.c, pack.c,
      prec.c, process.c, random.c, range.c, re.c, regcomp.c, regenc.c,
      regerror.c, regexec.c, regparse.c, regparse.h, ruby.c, signal.c,
      sprintf.c, st.c, string.c, struct.c, time.c, util.h, variable.c,
      version.c: ditto.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 23, 2004
  1. Fix indentation in time.c

    michal authored
    Move stack-len info from main.c to gc.c
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 22, 2003
  1. * gc.c (Init_stack): stack region is far smaller than usual if

    matz authored
      pthread is used.
    
    * marshal.c (w_extended): singleton methods should not be checked
      when dumping via marshal_dump() or _dump(). [ruby-talk:85909]
    
    * file.c (getcwdofdrv): avoid using getcwd() directly, use
      my_getcwd() instead.
    
    * merged NeXT, OpenStep, Rhapsody ports patch from Eric Sunshine
      <sunshine@sunshineco.com>.  [ruby-core:01596]
    
    * marshal.c (w_object): LINK check earlier than anything else,
      i.e. do not dump TYPE_IVAR for already dumped objects.
      (ruby-bugs PR#1220)
    
    * eval.c (rb_eval): call "inherited" only when a new class is
      generated; not on reopening.
    
    * eval.c (eval): prepend error position in evaluating string to
    
    * configure.in: revived NextStep, OpenStep, and Rhapsody ports which
      had become unbuildable; enhanced --enable-fat-binary option so that
      it accepts a list of desired architectures (rather than assuming a
      fixed list), or defaults to a platform-appropriate list if user does
      not provide an explicit list; made the default list of architectures
      for MAB (fat binary) more comprehensive; now uses -fno-common even
      when building the interpreter (in addition to using it for
      extensions), thus allowing the interpreter to be embedded into a
      plugin module of an external project (in addition to allowing
      embedding directly into an application); added checks for
      <netinet/in_systm.h> (needed by `socket' extension) and getcwd(); now
      ensures that -I/usr/local/include is employed when extensions'
      extconf.rb scripts invoke have_header() since extension checks on
      NextStep and OpenStep will fail without it if the desired resource
      resides in the /usr/local tree; fixed formatting of --help message.
    
    * Makefile.in: $(LIBRUBY_A) rule now deletes the archive before
      invoking $(AR) since `ar' on Apple/NeXT can not "update" MAB archives
      (see configure's --enable-fat-binary option); added rule for new
      missing/getcwd.c.
    
    * defines.h: fixed endian handling during MAB build (see configure's
      --enable-fat-binary option) to ensure that all portions of the
      project see the correct WORDS_BIGENDIAN value (some extension modules
      were getting the wrong endian setting); added missing constants
      GETPGRP_VOID, WNOHANG, WUNTRACED, X_OK, and type pid_t for NextStep
      and OpenStep; removed unnecessary and problematic HAVE_SYS_WAIT_H
      define in NeXT section.
    
    * dir.c: do not allow NAMLEN() macro to trust dirent::d_namlen on
      NextStep since, on some installations, this value always resolves
      uselessly to zero.
    
    * dln.c: added error reporting to NextStep extension loader since the
      previous behavior of failing silently was not useful; now ensures
      that NSLINKMODULE_OPTION_BINDNOW compatibility constant is defined
      for OpenStep and Rhapsody; no longer includes <mach-o/dyld.h> twice
      on Rhapsody since this header lacks multiple-include protection,
      which resulted in "redefinition" compilation errors.
    
    * main.c: also create hard reference to objc_msgSend() on NeXT
      platforms (in addition to Apple platforms).
    
    * lib/mkmf.rb: now exports XCFLAGS from configure script to extension
      makefiles so that extensions can be built MAB (see configure's
      --enable-fat-binary option); also utilize XCFLAGS in cc_command()
      (but not cpp_command() because MAB flags are incompatible with
      direct invocation of `cpp').
    
    * ext/curses/extconf.rb: now additionally checks for presence of these
      curses functions which are not present on NextStep or Openstep:
      bkgd(), bkgdset(), color(), curs(), getbkgd(), init(), scrl(), set(),
      setscrreg(), wattroff(), wattron(), wattrset(), wbkgd(), wbkgdset(),
      wscrl(), wsetscrreg()
    
    * ext/curses/curses.c: added appropriate #ifdef's for additional set of
      curses functions now checked by extconf.rb; fixed curses_bkgd() and
      window_bkgd() to correctly return boolean result rather than numeric
      result; fixed window_getbkgd() to correctly signal an error by
      returning nil rather than -1.
    
    * ext/etc/etc.c: setup_passwd() and setup_group() now check for null
      pointers before invoking rb_tainted_str_new2() upon fields extracted
      from `struct passwd' and `struct group' since null pointers in some
      fields are common on NextStep/OpenStep (especially so for the
      `pw_comment' field) and rb_tainted_str_new2() throws an exception
      when it receives a null pointer.
    
    * ext/pty/pty.c: include "util.h" for strdup()/ruby_strdup() for
      platforms such as NextStep and OpenStep which lack strdup().
    
    * ext/socket/getaddrinfo.c: cast first argument of getservbyname(),
      gethostbyaddr(), and gethostbyname() from (const char*) to non-const
      (char*) for older platforms such as NextStep and OpenStep.
    
    * ext/socket/socket.c: include "util.h" for strdup()/ruby_strdup() for
      platforms such as NextStep and OpenStep which lack strdup(); include
      <netinet/in_systm.h> if present for NextStep and OpenStep; cast first
      argument of gethostbyaddr() and getservbyname() from (const char*) to
      non-const (char*) for older platforms.
    
    * ext/syslog/syslog.c: include "util.h" for strdup()/ruby_strdup() for
      platforms such as NextStep and OpenStep which lack strdup().
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jan 16, 2003
  1. Updated Copyrights of Matz to 2003.

    michal authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 15, 2002
  1. * configure.in, 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,
          ext/tcltklib/stubs.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: svn+ssh://ci.ruby-lang.org/ruby/trunk@3148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 2, 2002
  1. WinCE patch merged

    matz authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Apr 18, 2002
  1. * re.c (rb_reg_expr_str): should treat backslash specially in

    matz authored
      escaping.
    
    * io.c: complete off_t handling; missing argument for
      fptr_finalize(); polished rb_scan_args call.
    
    * dir.c: wrap multi-statment macro by do { } while (0)
    
    * eval.c, numeric,c, sprintf.c, util.c: ditto.
    
    * bignum.c (rb_big_eq): check `y == x' if y is neither Fixnum,
      Bignum, nor Float.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2382 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@1183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Oct 2, 2000
  1. matz

    matz authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 29, 2000
  1. @eban

    see ChangeLog.

    eban authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 1, 2000
  1. 2000-05-01

    matz authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jan 5, 2000
  1. 20000105

    matz authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Something went wrong with that request. Please try again.