aboutsummaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* * string.c (rb_str_clear): avoid revealing NULL pointer.matz2004-11-143-3/+4
| | | | | | | | | | | | | | | | | | [ruby-dev:24766] * string.c (str_gsub): add paranoid check. [ruby-dev:24827] * string.c (str_mod_check): check frozen status as well. [ruby-dev:24801] * lib/mathn.rb (Integer::gcd2): faster implementation by <erlercw@siu.edu>. [ruby-talk:120232] * ext/gdbm/gdbm.c (fgdbm_store): StringValue() may alter string pointer. [ruby-dev:24783] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/event.rb: remove $LOADED_FEATURES tricknagai2004-11-122-14/+12
| | | | | | | * ext/tk/lib/tk.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_glob2): do not allocate buffer from heap to avoidmatz2004-11-101-7/+0
| | | | | | | | | | | | | | | memory leaks. use string object for buffering instead. [ruby-dev:24738] * dir.c (join_path): ditto. * io.c (io_read): external input buffer may be modified even after rb_str_locktmp(). [ruby-dev:24735] * dir.c (fnmatch): p or s may be NULL. [ruby-dev:24749] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c: fix SEGV when compiled with Tcl/Tk8.3.x or oldernagai2004-11-093-0/+15
| | | | | | | * ext/tk/lib/tkextlib/tile/style.rb: bug fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove dump listnaruse2004-11-091-2/+2
| | | | | | | * remove CR git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * nkf_test.pl rev:1.7naruse2004-11-091-135/+246
| | | | | | | * fix bug: mime tests fail git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * fix bug arround parse optionsnaruse2004-11-091-9/+12
| | | | | | | * add versioning constants git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * nkf.c rev:1.38naruse2004-11-091-86/+98
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: bind-event methods accept multi substitution arguments.nagai2004-11-079-74/+83
| | | | | | | | | | | | | * ext/tk/lib/tk/canvas.rb: ditto. * ext/tk/lib/tk/canvastag.rb: ditto. * ext/tk/lib/tk/text.rb: ditto. * ext/tk/lib/tk/texttag.rb: ditto. * ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb: ditto. * ext/tk/lib/tkextlib/tktable/tktable.rb: ditto. * ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: rename WIN32OLE#ole_obj_help tosuke2004-11-062-6/+15
| | | | | | | | | WIN32OLE#ole_type. alias ole_obj_help to ole_type. * ext/win32ole/tests/testWIN32OLE.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* follow CVS Head of original nkf.naruse2004-11-052-19/+131
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/scrollable.rb: divide Scrollable module into X_Scrollablenagai2004-11-053-17/+28
| | | | | | | | | and Y_Scrollable * ext/tk/lib/tk/entry.rb: include X_Scrollable instead of Scrollable * ext/tk/lib/tk/autoload.rb: define autoload for X_Scrollable and Y_Scrollable git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: TkComm._at() supprts both of "@x,y" and "@x"nagai2004-11-051-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/text.rb: sorry. bug fix again.nagai2004-11-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/text.rb: bug fixnagai2004-11-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_gsub): should have removed rb_str_unlocktmp(str).matz2004-11-041-0/+3
| | | | | | | | | | [ruby-dev:24708] * ext/socket/socket.c (s_recvfrom): buffer modification check. [ruby-dev:24708] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_gsub): string modify check no longer based onmatz2004-11-041-5/+7
| | | | | | | tmplock. [ruby-dev:24706] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/win32ole/win32ole.c(typelib_file_from_typelib): search "win16"suke2004-11-041-5/+31
| | | | | | | | | | | | entry to get library path. ext/win32ole/win32ole.c(oletypelib_path): ditto. ext/win32ole/win32ole.c(ole_typedesc2val): add VT_LPWSTR, VT_LPSTR, VT_ERROR case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/variable.rb: forget to initialize instance_variablesnagai2004-11-041-0/+7
| | | | | | | of TkVarAccess objects git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_mark): enable GC stack checking.matz2004-11-041-0/+2
| | | | | | | | | | * string.c (str_gsub): lock strings temporarily. [ruby-dev:24687] * ext/socket/socket.c (s_recvfrom): tmplock input buffer. [ruby-dev:24705] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add rdoc style document.suke2004-11-031-68/+371
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: support to use different Tcl commands betweennagai2004-11-0314-47/+89
| | | | | | | | | | | | | configure and configinfo * ext/tk/lib/font.rb: ditto. * ext/tk/lib/itemconfig.rb: support to use different Tcl commands between item_configure and item_configinfo * ext/tk/lib/itemfont.rb: ditto. * ext/tk/extconf.rb: install SUPPORT_STATUS * ext/tk/lib/tkextlib: some bug fixes (see ext/tk/ChangeLog.tkextlib) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/enumerator/enumerator.c (each_cons_i): pass copy of anmatz2004-11-021-8/+5
| | | | | | | internal consequent array. [ruby-talk:118691] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * MANIFEST, ext/**/MANIFEST: removed.eban2004-11-0132-1051/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (MANIFEST): do not use anymore, use extconf.rb instead.eban2004-11-014-3/+8
| | | | | | | | * ext/enumerator/extconf.rb, ext/fcntl/extconf.rb, ext/stringio/extconf.rb: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/MANIFEST: typofix(src.rb -> src_rb).eban2004-10-311-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add WIN32OLE.codepage, WIN32OLE.codepage=suke2004-10-312-6/+103
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c: add "\075?UTF-8?Q?" for Gmail.eban2004-10-311-3/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/MANIFEST: added tests/testOLETYPELIB.rb.eban2004-10-301-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): NODE_XSTR should pass copy of literal string.matz2004-10-301-1/+1
| | | | | | | | | | | * array.c (rb_ary_update): a[n,m]=nil no longer works as element deletion. * enum.c (enum_sort_by): protect continuation jump in. [ruby-dev:24642] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/win32ole/win32ole.c: add WIN32OLE_TYPELIB class. addsuke2004-10-305-190/+965
| | | | | | | | | WIN32OLE#ole_typelib method. ext/win32ole/tests/testOLETYPELIB.rb: add WIN32OLE_TYPELIB class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* obsoleted by nkf-utf8/nkf.c.naruse2004-10-291-1900/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* from nkf 2.0.4naruse2004-10-293-0/+9424
| | | | | | | http://sourceforge.jp/projects/nkf/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* follow to nkf 2.0.4naruse2004-10-294-148/+782
| | | | | | | | | | | | | | | :new constants NKF::VERSION NKF::ASCII NKF::UTF8 NKF::UTF16 NKF::UTF32 :new methods NFK.guess1 (guess) NKF.guess2 (from nkf2) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* follow to nkf 2.0.4naruse2004-10-291-1/+1
| | | | | | | | | | | | | | | :new constants NKF::VERSION NKF::ASCII NKF::UTF8 NKF::UTF16 NKF::UTF32 :new metHods NFK.guess1 (guess) NKF.guess2 (from nkf2) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_cleanup): ruby_finalize_1 may cause exception,matz2004-10-291-1/+7
| | | | | | | should be wrapped by PUSH_TAG/POP_TAG(). [ruby-dev:24627] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h (NODE_TYPESHIFT): allow 4 more bits for line numbers.matz2004-10-272-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | [ruby-talk:117841] * ruby.h (FL_ABLE): nodes are not subject for flag operations. * io.c (ARGF_FORWARD): should have specified argv explicitly, since we no longer have frame->argv saved. [ruby-dev:24602] * string.c (RESIZE_CAPA): check string attribute before modifying capacity member of string structure. [ruby-dev:24594] * ext/zlib/zlib.c (gzreader_gets): use memchr() to to gain performance. [ruby-talk:117701] * sprintf.c (rb_f_sprintf): raise ArgumentError for extra arguments, unless (digit)$ style used. * io.c (rb_io_fptr_finalize): leave stdin/stdout/stderr open in interpreter termination. [ruby-dev:24579] * eval.c (frame_free): Guy Decoux solved the leak problem. Thanks. [ruby-core:03549] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/sample/tkextlib/bwidget/tree.rb: bug fixnagai2004-10-242-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (zstream_append_input): clear klass for z->inputmatz2004-10-231-3/+11
| | | | | | | to avoid potential vulnerability. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use NUM2INT to convert short values.ttate2004-10-231-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (zstream_run): always use zstream_append_input()matz2004-10-221-9/+3
| | | | | | | to avoid SEGV. [ruby-dev:24568] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (zstream_shift_buffer): should restore classmatz2004-10-211-1/+4
| | | | | | | | | | | | | field of a buffer. [ruby-dev:24562] * eval.c (rb_alias): should warn on method discarding. [ruby-dev:24546] * ext/zlib/zlib.c (zstream_expand_buffer_into): hide internal string buffer by clearing klass. [ruby-dev:24548] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove ext/win32ole/.document.suke2004-10-215-2/+17
| | | | | | | | add win32ole ext/.document. create .document dynamically by extconf.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_delete_if): should check if deleting elementmatz2004-10-192-0/+2
| | | | | | | | | is a string. [ruby-dev:24490] * ext/sdbm/init.c (fsdbm_delete_if): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_times): Array#* should return an instance ofmatz2004-10-192-5/+8
| | | | | | | | | | | | | | | the class of right operand. [ruby-dev:24526] * ext/zlib/zlib.c (zstream_detach_buffer): should not expose class-less object to Ruby world. [ruby-dev:24530] * eval.c (proc_dup): provide Proc#dup as well. [ruby-talk:116915] * eval.c (ruby_exec): stack marking position may be higher than expected. thanks to Guy Decoux. [ruby-core:03527] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Commit missed file.. Sorry folksdave2004-10-191-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole.c(ole_invoke): retrieve the result value whensuke2004-10-191-6/+8
| | | | | | | retrying the IDispatch::invoke. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (read_all): block string buffer modification duringmatz2004-10-196-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_io_fread() by freezing it temporarily. [ruby-dev:24479] * dir.c (rb_push_glob): block call at once the end of method. [ruby-dev:24487] * ext/enumerator/enumerator.c (enum_each_slice): remove rb_gc_force_recycle() to prevent potential SEGV. [ruby-dev:24499] * ext/zlib/zlib.c (zstream_expand_buffer): hide internal string buffer by clearing klass. [ruby-dev:24510] * ext/socket/socket.c (sock_s_getservbyaname): protocol string might be altered. [ruby-dev:24503] * string.c (rb_str_upto): check if return value from succ is a string. [ruby-dev:24504] * io.c (rb_io_popen): get mode string via rb_io_flags_mode() to avoid mode string modification. [ruby-dev:24454] * io.c (rb_io_getline_fast): should take delim as unsigned char to distinguish EOF and '\377'. [ruby-dev:24460] * io.c (rb_io_getline): add check for RS modification. [ruby-dev:24461] * enum.c (enum_sort_by): use qsort() directly instead using rb_iterate(). [ruby-dev:24462] * enum.c (enum_each_with_index): remove rb_gc_force_recycle() to prevent access to recycled object (via continuation for example). [ruby-dev:24463] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/MANIFEST: add lib/tkextlib/tcllib/ico.rb.eban2004-10-181-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/timer.rb: TkTimer#start and restart accept a blocknagai2004-10-171-5/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e