naruse
cb7075a6a2
* test/ruby/test_io_m17n.rb (test_strip_bom): added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-11 05:46:36 +00:00
nobu
c51a968903
* ext/readline/readline.c (readline_attempted_completion_function):
...
array length is long.
* ext/readline/readline.c (readline_s_get_filename_quote_characters):
missing type of self.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 22:12:07 +00:00
nobu
a88589c7d1
* random.c (limited_rand): expands to long before shift so that
...
the result does not overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 17:37:52 +00:00
nobu
1dabc36b8f
* random.c (rand_init): got rid of buffer overflow.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 15:16:32 +00:00
nobu
38867cc115
* array.c (ary_join_1): should recurse for element array.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 15:11:43 +00:00
naruse
161f0a1699
io.c (io_strip_bom): ungetbyte third byte when UTF-16LE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 14:21:13 +00:00
naruse
f188db3105
Fix condition of second byte of UTF-16LE/UTF-32LE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 14:21:04 +00:00
nobu
cdeed3b3eb
* ChangeLog: commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 13:47:48 +00:00
naruse
67016f368c
cosmetic changes
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 13:17:43 +00:00
kouji
257c314fbb
* ext/readline/extconf.rb: checked rl_refresh_line in readline.
...
* ext/readline/readline.c (readline_s_refresh_line): add new
method, a patch from Koichiro Ohba. see [ruby-list:45922].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 13:03:40 +00:00
kouji
89fd521319
* ext/readline/extconf.rb: checked rl_line_buffer and rl_point in
...
readline.
* ext/readline/readline.c (readline_s_get_line_buffer): new method.
(readline_s_get_point): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 12:13:18 +00:00
nobu
5d8b373b05
* test/ruby/test_array.rb (test_join2): fixed typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 11:41:27 +00:00
nobu
af8f8e5b0e
* array.c (recursive_join): use obj to tell if recursion occurs.
...
[ruby-core:24150]
* enum.c (enum_join): reverted r23966. [ruby-core:24196]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 07:30:08 +00:00
naruse
5e2a28d13d
Add test for marshaling regexp.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 05:51:28 +00:00
naruse
143d1d840d
* marshal.c (r_object0): set encoding only if the encoding is not US-ASCII.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 05:51:17 +00:00
nobu
234485dc7d
* random.c (struct MT): ruby already assumes int has 32bit at
...
least, so no needs to use long.
* random.c (rand_init):
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 05:44:08 +00:00
nobu
5cc13fcb22
* include/ruby/ruby.h (rb_obj_{untrust,untrusted,trust}): added
...
prototypes. [ruby-dev:38756]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 02:41:44 +00:00
nobu
bee49b3494
* vm_insnhelper.c (vm_search_superclass): checks for implicit
...
argument passing before method search. [ruby-core:24244]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-10 01:25:26 +00:00
nobu
b16c326d5e
* parse.y (parser_data_type): typed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-09 22:22:33 +00:00
nobu
081625d16e
* error.c (compile_warn_print, warn_print): fixed false warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-09 22:18:55 +00:00
svn
1dc339e5a4
* 2009-07-10
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-09 16:02:07 +00:00
naruse
f69af8e877
Remove debug print.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-09 16:02:02 +00:00
naruse
634cfdc6e6
Set encoding and strip bom when modeenc string is "r:foo-bom" [ruby-dev:37236]
...
* include/ruby/io.h (FMODE_STRIP_BOM): new constant.
* io.c (io_encname_bom_p): judge whether the encoding name
is *-bom or not.
(parse_mode_enc): drop "-bom".
(rb_io_modestr_fmode): set FMODE_STRIP_BOM if needed.
(rb_io_extract_modeenc): ditto.
(io_strip_bom): strip bom if exists.
(io_set_encoding_by_bom): set encoding if there is bom.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-09 14:47:48 +00:00
svn
a113d4f843
* 2009-07-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-09 14:47:31 +00:00
naruse
e6989a7ec2
* marshal.c (r_object0): replace \u by u when the regexp is
...
made by Ruby 1.8. [ruby-dev:36750]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-09 14:47:22 +00:00
tadf
d43de333de
* complex.c (nucomp_div): omitted zero division check.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-08 14:18:02 +00:00
keiju
855d0d1a1a
* lib/irb/inspector.rb: forget svn add.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-08 12:01:44 +00:00
nobu
a7c32bf81d
* error.c (rb_check_type): rejects typed data.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-08 10:10:28 +00:00
nobu
abbd115cae
* proc.c ({proc,binding,method}_data_type): typed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-08 09:28:09 +00:00
nobu
ebd13e3eed
* proc.c ({proc,method}_data_type): typed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-08 08:13:41 +00:00
nobu
ca93e00559
* file.c (rb_file_s_basename): returns new string instead of
...
shared string from FilePathStringValue(). [ruby-core:24199]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-08 07:47:09 +00:00
drbrain
dddd406b0c
Update ext/.document with extensions that appear to have documentation.
...
Fixes #1738 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-08 00:02:45 +00:00
ko1
9e60743008
* include/ruby/ruby.h:
...
rename
"...TypeStruct" and "typed_struct" to
"TypedData..." and "typeddata", respectively.
rename
rb_data_type_t#name to
rb_data_type_t#wrap_struct_name.
* error.c, gc.c, iseq.c, vm.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 20:28:27 +00:00
akr
26a1d97d8c
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 13:13:49 +00:00
keiju
c7fa0c727c
* bin/irb, lib/irb.rb lib/irb/*: irb-0.9.6, extend inspect-mode
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 11:36:20 +00:00
nobu
649237de8f
* gc.c (rb_gc_call_finalizer_at_exit): deal with typed struct like
...
as obj_free().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 08:00:44 +00:00
nobu
ac3c2866c7
* error.c (rb_typed_struct_is_kind_of): new function to see if the
...
given typed struct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 07:54:28 +00:00
nobu
74a6cc877c
* vm.c ({env,vm,thread}_data_type): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 06:23:39 +00:00
nobu
7bb9cc23a1
* error.c (rb_check_typed_struct): new function to check typed
...
struct.
* include/ruby/ruby.h (Check_TypedStruct, Data_Get_TypedStruct):
new macro to check typed struct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 04:44:54 +00:00
nobu
0f2d1527ab
* enum.c (DEFINE_ENUMFUNCS): included function signature.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 04:36:50 +00:00
nobu
e895bc3cdb
* enum.c (rb_enum_join): non-nil separator must be convertible to
...
String. [ruby-core:24172]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 04:34:34 +00:00
matz
9041ac4289
* enum.c (rb_enum_join): should propagate taint to the return
...
value. the change was overridden by r23967. [ruby-core:24176]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 03:55:18 +00:00
nobu
450f784216
* gc.c (GC_PROF_SET_MALLOC_INFO, GC_PROF_SET_HEAP_INFO): simplified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 02:56:57 +00:00
naruse
999123c147
* io.c (rb_io_ext_int_to_encs): Set external encoding if
...
ext==intern. [ruby-dev:38278]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 01:15:32 +00:00
svn
c19129be51
* 2009-07-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 01:12:25 +00:00
nobu
729d726e30
* iseq.c: provisional type fixes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 01:12:17 +00:00
matz
8c7f7c29b4
* enum.c (enum_to_a): should propagate taint to the return value.
...
[ruby-core:24152]
* enum.c (enum_sort_by): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-06 01:03:16 +00:00
nobu
06b9094f96
* proc.c (make_curry_proc): should propagate lambda-ness.
...
[ruby-core:24127]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-06 00:31:55 +00:00
nobu
4256968488
* proc.c (proc_hash): use long.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-06 00:23:36 +00:00
matz
ed86848563
* test/ruby/test_module.rb (TestModule#test_undef): adjust to
...
message change.
* test/ruby/test_object.rb (TestObject#test_redefine_method_which_may_case_serious_problem): ditto.
* test/ruby/test_object.rb (TestObject#test_remove_method): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-06 00:15:29 +00:00