summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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
* * array.c (rb_ary_delete): element comparison might change arraymatz2004-09-1712-587/+569
| | | | | | | | | | | | | | | | size. [ruby-dev:24273] * parse.y: make ruby parser reentrant. merge ripper parser to the real one. this change makes ruby require bison. * file.c (rb_file_truncate): clear stdio buffer before truncating the file. [ruby-dev:24191] * ext/digest/digest.c: use rb_obj_class() instead of CLASS_OF which might return singleton class. [ruby-dev:24202] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: improve exit operationnagai2004-09-172-55/+71
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2004-09-17eban2004-09-171-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c: fix SEGV when (thread_)vwait or (thread_)tkwaitnagai2004-09-177-208/+587
| | | | | | | | | | | | * ext/tk/lib/tk.rb: add alias wait_window to wait_destroy * ext/tk/lib/multi-tk.rb: support calling 'mainloop' on slave interpreters (however, the 'real' eventloop must be run on the Default Master IP) * ext/tk/lib/remote-tk.rb: follow the changes of ext/tk/lib/multi-tk.rb * ext/tk/sample/remote-ip_sample2.rb: ditto * ext/tk/sample/tkoptdb-safeTk.rb: ditto git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added 'const char *' to use the type specifier 'S' instead of 'char *'.ttate2004-09-161-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2004-09-16eban2004-09-161-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/cgi.rb (WEBrick::CGI#start): should set REMOTE_USERgotoyuzo2004-09-163-1/+11
| | | | | | | | | | | to request.user attribute. * lib/webrick/httpservlet/filehandler.rb (WEBrick::HTTPServlet::FileHandler#initialize): should expand the pathname of document root directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2004-09-15ocean2004-09-151-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkoptdb-safeTk.rb: fix a bug depend on the changes of MultiTkIpnagai2004-09-152-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string was en-bugged by thenagai2004-09-143-16/+49
| | | | | | | previous changes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add simple formatter to ridave2004-09-143-15/+76
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: Add rdoc.aamine2004-09-142-0/+55
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: space event is on__sp, not on__lwsp. [ruby-dev:24257]aamine2004-09-1411-185/+157
| | | | | | | | | | | | | | | | | | * ext/ripper/eventids2.c: ditto. * ext/ripper/lib/ripper.rb: ditto. * ext/ripper/depend (ripper.o): No action is needed. [ruby-dev:24260] * ext/ripper/depend: Borland make does not accept pipes in Makefile rules. [ruby-dev:24589] * ext/ripper/depend: separate rules for developpers. * ext/ripper/Makefile.dev: new file. * ext/ripper/MANIFEST: add Makefile.dev. * ext/ripper/tools/generate-eventids1.rb: read from file, not stdin. * ext/ripper/extconf.rb: clean ripper.E. * ext/ripper/tools/generate-ripper_rb.rb: #include ids1/ids2 function was lost. * ext/ripper/tools/generate-ripper_rb.rb: SCANNER_EVENTS wrongly contained parser events. * ext/ripper/lib/ripper.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e