eban
3bf972993f
* io.c (read_all): should use off_t instead of long.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-29 04:38:37 +00:00
nobu
3badfbf1d5
(ruby-bugs-ja:PR#296)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 16:00:34 +00:00
nobu
9208c74718
* marshal.c (r_object): yield loaded objects, not intermediates.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 15:58:35 +00:00
michal
5c70716bdc
variable.c: Get rid of fix len buffer in rb_class_path (ruby-core:381)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 14:59:01 +00:00
nobu
b961db7587
* io.c (appendline): data was lost when raw mode.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 14:36:38 +00:00
nobu
343f505fb8
* ext/stringio/stringio.c (strio_initialize): RSTRING(mode)->ptr
...
can be NULL.
* ext/stringio/stringio.c (strio_ungetc): fix buffer overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 10:14:06 +00:00
nobu
4c59a65d04
adjust indet
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 09:41:58 +00:00
michal
29966e099c
file.c: fix mem leak in rb_stat_init
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 09:25:07 +00:00
nobu
8790d9b76e
* win32/win32.c (kill): negate pid under Win9x.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 08:56:25 +00:00
michal
0d0ae37e50
Int vs Long cleanup #3 (ruby-core:352)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 08:05:23 +00:00
eban
3685a85b3d
* configure.in (ar): don't check twice for ar.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 07:38:25 +00:00
matz
1a44a463af
* string.c (rb_str_delete_bang): should check if str->ptr is 0.
...
* string.c (rb_str_squeeze_bang): ditto.
* string.c (rb_str_count): ditto.
* string.c (rb_str_lstrip_bang): ditto.
* string.c (rb_str_rstrip_bang): ditto.
* string.c (rb_str_intern): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 06:01:58 +00:00
usa
c1454b3acb
* win32/win32.h: define SIGINT and SIGKILL if not defined.
...
* win32/win32.c: remove definition of SIGINT and SIGKILL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-28 02:39:29 +00:00
nobu
a13ebdb836
* ruby.c (require_libraries): prevent ruby_sorcefile from GC.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-27 11:00:24 +00:00
eban
087f010ddb
* string.c (rb_str_rstrip_bang): don't access address -1.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-27 10:24:24 +00:00
matz
c45908e41f
* file.c (rb_find_file): $LOAD_PATH must not be empty.
...
* file.c (rb_find_file_ext): ditto.
* range.c (range_eq): class check should be based on range.class,
instead of Range to work with Range.dup.
* range.c (range_eql): ditto.
* class.c (rb_mod_dup): need to preserve metaclass and flags.
* object.c (rb_cstr_to_dbl): had a buffer overrun.
* marshal.c (w_class): integrate singleton check into a funciton
to follow DRY principle.
* marshal.c (w_uclass): should check singleton method.
* object.c (rb_obj_dup): dmark and dfree functions must be match
for T_DATA type.
* object.c (rb_obj_dup): class of the duped object must be match
to the class of the original.
* re.c (rb_reg_quote): do not escape \t, \f, \r, \n, for they are
not regular expression metacharacters.
* time.c (time_s_alloc): use time_free instead of free (null check,
also serves for type mark).
* time.c (time_s_at): check dfree function too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-27 08:31:08 +00:00
michal
cd3d4a01f2
node.h: unsigned int cast (ruby-core:358)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-27 08:27:11 +00:00
michal
a36a445f2c
array small opt. changes (ruby-core:355)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-27 08:05:06 +00:00
wakou
eaf7368732
* lib/cgi.rb (CGI#form): fix ruby-bugs-ja:PR#280, add default action.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-25 20:15:54 +00:00
nobu
87c2982847
2002-08-24
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-24 14:17:45 +00:00
nobu
941e43aacf
* eval.c (call_trace_func): restore source file/line, as trace
...
function installed in required library with -r option can be
called while parsing. (ruby-bugs:PR#372)
* eval.c (module_setup): unused variable. [ruby-core:00358]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-24 06:32:40 +00:00
akr
9c4a482229
* lib/time.rb (Time.rfc2822, Time#rfc2822): preserve localtimeness.
...
* lib/pp.rb: pretty_print_cycled is renamed to pretty_print_cycle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-24 05:18:08 +00:00
eban
4b0f91401c
* instruby.rb: arch -> sitearch
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-23 15:24:03 +00:00
michal
f34a26bf90
array.c: Mem optim for Array#select
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-23 15:04:27 +00:00
nobu
de6c650f44
* eval.c (method_call): check receiver is defined.
...
* eval.c (umethod_call): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-23 15:01:13 +00:00
eban
cb8f50c4b5
2002-08-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-23 09:10:04 +00:00
eban
fc8f412488
* configure.in: RUBY_SO_NAME is msvcrt-rubyXX on mswin32/mingw32.
...
* configure.in (sitearch): new var.
* mkconfig.rb, lib/mkmf.rb (sitearch): ditto.
* win32/Makefile.sub, win32/setup.mak (sitearch): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-23 08:18:19 +00:00
michal
8b20131054
array.c: Int vs Long #2
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-23 07:48:48 +00:00
michal
d576f30068
Int vs Long clenup (forgot ChangeLog)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-21 15:53:07 +00:00
michal
ffc13a6525
*.c: Int vs Long cleanup
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-21 15:47:54 +00:00
eban
022d1f123c
2002-08-21
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-21 08:32:09 +00:00
matz
c7c1384e60
* eval.c (rb_thread_cleanup): should not modify the global
...
variable curr_thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-21 08:30:09 +00:00
eban
a7ed0fe4f9
* ChangeLog: typo fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-21 08:27:29 +00:00
eban
35ef113acf
* configure.in: set ac_cv_func__setjump to "no" on Cygwin.
...
* configure.in: set ac_cv_func_crypt to "no" on MinGW.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-21 07:17:55 +00:00
H_Konishi
5738d62912
* replace of check EPIPE error(in getc()) rutine on bcc32.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-20 13:03:22 +00:00
eban
514aa4d976
2002-08-20
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-20 10:47:49 +00:00
eban
80caadabe9
* file.c (rb_file_s_expand_path): accept drive letter on Cygwin.
...
* file.c (is_absolute_path): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-20 10:42:57 +00:00
matz
c8c55db68a
* io.c (rb_io_putc): output via rb_io_write().
...
* re.c (rb_reg_initialize_m): frozen check should be moved here
from rb_reg_initialize().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-20 07:36:01 +00:00
nobu
e0c5eed65c
* misc/inf-ruby.el (inf-ruby-keys): ruby-send-definition
...
conflicted with ruby-insert-end.
* misc/inf-ruby.el (inferior-ruby-mode): compilation-minor-mode.
* misc/inf-ruby.el (ruby-send-region): send as here document to
adjust source file/line. [ruby-talk:47113], [ruby-dev:17965]
* misc/inf-ruby.el (ruby-send-terminator): added to make unique
terminator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-19 10:07:06 +00:00
matz
e7b7d28b65
* array.c (sort_2): fatal typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-19 06:44:09 +00:00
matz
b818cdfaf3
* array.c (sort_2): comparison should be done as signed long.
...
* array.c (sort_2): should return int, not VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-19 06:41:02 +00:00
matz
ae23000c0e
* array.c (sort_2): *a - *b may overflow.
...
* array.c (ary_new): len*sizeof(VALUE) may be a positive value.
* array.c (rb_ary_initialize): ditto.
* object.c (rb_class_allocate_instance): move singleton class
check from rb_obj_alloc().
* re.c (rb_reg_initialize): should not modify frozen Regexp.
* ext/tcltklib/tcltklib.c (ip_init): allocation framework.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-19 05:56:09 +00:00
nobu
71a202fc01
particular symbol for win32_exception_list.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-19 03:41:00 +00:00
eban
6d9d1a9bb4
* eval.c (win32_get_exception_list, win32_set_exception_list): Cygwin fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-19 03:18:33 +00:00
nobu
3b2209d410
2002-08-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-19 00:38:51 +00:00
nobu
11e7d457d6
* eval.c (rb_thread_save_context, rb_thread_restore_context):
...
save/restore SEH chain on MS-Windows at thread switch.
[ruby-win32:273]
* eval.c (win32_get_exception_frame, win32_set_exception_frame):
added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-19 00:37:16 +00:00
eban
4f60a534cd
* io.c (NOFILE): define NOFILE as 64 if not defined.
...
* signal.c (sighandler_t): rename to sh_t on dietlibc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-16 07:23:04 +00:00
nobu
c27d662f50
* bignum.c (rb_cstr_to_inum): new decimal and octal string.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-16 06:39:27 +00:00
nobu
2229b70615
* io.c (rb_io_fread): renamed from io_fread and made extern.
...
* marshal.c (r_bytes0): check if successfully read, use
rb_io_fread() instead of fread() to be preemptive.
(ruby-bugs-ja:PR#294, 295)
* rubyio.h (rb_io_fread): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-16 02:52:25 +00:00
nobu
3d923fb928
commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-08-15 23:00:10 +00:00