akr
94342f89f9
add several tests for UTF-32LE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 16:12:03 +00:00
akr
6db9e77e64
* enc/trans/utf_16_32.erb.c (fun_so_from_utf_32le): implemented.
...
(fun_so_to_utf_32le): implemented.
[ruby-dev:35777]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 16:08:50 +00:00
svn
fbe9c1026d
* 2008-08-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 15:48:22 +00:00
akr
2833d9f95d
* transcode_data.h (rb_transcoder): from_unit_length field added.
...
from_utf8 field removed.
* tool/transcode-tblgen.rb: generate offsets range.
follow rb_transcoder change.
* transcode.c (transcode_loop): don't use from_utf8.
make invalid region from_unit_length wise.
* enc/trans/iso2022.erb.c: follow rb_transcoder and
transcode_generate_node change.
* enc/trans/utf_16_32.erb.c: follow rb_transcoder and
transcode_generate_node change.
explicit :invalid map removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 15:48:17 +00:00
nobu
a456f022fc
* enc/depend (TRANSCSRCS): needs rule_subst to apply.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 14:30:05 +00:00
nobu
90ca8317d3
* io.c (shutdown): not define if defined already.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 14:27:25 +00:00
nobu
6a852b7c2b
* vm_insnhelper.c (opt_eq_func): large function to make inline.
...
* bcc32/Makefile.sub (config.h): cannot compile a big inline function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 13:47:48 +00:00
naruse
e6a8cc7e2b
* common.mk (enk.mk): give not RUBY but MINIRUBY.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 12:10:15 +00:00
nobu
8569904ac4
* ChangeLog: commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 08:04:15 +00:00
nobu
1c22ef1705
* configure.in (shutdown, sched_yield, pthread_attr_setinheritsched):
...
check for Haiku.
* eval_intern.h, io.c, thread_pthread.c: use autoconfisticated results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 08:03:19 +00:00
nobu
b68b9ec698
* common.mk (enc.mk): mkmf.rb requires rbconfig.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 07:52:57 +00:00
nobu
2293171034
* common.mk (srcs-enc): renamed from transcodes.
...
* enc/Makefile.in (make-workdir): creates object directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 07:44:42 +00:00
nobu
62914a1209
* common.mk (encdb.h): see both $(srcdir)/enc and enc.
...
* enc/make_encdb.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 07:17:27 +00:00
nobu
b917553e68
* common.mk (encdb.h): see both $(srcdir)/enc and enc.
...
* enc/make_encdb.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 07:15:52 +00:00
nobu
2f37e03736
* enc/trans/make_transdb.rb: fix for the case no transdirs are given.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 07:09:03 +00:00
nobu
73d3ff0074
* enc/trans/make_transdb.rb: converts only one transcoders for each
...
basename.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 07:03:35 +00:00
akr
2577fa6dcc
* lib/resolv.rb: randomize source port and transaction id.
...
CVE-2008-1447.
* lib/resolv-replace.rb (UDPSocket#bind): don't resolv host if host is
"".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 01:58:40 +00:00
nobu
25efcaf400
svn:eol-style
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 00:45:51 +00:00
naruse
b41a687fe6
* common.mk: see both $(srcdir)/enc/trans and enc/trans.
...
* enc/trans/make_transdb.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 19:24:47 +00:00
svn
c6d05a63c6
* 2008-08-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 15:06:41 +00:00
kouji
fedc035ab8
* ext/.document: added readline/readline.c.
...
* ext/readline/readline.c: changed Copyright. added RDoc.
* ext/readline/README.ja: fixed typo.
* ext/readline/README: contents was moved RDoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 15:06:36 +00:00
akr
1504652373
* transcode_data.h (rb_transcoding): new field "stateful".
...
(rb_transcoder): preprocessor and postprocessor field removed.
change arguments of func_ii, func_si, func_io and func_so.
new field "finish_func".
* tool/transcode-tblgen.rb: make FUNii, FUNsi and FUNio
generatable.
* transcode.c (transcoder_lib_table): removed.
(transcoder_table): change structure.
(transcoder_key): removed because the above structure change.
(make_transcoder_entry): new function.
(get_transcoder_entry): ditto.
(rb_register_transcoder): follow the structure change.
(declare_transcoder): ditto.
(transcode_search_path): new function for breadth first search to
find a list of converters.
(transcode_search_path_i): new function.
(transcode_dispatch_cb): ditto.
(transcode_dispatch): use transcode_search_path.
(transcode_loop): follow the argument change.
(str_transcode): preprocessor and postprocessor stuff removed.
* enc/trans/iso2022.erb.c: new file. ISO-2022-JP conversion
re-implemented.
* enc/trans/japanese.erb.c: ISO-2022-JP stuff removed.
nute(23:52:53)% head -40 ChangeLog
Thu Aug 7 23:43:11 2008 Tanaka Akira <akr@fsij.org>
* transcode_data.h (rb_transcoding): new field "stateful".
(rb_transcoder): preprocessor and postprocessor field removed.
change arguments of func_ii, func_si, func_io and func_so.
new field "finish_func".
* tool/transcode-tblgen.rb: make FUNii, FUNsi and FUNio
generatable.
* transcode.c (transcoder_lib_table): removed.
(transcoder_table): change structure.
(transcoder_key): removed because the above structure change.
(make_transcoder_entry): new function.
(get_transcoder_entry): ditto.
(rb_register_transcoder): follow the structure change.
(declare_transcoder): ditto.
(transcode_search_path): new function for breadth first search to
find a list of converters.
(transcode_search_path_i): new function.
(transcode_dispatch_cb): ditto.
(transcode_dispatch): use transcode_search_path.
(transcode_loop): follow the argument change.
(str_transcode): preprocessor and postprocessor stuff removed.
* enc/trans/iso2022.erb.c: new file. ISO-2022-JP conversion
re-implemented.
* enc/trans/japanese.erb.c: ISO-2022-JP stuff removed.
* enc/trans/utf_16_32.erb.c: follow argument change of FUNso.
[ruby-dev:35798]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 14:53:30 +00:00
kouji
05373c4469
* ext/readline/README.ja: updated API document for Readline module.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 13:58:04 +00:00
shugo
16a24188cd
* lib/net/ftp.rb (login): raise FTPReplyError if passwd or acct
...
is not supplied. fixed [ruby-core:18058].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 11:55:13 +00:00
kazu
0ff8385bf4
fix typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 10:40:36 +00:00
akr
4c6321a1f7
add a comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 09:06:04 +00:00
knu
3f91366caf
* misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix the
...
regexp to only pick definition lines properly. `module_funtion'
is not a definition of a module named `_function'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 09:04:27 +00:00
nobu
380e558f33
* enc/depend: add transdb.c.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 08:47:58 +00:00
nobu
2ce5ff1ac1
* Makefile.in, common.mk, {bcc,win}32/Makefile.sub (clean-ext): do not
...
use miniruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 07:28:56 +00:00
nobu
fa3283c7ba
* enc/depend: removed needless explicit commands.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 05:17:34 +00:00
nobu
eab4f19731
* lib/mkmf.rb, {bcc32,win32}/Makefile.sub (CLEANLIBS, CLEANOBJS):
...
moved clean targets to platfrom makefiles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 05:16:27 +00:00
usa
c73a203040
* ext/socket/getaddrinfo.c (gai_strerror): ignore only on Haiku.
...
a patch from <znz at mbf.nifty.com>, [ruby-dev:35796].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 04:14:25 +00:00
akr
38eeffcec2
fix previous commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 22:14:04 +00:00
akr
8ff5c093ab
ignore generated files.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 22:12:33 +00:00
naruse
99e1e0f208
add comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 21:37:41 +00:00
naruse
38751ad9ae
* test/ruby/process.rb (test_popen_fork): skip a test which is
...
freeze in FreeBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 21:33:24 +00:00
naruse
16ea66221c
* config.guess: add powerpc-apple-haiku, i586-pc-haiku.
...
see [ruby-core:18110]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 21:07:36 +00:00
naruse
48e21d2051
* eval_intern.h: Add support to Haiku. see [ruby-core:18110]
...
* include/ruby/defines.h: ditto.
* configure.in: ditto.
* thread_pthread.c: ditto.
* io.c: ditto.
* lib/mkmf.rb: ditto.
* ext/socket/getaddrinfo.c: ditto.
* ext/socket/extconf.rb: ditto.
* ext/socket/socket.c: ditto.
* ext/socket/addrinfo.h: ditto.
* ext/socket/getnameinfo.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 20:52:44 +00:00
naruse
403d0334c1
* common.mk: mkdir enc/trans before build tables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 20:44:31 +00:00
naruse
ec85af4955
* enc/depend: enc/*.c is source but enc/trans/*.c is generated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 20:19:25 +00:00
naruse
420e61cf0b
* regenc.c (code_to_mbc): raise RangeError Integer#chr
...
when more than 255 is given with single byte encoding.
[ruby-dev:35789]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 20:17:55 +00:00
nobu
d8353d6b6e
* gc.c (run_final): runs finalizers with the object terminated.
...
* gc.c (rb_gc_call_finalizer_at_exit): keeps finalized objects from
linking to freelist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 20:06:05 +00:00
naruse
508b170dcd
* enc/depend: for build in other than srcdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 19:44:50 +00:00
akr
e22b3b773d
* tool/transcode-tblgen.rb (transcode_generate_node): code
...
argument removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 13:42:21 +00:00
nobu
7d072e2ba4
* gc.c (chain_finalized_object): deletes finalizers to be invoked from
...
finalizer_table.
* gc.c (rb_gc_call_finalizer_at_exit): warns when could not invoke
finalizers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 12:25:47 +00:00
akr
a016b30844
* enc/depend: transcode table generation depends on
...
tool/transcode-tblgen.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 11:57:32 +00:00
nobu
faf2541c2b
* gc.c (rb_gc_call_finalizer_at_exit): self-referencing finalizers
...
cannot be invoked. [ruby-dev:35681]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 11:48:30 +00:00
akr
5adb247914
* tool/transcode-tblgen.rb: distinguish UNDEF and INVALID.
...
[ruby-dev:35709]
* transcode.c (transcode_loop): don't need rb_enc_mbclen now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 11:47:14 +00:00
akr
fc841ddc66
useless comment removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 11:44:08 +00:00
akr
45428f2257
add tests for [ruby-dev:35726] and [ruby-dev:35709].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 11:43:37 +00:00