* win32/win32.c (map_errno): map OS error to errno. [new]
* win32/win32.c (pipe_exec, CreateChild, poll_child_status, waitpid,
kill, link, rb_w32_rename, unixtime_to_filetime, rb_w32_utime): use
map_errno() instead of using GetLastError() directly.
* win32/win32.c (rb_w32_select, rb_w32_accept, rb_w32_bind,
rb_w32_connect, rb_w32_getpeername, rb_w32_getsockname,
rb_w32_getsockopt, rb_w32_ioctlsocket, rb_w32_listen, rb_w32_recv,
rb_w32_recvfrom, rb_w32_send, rb_w32_sendto, rb_w32_setsockopt,
rb_w32_shutdown, rb_w32_socket, rb_w32_gethostbyaddr,
rb_w32_gethostbyname, rb_w32_gethostname, rb_w32_getprotobyname,
rb_w32_getprotobynumber, rb_w32_getservbyname, rb_w32_getservbyport,
rb_w32_fclose, rb_w32_close): map winsock error to errno.
167 lines of code changed in:
2003-02-28
3 lines of code changed in:
* win32/win32.c (flock): supports larger files, and maps error
code.
* win32/win32.c (rb_w32_asynchronize): returns errno from child
thread.
* win32/win32.c (rb_w32_fclose, rb_w32_close): ensures unlocked.
38 lines of code changed in:
2003-02-27
3 lines of code changed in:
* string.c (str_new): need no MEMZERO().
* numeric.c (fix_gt): use rb_num_coerce_cmp() instead of
rb_num_coerce_bin.
* numeric.c (fix_ge, fix_lt, fix_le): ditto.
* numeric.c (flo_gt, flo_ge, flo_lt, flo_le): ditto.
69 lines of code changed in:
* lib/open-uri.rb: replace Kernel.open as well.
5 lines of code changed in:
* lib/debug.rb (DEBUGGER__::Context#debug_command): bp filename must
be the basename of it. [ruby-talk:65644]
6 lines of code changed in:
* lib/fileutils (fu_stream_blksize): wrong logial condition.
(and -> or).
6 lines of code changed in:
2003-02-22
3 lines of code changed in:
* eval.c (rb_thread_create): may called from place higher than
rb_gc_stack_start.
* gc.c (Init_stack): update rb_gc_stack_start if it is lower (or
higher if stack grows down) than the previous value.
8 lines of code changed in:
* lib/fileutils.rb: new method FileUtils#copy_stream.
* lib/fileutils.rb: new method FileUtils#compare_file.
* lib/fileutils.rb: new method FileUtils#compare_stream.
* lib/fileutils.rb: new method FileUtils#rmtree (alias of rm_rf).
74 lines of code changed in:
* string.c (rb_str_cmp_m): should use LONG2NUM().
5 lines of code changed in:
* eval.c (rb_f_require): do not need to abort if a DLEXT file
is not found.
5 lines of code changed in:
* string.c (rb_str_cmp_m): two small bugs fixed.
7 lines of code changed in:
* eval.c (rb_thread_remove): back outt changes.
2 lines of code changed in:
2003-02-21
3 lines of code changed in:
* gc.c (rb_gc_mark): inline rb_gc_mark_children().
* gc.c (gc_sweep): new tactics to increase malloc_limit mildly.
47 lines of code changed in:
* string.c (rb_str_cmp_m): return nil if str2 does not respond to
both "to_str" and "<=>".
* compar.c (cmp_gt): return nil if "<=>" returns nil (means
incomparable).
* compar.c (cmp_ge): ditto.
* compar.c (cmp_lt): ditto.
* compar.c (cmp_between): use RTEST(), since cmp_lt and cmp_gt may
return nil.
41 lines of code changed in:
This '$destdir' was meant to be a local variable.
3 lines of code changed in:
* eval.c (rb_thread_remove): thread may die in the process of
rb_thread_die(). this change was suggested by Rudi Cilibrasi
<cilibrar@drachma.ugcs.caltech.edu>.
* eval.c (rb_thread_start_0): main thread swapped by fork() may
terminate rb_thread_start_0() successfully. call ruby_stop(0);
this change too was suggested by Rudi.
13 lines of code changed in:
* file.c (file_expand_path): fix wrong behavior for root file.
expand_path("..", "//machine/share") => "//machine/share"
expand_path("..", "c:/a") => "c:/"
expand_path("..", "/a") => "/"
11 lines of code changed in:
* file.c (file_expand_path): should not upward beyond share name.
41 lines of code changed in:
* missing.h (strtoul): fix prototype of strtoul.
8 lines of code changed in:
*** empty log message ***
1 lines of code changed in:
* parse.y (clhs): allow "Foo::Bar = x".
* parse.y (primary): "self[n]=x" can be legal even when "[]=" is
private. changes submitted in [ruby-talk:63982]
* parse.y (aryset): ditto.
* parse.y (attrset): "self.foo=x" can be legal even when "foo="
is private.
* eval.c (is_defined): private "[]=" and "foo=" support.
* eval.c (rb_eval): ditto.
* eval.c (assign): ditto.
* eval.c (rb_eval): "foo=" should not always be public.
107 lines of code changed in:
* eval.c (rb_thread_restore_context): inhibit interrupts in
critical section while context switching. [ruby-talk:64785]
7 lines of code changed in:
2003-02-19
3 lines of code changed in:
* node.h (nd_cpath): nested class/module declaration.
[EXPREIMENTAL]
* eval.c (rb_eval): ditto.
* gc.c (rb_gc_mark_children): ditto.
* parse.y (cpath): ditto.
93 lines of code changed in:
2003-02-18
3 lines of code changed in:
* eval.c (rb_call0): should not report uninitialized warning by
attribute reader method.
* variable.c (rb_attr_get): new function to get instance variable
without uninitialized warning.
* io.c (argf_to_io): should prefetch argv.
37 lines of code changed in:
* misc/ruby-mode.el (ruby-comment-column): customize comment
column. [new]
* misc/ruby-mode.el (ruby-deep-indent-paren): deep indentation
parentheses. [new]
* misc/ruby-mode.el (ruby-expr-beg): fix for / after $?.
* misc/ruby-mode.el (ruby-parse-partial, ruby-calculate-indent):
deep indentation support.
* misc/ruby-mode.el (ruby-forward-sexp, ruby-backward-sexp):
move forward/backward across one balanced expression. [new]
* misc/ruby-mode.el (ruby-indent-exp): indent balanced
expression. [new]
* misc/ruby-mode.el (ruby-electric-brace): indent before
show matching parenthesis. (contributed by NABEYA Kenichi)
197 lines of code changed in:
* win32/win32.c (rb_w32_opendir, rb_w32_utime): need parens.
7 lines of code changed in:
* win32/win32.c (link): implement with CreateHardLink().
* win32/win32.c, win32/win32.h (rb_w32_utime): enable utime() to
directory if on NT. [new] (ruby-bugs-ja:PR#393)
103 lines of code changed in:
2003-02-17
3 lines of code changed in:
commit error.
5 lines of code changed in:
*** empty log message ***
7 lines of code changed in:
* file.c (file_expand_path): buffer might be reallocated while
expanding default directory.
* file.c (file_expand_path): default directory was being
ignored if path was full path with no drive letter, under
DOSISH.
59 lines of code changed in:
* io.c (prep_stdio, Init_io): always set binmode on Cygwin.
24 lines of code changed in:
* file.c (file_expand_path): fix surplus path separators while
expanding at root directory. [ruby-dev:19572]
40 lines of code changed in:
* lib/uri/generic.rb, lib/uri/ldap.rb, lib/uri/mailto.ldap: all foo=()
returns arguments passed by caller.
* lib/uri/generic.rb (Generic#to_str, Generic#to_s): removed to_str.
Suggested by Tanaka Akira <akr@m17n.org> at [ruby-dev:19475].
* lib/uri/generic.rb (Generic#==): should not generate an URI object
from argument. Suggested by Tanaka Akira <akr@m17n.org> at
[ruby-dev:19475].
33 lines of code changed in:
*** empty log message ***
15 lines of code changed in:
* range.c (range_step): step might be float 0 < x < 1.
* eval.c (rb_thread_schedule): pause if no runnable thread when
there's only one thread.
36 lines of code changed in:
* ruby.c (proc_options): script argument is in effect only when -e is not given.
10 lines of code changed in:
2003-02-13
3 lines of code changed in:
* ruby.c (ruby_init_loadpath): ensures buffer terminated
before use strncpy().
* ruby.c (proc_options): avoid SEGV at -S with no arguments.
(ruby-bugs-ja:PR#391)
18 lines of code changed in:
* eval.c (rb_thread_schedule): current thread may be dead when
deadlock. (ruby-bugs:PR#588)
8 lines of code changed in:
* file.c (rb_file_s_dirname): append "." if drive only.
7 lines of code changed in:
2003-02-12
3 lines of code changed in:
* file.c (strrdirsep): ignore trailing directory separators.
* file.c (rb_file_s_expand_path): File.expand_path(".","/") should
return "/". (ruby-bugs-ja:PR#389)
* file.c (rb_file_s_basename): also ignore trailing directory
separators, in compliance with SUSv3. (ruby-bugs-ja:PR#390)
* file.c (rb_file_s_dirname, rb_file_s_extname): ditto.
* file.c (rb_file_s_split): get rid of converting twice.
121 lines of code changed in:
convert EOL code.
0 lines of code changed in:
This commit was generated by cvs2svn to compensate for changes in r3481,
which included commits to RCS files with non-trunk default branches.
0 lines of code changed in:
Initial revision
2337 lines of code changed in:
* typo fix.
1 lines of code changed in:
* ext/extmk.rb (parse_args): add '-n' to $mflags BEFORE "--".
do not add DESTDIR if already included in $fmlags.
7 lines of code changed in:
* lib/fileutils.rb (FileUtils#uptodate?): use mtime for comparison.
7 lines of code changed in:
* array.c (rb_ary_to_a): return value should be an Array if the
receiver is an instance of subclass of Array.
* string.c (rb_str_to_s): return value should be a String if the
receiver is an instance of subclass of String.
* eval.c (rb_call): calls method_missing when superclass method
does not exist.
* eval.c (rb_f_missing): now handles "no super" case.
* object.c (rb_obj_ivar_get): Object#instance_variable_get: new
method to get instance variable value without eval(). [new]
* object.c (rb_obj_ivar_set): Object#instance_variable_set: new
method to set instance variable value without eval(). [new]
70 lines of code changed in:
* io.c (rb_file_sysopen): rb_file_sysopen_internal() needs four
arguments.
9 lines of code changed in:
2003-02-09
3 lines of code changed in:
* intern.h (HAVE_RB_DEFINE_ALLOC_FUNC, RB_CVAR_SET_4ARGS):
define to 1.
* ruby.h (NORETURN_STYLE_NEW): ditto.
10 lines of code changed in:
* lib/mkmf.rb (init_mkmf): add libdir to LIBPATH unless cross
compiling.
7 lines of code changed in:
* lib/net/http.rb: 4xx raises Net::ProtoServerError, 5xx raises Net::ProtoFatalError (for backward compatibility).
7 lines of code changed in:
* lib/fileutils.rb: new method FileUtils.pwd (really).
* lib/fileutils.rb: FileUtils.pwd, cmp, identical?, uptodate? does not accept any option.
27 lines of code changed in:
fix typo.
2 lines of code changed in:
Sorry, missed contributer's name.
3 lines of code changed in:
* misc/ruby-mode.el (ruby-forward-string): fixed void variable
error.
* misc/ruby-mode.el (ruby-font-lock-keywords): method name can
be delimited by tab.
12 lines of code changed in:
* lib/irb/workspace.rb, lib/irb/ext/math-mode.rb,
lib/irb/ext/multi-irb.rb, lib/irb/lc/error.rb,
lib/irb/lc/help-message, lib/irb/lc/ja/error.rb,
lib/shell/command-processor.rb, lib/shell/error.rb,
lib/shell/filter.rb: Fix typos and grammos. [approved by: keiju]
43 lines of code changed in:
2003-02-08
3 lines of code changed in:
s/Mon 01/Mon 1/.
9 lines of code changed in:
* intern.h (HAVE_RB_DEFINE_ALLOC_FUNC): New boolean macro to make
it easier to write extensions that work with both ~1.6 and 1.8~.
* intern.h (RB_CVAR_SET_4ARGS): Ditto.
* ruby.h (NORETURN_STYLE_NEW): Ditto.
12 lines of code changed in:
2003-02-07
3 lines of code changed in:
re-indented.
1 lines of code changed in:
* intern.h, re.c (rb_memsearch): returns long.
* string.c (rb_str_index): should return offset position.
13 lines of code changed in:
* eval.c (proc_invoke): should propagate self to super
methods. [ruby-dev:19510]
6 lines of code changed in:
* re.c (rb_reg_initialize_m): shoule not preset "kcode" unless
encoding is explicitly specified.
22 lines of code changed in:
* lib/fileutils.rb: new method FileUtils.pwd.
* lib/fileutils.rb: default label is ''.
* lib/fileutils.rb: using module_eval again, to avoid ruby's bug.
* lib/fileutils.rb: fix wrong examples in rdoc.
59 lines of code changed in:
* lib/complex.rb (Complex#==): should not raise error by type
mismatch.
* lib/rational.rb (Rational#==): ditto.
29 lines of code changed in:
2003-02-06
3 lines of code changed in:
* re.c (rb_reg_initialize_m): 3rd argument was ignored.
* string.c (rb_str_count): return 0 for empty string (was
returning nil).
12 lines of code changed in:
* lib/open-uri.rb: dispatch code restructured to make it openable
that has `open' method.
43 lines of code changed in:
* lib/open-uri.rb: Location: field may has a relative URI.
pointed out by erik eriksson <ee@opera.com>.
12 lines of code changed in:
2003-02-05
3 lines of code changed in:
* parse.y (yylex): no .<digit> floating literal anymore.
8 lines of code changed in:
typo
1 lines of code changed in:
2003-02-04
3 lines of code changed in:
* array.c (rb_ary_equal): a == b is true when b is non T_ARRAY
object, if b has "to_ary" and b == a.
* hash.c (rb_hash_equal): a == b is true when b is non T_HASH
object, if b has "to_hash" and b == a.
* string.c (rb_str_equal): a == b is true when b is non T_STRING
object, if b has "to_str" and b == a.
38 lines of code changed in:
Added RDoc comments. See comments at EOF for remaining issues.
148 lines of code changed in:
Added RDoc comments.
147 lines of code changed in:
* re.c (rb_reg_initialize_m): unfotunate serious typo.
2 lines of code changed in:
* object.c (Init_Object): default Object#=== now calls "=="
internally.
* re.c (rb_reg_initialize_m): should honor option status of
original regexp.
* array.c (rb_ary_equal): ary2 should be T_ARRAY (no to_ary
conversion).
* array.c (rb_ary_eql): ditto.
* string.c (rb_str_equal): str2 should be T_STRING (no to_str
conversion).
65 lines of code changed in:
* re.c (rb_memsearch): a little improvement.
17 lines of code changed in:
typo
3 lines of code changed in:
2003-02-03
4 lines of code changed in:
* re.c (rb_memsearch): algolithm body of String#index.
* error.c (Init_Exception): "to_str" removed.
* eval.c (eval): should not rely on Exception#to_str
* eval.c (compile_error): ditto.
* error.c (err_append): ditto.
* hash.c (rb_hash_merge): Hash#merge, non destructive "update".
now there's also Hash#merge! which is an alias to "update".
108 lines of code changed in: