1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
matz 2f8d3bdc21 * array.c (rb_ary_modify): should copy the internal buffer if the
modifying buffer is shared.

* array.c (ary_make_shared): make an internal buffer of an array
  to be shared.

* array.c (rb_ary_shift): avoid sliding an internal buffer by
  using shared buffer.

* array.c (rb_ary_subseq): avoid copying the buffer.

* parse.y (gettable): should freeze __LINE__ string.

* io.c (rb_io_puts): old behavoir restored.  rationale: a) if you
  want to call to_s for arrays, you can just call print a, "\n".
  b) to_s wastes memory if array (and sum of its contents) is
  huge.  c) now any object that has to_ary is treated as an array,
  using rb_check_convert_type().

* hash.c (rb_hash_initialize): now accepts a block to calculate
  the default value. [new]

* hash.c (rb_hash_aref): call "default" method to get the value
  corrensponding to the non existing key.

* hash.c (rb_hash_default): get the default value based on the
  block given to 'new'.  Now it takes an optinal "key" argument.
  "default" became the method to get the value for non existing
  key.  Users may override "default" method to change the hash
  behavior.

* hash.c (rb_hash_set_default): clear the flag if a block is given
  to 'new'

* object.c (Init_Object): undef Data.allocate, left Data.new.

* ext/curses/curses.c (window_scrollok): use RTEST().

* ext/curses/curses.c (window_idlok): ditto.

* ext/curses/curses.c (window_keypad): ditto.

* ext/curses/curses.c (window_idlok): idlok() may return void on
  some platforms; so don't use return value.

* ext/curses/curses.c (window_scrollok): ditto for consistency.

* ext/curses/curses.c: replace FIX2INT() by typechecking NUM2INT().

* parse.y (str_extend): should not process immature #$x and
  #@x interpolation, e.g #@#@ etc.

* enum.c (enum_sort_by): sort_by does not have to be stable always.

* enum.c (enum_sort_by): call qsort directly to gain performance.

* util.c (ruby_qsort): ruby_qsort(qs6) is now native thread safe.

* error.c (rb_sys_fail): it must be a bug if it's called when
  errno == 0.

* regex.c (WC2MBC1ST): should not pass through > 0x80 number in UTF-8.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-10 07:18:16 +00:00
..
curses * array.c (rb_ary_modify): should copy the internal buffer if the 2001-12-10 07:18:16 +00:00
dbm * configure.in: use GCC, not without_gcc. remove without_gcc. 2001-12-02 14:10:27 +00:00
digest * eval.c (rb_thread_restore_context): save current value of 2001-09-08 14:17:53 +00:00
etc Rename *.jp to *.ja, since jp is a region code and ja is a language 2001-07-19 05:44:26 +00:00
fcntl * dir.c (dir_s_glob): supprt backslash escape of metacharacters 2001-02-14 05:52:06 +00:00
gdbm * ext/gdbm/gdbm.c (rb_gdbm_fetch): str is a VALUE now. 2001-10-03 07:52:09 +00:00
nkf * regex.c (NUM_FAILURE_ITEMS): was confusing NUM_REG_ITEMS and 2001-07-18 05:56:05 +00:00
pty * marshal.c (w_float): must distinguish -0.0 from 0.0. 2001-11-27 10:00:35 +00:00
readline * ext/readline/readline.c: restore terminal mode 2001-09-06 05:14:06 +00:00
sdbm * intern.h (rb_protect_inspect): follow the change of array.c. 2001-10-29 06:16:01 +00:00
socket * ext/socket/extconf.rb: remove -L/usr/local/lib. 2001-12-03 07:09:01 +00:00
syslog Import the "syslog" module from the rough ruby project. This module 2001-11-26 12:00:40 +00:00
tcltklib * parse.y (str_extend): shuould allow interpolation of $-x. 2001-10-29 05:07:26 +00:00
tk * parse.y (parse_regx): should raise error on untermitated 2001-11-19 05:03:03 +00:00
Win32API * ext/Win32API/Win32API.c: remove Init_win32api(). 2001-03-26 05:11:18 +00:00
.cvsignore * ext/extmk.rb.in: support multi-level ext/ directories. 2001-07-13 18:02:10 +00:00
aix_mksym.rb remove marshal/gtk/kconv 1999-08-13 05:37:52 +00:00
configsub.rb * mkconfig.rb, ext/configsub.rb: VERSION -> RUBY_VERSION. 2001-05-31 04:40:37 +00:00
extmk.rb.in * ext/extmk.rb.in: ignore adding -Wl,-R to DLDFLAGS when the directory 2001-12-07 06:52:31 +00:00
Setup Import the "syslog" module from the rough ruby project. This module 2001-11-26 12:00:40 +00:00
Setup.dj Import the "syslog" module from the rough ruby project. This module 2001-11-26 12:00:40 +00:00
Setup.emx Import the "syslog" module from the rough ruby project. This module 2001-11-26 12:00:40 +00:00
Setup.nt Import the "syslog" module from the rough ruby project. This module 2001-11-26 12:00:40 +00:00
Setup.x68 Import the "syslog" module from the rough ruby project. This module 2001-11-26 12:00:40 +00:00