summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * string.c (rb_str_sum): check was done with false pointer.matz2004-10-022-4/+7
| | | | | | | [ruby-dev:24383] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2004-10-02eban2004-10-011-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_sum): string may be altered. [ruby-dev:24381]matz2004-10-019-39/+84
| | | | | | | | | | | | | | | | | | | | | | | * eval.c (rb_f_eval): defer pointer retrieval to prevent unsafe sourcefile string modification. [ruby-dev:24373] * io.c (io_read): block string buffer modification during rb_io_fread() by freezing it temporarily. [ruby-dev:24366] * io.c (rb_io_s_popen): mode argument may be altered. [ruby-dev:24375] * file.c (rb_file_s_basename): ext argument may be altered. [ruby-dev:24377] * enum.c (enum_sort_by): use NODE instead of 2 element arrays. [ruby-dev:24378] * string.c (rb_str_chomp_bang): StringValue() may change the receiver. [ruby-dev:24371] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/grid.rb: revive TkGrid.gridnagai2004-10-014-3/+14
| | | | | | | | * ext/tk/lib/tk/pack.rb: revive TkPack.pack * ext/tk/lib/tk/place.rb: revive TkPlace.place git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2004-09-30eban2004-09-301-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c (ip_init): bug fixnagai2004-09-298-10/+133
| | | | | | | | | | * ext/tk/tkutil.c (get_eval_string_core): accept a Regexp object * ext/tk/lib/multi-tk.rb: fix bug on 'exit' operation * ext/tk/lib/tk/text.rb: 'tksearch' accepts a Regexp object as a matting pattern argument git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_delete): comparison may change the capacity.matz2004-09-298-76/+132
| | | | | | | | | | | | | | | | | | | [ruby-dev:24348] * array.c (rb_ary_fill): fill should honor length argument. [ruby-dev:24346] * array.c (rb_ary_replace): should not use ptr from shared array. [ruby-dev:24345] * ext/socket/socket.c (s_accept): don't retry for EWOULDBLOCK. [ruby-talk:113807] * array.c (flatten): element size might change during comparison. [ruby-dev:24343] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2004-09-29eban2004-09-291-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (sort_by_i): internally used object must not be changednobu2004-09-292-0/+6
| | | | | | | outside. [ruby-dev:24368] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML reference.nobu2004-09-271-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): invoke finalizers periodically.nobu2004-09-274-42/+75
| | | | | | | | | * gc.c (gc_sweep): defer running finalizers. * gc.c (rb_gc_finalize_deferred): run deferred finalizers. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2004-09-27eban2004-09-271-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: missing ';'.aamine2004-09-272-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * intern.h, struct.c (rb_struct_s_members, rb_struct_members): publicnobu2004-09-274-25/+28
| | | | | | | | | accessors. [ruby-dev:24342] * marshal.c (w_object, r_object0): use accessors. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2004-09-26eban2004-09-261-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* synchronized with date2 3.6.1tadf2004-09-253-32/+81
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c: iterator functions for hash_foreach() should return enumnobu2004-09-242-19/+24
| | | | | | | st_retval. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * struct.c (rb_struct_s_members): wrong call of struct_members.matz2004-09-243-6/+36
| | | | | | | | | | [ruby-dev:24333] * eval.c (proc_invoke): propagate DVAR_DONT_RECYCLE on termination to avoid double call to rb_gc_force_recycle(). [ruby-dev:24311] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2004-09-24eban2004-09-241-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_parser_append_print): should handle prelude.matz2004-09-2411-155/+196
| | | | | | | | | | | | | | | | | | | | | | [llama@u01.gate0] * parse.y (rb_parser_while_loop): ditto. * array.c (rb_ary_subseq): original object might be modified after sharing data creation. [ruby-dev:24327] * array.c (rb_ary_replace): ditto. * array.c (ary_make_shared): freeze shared array. [ruby-dev:24325] * struct.c (struct_members): always check struct size and size of members list in the class. [ruby-dev:24320] * string.c (rb_str_sub_bang): check if string is not modified during iteration. [ruby-dev:24315] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/Makefile.dev: removed.aamine2004-09-2313-1352/+1365
| | | | | | | | | | | | * ext/ripper/ripper.rb.in: moved to lib/ripper/core.rb.in. * ext/ripper/lib/ripper/core.rb: new file. * ext/ripper/lib/ripper/core.rb.in: new file. * ext/ripper/tools/generate-ripper_rb.rb: change comment. * test/ripper/*.rb: on_scan removed. * test/ripper/*.rb: event name changed: on__ -> on_. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c: remove debug print.matz2004-09-231-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c: remove debug print.matz2004-09-231-3/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_rehash): replace st_foreach() by its deepmatz2004-09-237-48/+76
| | | | | | | checking counterpart. [ruby-dev:24310] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: on__scan event removed.aamine2004-09-2214-287/+379
| | | | | | | | | | | | | | * parse.y [ripper]: event name is changed: on__XXX -> on_XXX. * ext/ripper/eventids2.c: ditto. * ext/ripper/ripper.rb.in: ditto. * ext/ripper/lib/ripper.rb: sync with ripper.rb.in. * ext/ripper/lib/ripper/tokenizer: ditto. * ext/ripper/lib/ripper/filter: new file. * sample/ripper/colorize.rb: new file. * sample/ripper/strip-comment.rb: new file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (hash_alloc): was using tbl pointer withoutmatz2004-09-222-4/+7
| | | | | | | initialization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_rehash): add iteration check. [ruby-dev:24301]matz2004-09-226-49/+103
| | | | | | | | | | | * st.c (st_foreach): add deep check. * hash.c (rb_hash_fetch): returns KeyError instead of IndexError. * hash.c (env_fetch): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_call_handler): workaround for Ctrl-C.usa2004-09-222-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2004-09-22usa2004-09-221-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: remove global variables ruby_eval_tree andmatz2004-09-228-74/+94
| | | | | | | | | | | | | | ruby_eval_tree_begin. * array.c (rb_ary_collect_bang): element size might change during comparison. [ruby-dev:24300] * array.c (rb_ary_reject_bang): ditto. [ruby-dev:24300] * array.c (rb_ary_eql): ditto. [ruby-dev:24300] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add documentation to fork()dave2004-09-212-1/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* should use 'c' for 'unsigned char ref'.ttate2004-09-211-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_sort_by): do not use qsort directly. usematz2004-09-2111-93/+232
| | | | | | | | | | | | | | | | | | | | rb_ary_sort_bang() instead. [ruby-dev:24291] * enum.c (enum_sort_by): pedantic type check added. [ruby-dev:24291] * hash.c (rb_hash_foreach_iter): check iter_lev after each iteration. [ruby-dev:24289] * array.c (rb_ary_and): element size might change during comparison. [ruby-dev:24290] * array.c (rb_ary_or): ditto. [ruby-dev:24292] * array.c (rb_ary_equal): wrong fix. [ruby-dev:24286] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/lib/ripper/tokenizer.rb: fix typo.aamine2004-09-202-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_scanner_events.rb: tokens must be reordered.aamine2004-09-203-10/+64
| | | | | | | * ext/ripper/lib/ripper/tokenizer.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: do not delay dispatching.aamine2004-09-203-56/+44
| | | | | | | * ext/ripper/lib/ripper/tokenizer.rb: sort tokens by right order. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/MANIFEST: add lib/ripper/tokenizer.rb.eban2004-09-201-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/lib/ripper/tokenizer.rb: new file.aamine2004-09-202-0/+39
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_scanner_events.rb: test #lineno and #column.aamine2004-09-202-19/+63
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: delayed heredocument events should be dispatched after EOF.aamine2004-09-202-4/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: adjust lineno and columns for multi-line strings.aamine2004-09-207-57/+107
| | | | | | | | | | | | | * parse.y [ripper]: delay heredocument events until seeing end-of-line. * parse.y [ripper]: event on__heredoc_contentn -> on__tstring_content. * ext/ripper/eventids2.c: ditto. * ext/ripper/lib/ripper.rb: sync with eventids2.c. * test/ripper/test_scanner_events.rb: test it. * ext/ripper/tools/generate-ripper_rb.rb: show basename of input. * ext/ripper/Makefile.dev: support objdir build. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: remove Ripper#pos.aamine2004-09-202-26/+8
| | | | | | | * parse.y [ripper]: Ripper#column should return the column of the current token. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: unify old_lex_p and token_head.aamine2004-09-203-130/+87
| | | | | | | | * test/ripper/test_scanner_events.rb: now \r\n is saved correctly. * parse.y: new macro lex_goto_eol() for next change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: adjust line number for heredoc. [ruby-dev:24272]aamine2004-09-202-2/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2004-09-20aamine2004-09-191-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/ripper.rb.in: new const Ripper::PARSER_EVENT_TABLE.aamine2004-09-194-221/+260
| | | | | | | | * ext/ripper/ripper.rb.in: new const Ripper::SCANNER_EVENT_TABLE. * ext/ripper/lib/ripper.rb: sync with ripper.rb.in. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_scanner_events.rb: test spaces before heredoc mark.aamine2004-09-192-30/+27
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: spaces before heredoc marker was lost.aamine2004-09-196-3/+26
| | | | | | | | | | * keywords: rb_reserved_word() should be defined only in ruby core. * lex.c: sync with keywords. * ext/ripper/ripper.rb.in (parse): fix typo. * ext/ripper/lib/ripper.rb: sync with ripper.rb.in. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (gzfile_read_raw): call readpartial at first.akr2004-09-194-13/+124
| | | | | | | (Zlib::GzipReader#readpartial): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: add prototypes for Microsoft compiler.usa2004-09-176-4/+19
| | | | | | | | | | * ext/ripper/depend (parse.obj): lex.c exists at hdrdir. * {bcc32,win32,wince}/Makefile.sub (YACC, YFLAGS, parse.c): use bison. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e