summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/time.rb (Time#xmlschema): new optional argumentakr2002-01-072-7/+32
| | | | | | | | fractional_seconds to specify a number of digits of fractional part of the time. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* misordered.nobu2002-01-051-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_member): beginning check wasnobu2002-01-052-1/+6
| | | | | | | wrong. [ruby-talk:30252] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-forward-string): forward a string. [new]nobu2002-01-052-78/+98
| | | | | | | | | | | | | * misc/ruby-mode.el (ruby-parse-region): handle nested parentheses in a string and terminators in #{}. * misc/ruby-mode.el (ruby-calculate-indent): ditto. * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): fix font-lock problem [ruby-talk:29296]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-01-05eban2002-01-041-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yycompile): strdup()'ed twice.nobu2002-01-042-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-01-05eban2002-01-041-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2002-01-05eban2002-01-041-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_system): abandon vfork.matz2002-01-0416-104/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | * io.c (pipe_open): ditto. * defines.h: sparc linux needs different FLUSH_REGISTER_WINDOWS * regex.c (re_search): abandon stclass optimization. * bignum.c (rb_cstr2inum): deny "0_". * bignum.c (rb_cstr2inum): allow "0\n" and so on. * error.c (rb_invalid_str): utility function to show inspect()'ed string. * bignum.c (rb_cstr2inum): prints invalid strings in inspect()'ed format. * object.c (rb_Float): ditto. * object.c (rb_convert_type): no longer use rb_rescue(). * re.c (rb_reg_search): initialize taint status of match object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* The author of getoptlong.rb has agreed on changing the license fromknu2002-01-042-26/+2
| | | | | | | GPL to Ruby's. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_system): abandon vfork.matz2002-01-031-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | * io.c (pipe_open): ditto. * defines.h: sparc linux needs different FLUSH_REGISTER_WINDOWS * regex.c (re_search): abandon stclass optimization. * bignum.c (rb_cstr2inum): deny "0_". * bignum.c (rb_cstr2inum): allow "0\n" and so on. * error.c (rb_invalid_str): utility function to show inspect()'ed string. * bignum.c (rb_cstr2inum): prints invalid strings in inspect()'ed format. * object.c (rb_Float): ditto. * object.c (rb_convert_type): no longer use rb_rescue(). * re.c (rb_reg_search): initialize taint status of match object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): add -I. to CPPFLAGS.eban2002-01-022-7/+19
| | | | | | | * lib/mkmf.rb (create_makefile): srcdir support(.def and depend file). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: add dir_config.eban2001-12-313-16/+11
| | | | | | | * Makefile.in (fake.rb): set RUBY_VERSION. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yycompile): always store copy of filename.nobu2001-12-313-3/+11
| | | | | | | * parse.y (rb_compile_file): no longer need to strdup() here. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-307-582/+632
| | | | | | | | | | | * lib/net/protocol.rb: Protocol#start returns the return value of block. * lib/net/protocol.rb: set timeout limit by default. * lib/net/protocol.rb: new methods WriteAdapter#write, puts, print, printf. * lib/net/http.rb: rename HTTP#get2 to request_get, post2 to request_post ... * lib/net/smtp.rb: should not resolve HELO domain automatically. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in (have_library): do not print yes. sigh.eban2001-12-291-4/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in, lib/mkmf.rb (have_library): print yes.eban2001-12-292-2/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb.in, lib/mkmf.rb (have_library): accept -lmeban2001-12-293-0/+7
| | | | | | | unconditionally on mswin32/mingw32. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_cmpint): fixed typo.nobu2001-12-283-4/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cstr2inum): deny "0_".nobu2001-12-273-14/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cstr2inum): allow "0\n" and so on.nobu2001-12-263-13/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add pp.rb, prettyprint.rb and time.rb.akr2001-12-241-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb, lib/prettyprint.rb: new files.akr2001-12-241-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/pp.rb lib/prettyprint.rb: new file.akr2001-12-243-0/+1232
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_timeval): wrong cast to time_t.matz2001-12-222-5/+11
| | | | | | | * time.c (time_plus): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (str_extend): make up "#$;" handling.matz2001-12-223-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_plus): result should not be negative unlessmatz2001-12-218-43/+108
| | | | | | | | | | | | | | | | | | | | | | NEGATIVE_TIME_T is defined. * time.c (time_new_internal): should check tv_sec overflow too. * time.c (time_timeval): should check time_t range when time is initialized from float. * time.c (time_plus): uses modf(3). * variable.c (rb_cvar_set): add frozen class/module check. * variable.c (rb_cvar_declare): add frozen class/module check. * re.c (match_to_a): should propagate taint. * re.c (rb_reg_s_quote): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.h, ruby.h, util.h: enable prototypes in C++.nobu2001-12-214-3/+33
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2001-12-21eban2001-12-211-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_mod_define_method): must not convert Method to Proc.nobu2001-12-202-6/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (with_destdir): new.nobu2001-12-203-11/+23
| | | | | | | | | * lib/mkmf.rb: prefix target directories with $(DESTDIR) all. * lib/mkmf.rb: no need to mkdir $(libdir) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-202-4/+8
| | | | | | | * lib/net/protocol.rb: rename Net::Socket to Net::BufferedSocket git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: new methodsshugo2001-12-192-0/+234
| | | | | | | | | | | | | | | | Readline::basic_word_break_characters, Readline::basic_word_break_characters=, Readline::completer_word_break_characters, Readline::completer_word_break_characters=, Readline::basic_quote_characters, Readline::basic_quote_characters=, Readline::completer_quote_characters, Readline::completer_quote_characters=, Readline::filename_quote_characters, Readline::filename_quote_characters=. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_mod_define_method): define_method should followmatz2001-12-196-59/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | default method visibility. * eval.c (rb_attr): should warn if the default method visibility is "module_function" (can be error). * eval.c (rb_mod_define_method): should define class/module method also if the visibility is "module_function". * eval.c (rb_mod_define_method): should call hook method "method_added", and "singleton_method_added". * string.c: use RESIZE_CAPA for capacity change. * ext/socket/socket.c (Init_socket): add listen method to TCPServer and UNIXServer. * ext/socket/socket.c (bsock_send): should raise EWOULDBLOCK exception. * ext/socket/socket.c (s_recvfrom): ditto. * ext/socket/socket.c (s_accept): ditto. * ext/socket/socket.c (udp_send): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb: date.rb is not required anymore.akr2001-12-183-13/+41
| | | | | | | * lib/resolv.rb: fix document. refine IPv6 regex. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* conflicted.nobu2001-12-181-5/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: Hash#indexes -> Hash#select.eban2001-12-182-3/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_replace): swap arguments of OBJ_INFECT.matz2001-12-1814-77/+135
| | | | | | | | | | | | * eval.c (rb_thread_schedule): should not select a thread which is not yet initialized. * time.c (time_plus): wrong boundary check. * time.c (time_minus): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * intern.h: add prototypes.nobu2001-12-179-8/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | rb_gc_enable(), rb_gc_disable(), rb_gc_start(), rb_str_new5() rb_str_buf_append(), rb_str_buf_cat(), rb_str_buf_cat2(), rb_str_dup_frozen() * ruby.h: added declaration. rb_defout, rb_stdin, rb_stdout, rb_stderr, ruby_errinfo * rubyio.h: changed double include guard macro to RUBYIO_H. * array.c (inspect_call): make static. * eval.c (dvar_asgn): ditto. * io.c (rb_io_close_read): ditto. * lex.c (rb_reserved_word): ditto. * ruby.c: (req_list_head, req_list_last): ditto. * ruby.c (require_libraries): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2001-12-17eban2001-12-172-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb: use Time#utc_offset.akr2001-12-172-71/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: new method `gmtoff', `gmt_offset' and `utc_offset'.akr2001-12-174-27/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (time_utc_offset): new function. (Init_Time): bind above methods to `time_utc_offset'. * time.c: 64bit time_t support. (time_s_at): use NUM2LONG instead of NUM2INT for tv_sec. (time_arg): initialize tm_isdst correctly. use long to initialize tm_year. (search_time_t): renamed from `make_time_t'. (make_time_t): call `timegm' and `mktime' instead of `search_time_t' if availabe. (time_to_i): use LONG2NUM instead of INT2NUM. (time_localtime): check localtime failure. (time_gmtime): check gmtime failure. (time_year): use LONG2NUM instead of INT2FIX. (time_to_a): use long for tm_year. (time_dump): check tm_year which is not representable with 17bit. (time_load): initialize tm_isdst. * configure.in: check existence of `mktime' and `timegm'. check existence of tm_gmtoff field of struct tm. fix negative time_t for 64bit time_t. * missing/strftime.c: fix overflow by tm_year + 1900. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-138-133/+156
| | | | | | | | | | | | * lib/net/pop.rb: new method Net::POP3.APOP * lib/net/http.rb: set default Content-Type to x-www-form-urlencoded (causes warning) * lib/net/protocol.rb: remove Net::NetPrivate module. * lib/net/smtp.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/http.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_new_internal): avoid loop to calculate negativematz2001-12-135-22/+51
| | | | | | | | | | | | div, mod. * time.c (time_cmp): should handle Bignums. * array.c (rb_ary_pop): should ELTS_SHARED flag check before REALLOC. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_match_m): should convert an argument intomatz2001-12-1110-6/+203
| | | | | | | | | | | | | | | | | | | | | | regexp if it's a string. * array.c (rb_ary_select): Array#select(n,m,...) now works like Array#indexes(n,m,..). [new, experimental] * hash.c (rb_hash_select): ditto. * hash.c (env_select): ditto. * re.c (match_select): ditto. * struct.c (rb_struct_select): ditto. * gc.c (STR_ASSOC): use FL_USER3 instead of FL_USER2. * parse.y (str_extend): make up pushback call. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_class_real): follow included modules.nobu2001-12-102-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.h: change prototype of ruby_qsort() to accord with its definition.usa2001-12-102-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (gettable): should freeze __FILE__ string.eban2001-12-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add lib/time.rb.akr2001-12-101-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* auxiliary routines update.matz2001-12-102-3/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e