summaryrefslogtreecommitdiff
path: root/ext
AgeCommit message (Collapse)Author
2003-05-15* ext/syck/syck.c (syck_parser_pop_level): add prototype.usa
* ext/syck/syck.c (syck_strndup): should return value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-14* ext/syck/gram.c: sequence-in-map shortcut, transfer methods onwhy
sequence-in-sequence, memory leak in mapping merge. [0.28] * ext/syck/syck.c: memory leak in domain anchoring. [0.28] * lib/yaml/rubytypes.rb, lib/yaml/types.rb: eliminated 1.6.x code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-14* ext/syck/rubyext.c: add prototypes to avoid VC++ warnings.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13* lib/yaml/rubytypes.rb, lib/yaml/types.rb: using Object#object_idwhy
rather than deprecated Object#id. * ext/token.c: changed ASCII escapes to octal notation. * ext/Setup*: added entries for static linking of Syck extension. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13ext/syck/handler.c (syck_hdlr_add_alias): add cast to avoid warning.eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13* ext/syck/handler.c: add proper casts.eban
* ext/syck/syck.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-13* lib/yaml/rubytypes.rb: object and struct loadingwhy
* lib/yaml.rb: YAML::detect_implicit will discover typing for a Ruby string * ext/syck/: Fixed portable comments, misuse of NULL and methods without return VALUEs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-11* ext/syck/implicit.c, ext/syck/rubyext.c: transfer methods applied to ↵why
native loading * ext/syck/token.c: fix for transfer methods on same indentation as nested mapping * lib/yaml/rubytypes.rb: all type names in lowercase git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10* ext/syck/gram.c ext/syck/handler.c ext/syck/implicit.cwhy
ext/syck/node.c ext/syck/rubyext.c ext/syck/syck.c ext/syck/syck.h ext/syck/token.c: updated to Syck 0.27 * lib/yaml/loader.rb: new YAML::Loader class * lib/yaml.rb: loading of type families leverages YAML::DefaultLoader git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10* ext/syck/MANIFEST: new file.eban
* ext/syck/.cvsignore: new file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-09Initial checkin of YAML substances.why
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-06* numeric.c (num_step): remove epsilon; add margin of 0.5, to makematz
"1.1.step(1.5,0.1)" to work (third try). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-06bigdecimal-brushup.patch from Tadashi Saito applied.shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-06* ext/bigdecimal/.cvsignore: new file (retry).aamine
* ext/zlib/.cvsignore: new file (retry). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-06* object.c (rb_obj_methods): list singleton methods if recurmatz
argument is false; list all methods otherwise. * numeric.c (num_step): double epsilon to make "1.1.step(1.5,0.1)" to work. * ext/gdbm/gdbm.c (fgdbm_values_at): new method to replace select(index..). * ext/sdbm/init.c (fsdbm_values_at): ditto. * ext/dbm/dbm.c (fdbm_values_at): ditto. * ext/dbm/dbm.c (DBM::VERSION): defined. * ext/gdbm/testgdbm.rb: replace select with values_at. * ext/sdbm/testsdbm.rb: ditto. * ext/dbm/testdbm.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-04* array.c (rb_ary_values_at): new method to replace select(index..).matz
* hash.c (rb_hash_values_at,env_values_at): ditto. * re.c (match_values_at): ditto. * struct.c (rb_struct_values_at): ditto. * re.c (match_select): add iterator behavior. * ext/curses/curses.c, ext/digest/sha2/sha2.c, ext/iconv/iconv.c, ext/racc/cparse/cparse.c: include "ruby.h" at the top to shut up "_FILE_OFFSET_BITS redefined" warning on Solaris. * class.c (rb_class_protected_instance_methods): now gives warnings to show migration path. The default will be reversed on Jan 2004. * numeric.c (num_step): "1.1.step(1.5,0.1)" to work. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-03secure check when safe level 4.suke
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-25Patch from Michal Rokos for sprintf format strings applied.shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-25Removed lib & sample dir.shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24BigDecimal dir. rearrangement according to the suggestions from Minero Aoki.shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24Dir. rearrangement according to the suggestions from Minero Aoki.shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24More explanations for sincos.shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24Prec. improvement for PI.shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24* ext/extmk.rb: add -Wl,--no-undefined to LDSHARED onlyeban
if GNU ld is 2.11 or later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-22* ext/zlib/extconf.rb: bccwin32 is win32 too.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-19* ext/Setup*: Add zlib and remove bogus and obsolete entries.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-17Bug in negative.exp(n) reported by Hitoshi Miyazaki fixed.shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-17* ext/dbm/dbm.c (each_pair): add prototype to avoid VC++ warnings.usa
* ext/readline/readline.c (Init_readline): follow readline 4.2 prototype. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-17* ext/readline/readline.c: add the defined operator for bcc32.eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-09* ext/readline/readline.c: include <unistd.h> only whenusa
HAVE_UNISTD_H is defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-07* ext/socket/socket.c (sock_s_unpack_sockaddr_in): remove structmatz
size check. getnameinfo(3) can handle. [ruby-dev:19967] * io.c (io_read): do not call rb_sys_fail() when required data length is zero. (ruby-bugs-ja PR#420) * eval.c (umethod_proc): should raise TypeError, instead of returning error causing Proc. Following the principle of "fail early". [ruby-core:00927] * pack.c (pack_pack): small but serious typo. * eval.c (backtrace): skip internal allocator frame. (ruby-bugs-ja PR#416) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-06* zlib.c (rb_gzreader_getc): the return value of GzipReader#getc must be ↵katsu
unsigned. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-03* eval.c (rb_f_missing): use "inspect" for T_OBJECT as well.matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-29* instruby.rb, ext/extmk.rb, lib/benchmark.rb, lib/cgi.rb,akr
lib/debug.rb, lib/getoptlong.rb, lib/optparse.rb, lib/time.rb, lib/date/format.rb, lib/irb/ruby-lex.rb lib/uri/common.rb: revert escape for `-' in character class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-29* eval.c (avalue_to_svalue): use rb_check_array_type() again.matz
Clarify how "to_ary" and "to_a" work. [ruby-talk:68155] * eval.c (svalue_to_avalue): ditto. * eval.c (svalue_to_mrhs): ditto. * eval.c (rb_eval): unary splat to use to_a, but we need a hack to exclude Object#to_a until it's removed. * object.c (rb_Array): check obj.respond_to?("to_a"). Currently all object respond_to "to_a", but Object#to_a will be removed. * range.c (Init_Range): undefine to_ary. * re.c (Init_Regexp): ditto. * regex.c (re_compile_pattern): do not warn if "-" is at the top or last of character class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-28Import Ruby/zlib from rough.katsu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-28Use rb_str2cstr() instead of STR2CSTR() macro.shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-28Rubbish !shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-28Entries for bigdecimal added.shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-28Copied from rough/bigdecimal,documents & some sample programs added.shigek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-26* eval.c (avalue_splat): new function to do unary * (splat)matz
operator. * eval.c (avalue_to_svalue,svalue_to_avalue,svalue_to_mrhs): do not use implicit "to_ary" conversion. * ext/curses/curses.c (GetWINDOW,GetMOUSE): add taint check. * ext/curses/curses.c (curses_init_screen): ditto. * ext/curses/curses.c (window_initialize): ditto. * gc.c (os_each_obj): prohibit ObjectSpace#each_object in safe mode ($SAFE >= 4). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-25* ext/strscan/strscan.c: should infect also return values of #inspect.aamine
* ext/strscan/strscan.c: use snprintf() instead of sprintf(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-24security enhancement of dl library (need test).matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-24Added rb_secure(4). (Thanks to Minero Aoki)ttate
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-23update NotImplementError to NotImplementedError.matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-22* lib/optparse.rb, lib/jcode.rb, ext/tk/lib/tk.rb: reorder characterakr
class /[\]\[]/ to /[\[\]]/ to readability. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-21* regex.c (re_compile_pattern): fix previous change.akr
* instruby.rb, ext/extmk.rb, ext/tk/lib/tk.rb, lib/benchmark.rb, lib/cgi.rb, lib/debug.rb, lib/getoptlong.rb, lib/jcode.rb, lib/optparse.rb, lib/time.rb, lib/date/format.rb, lib/irb/ruby-lex.rb: escape `[', `]', `-' in chracter class in regexp to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-20* eval.c (load_dyna): clear ruby_errinfo. (ruby-bugs-ja PR#409)matz
* io.c (read_all): make str empty if given. (ruby-bugs-ja PR#408) * io.c (io_read): ditto. * io.c (rb_io_sysread): ditto. * range.c: do not override min and max. * sprintf.c (remove_sign_bits): octal left most digit for negative numbers may be '3'. (ruby-bugs-ja PR#407) * sprintf.c (rb_f_sprintf): should prefix sign bits if bignum is negative, using sign_bits(). * eval.c (avalue_to_mrhs): split argument passing and assignment conversion. * eval.c (svalue_to_mrhs): ditto. * eval.c (avalue_to_svalue): avalue_to_svalue([[1,2]]) should be [[1,2]], not [1,2] to wrap-around. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-10* file.c (rb_find_file): need world writable directory check formatz
relative paths too. * file.c (rb_find_file): world writable directory check if $SAFE >= 1 (was $SAFE >= 2). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-07* ext/tcltklib/extconf.rb (find_tcl, find_tk): return true ifnobu
non-versioned found. [ruby-dev:19759] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e