Граф коммитов

13807 Коммитов

Автор SHA1 Сообщение Дата
akr 6c835ee50a * tool/transcode-tblgen.rb: make infos arrays and BYTE_LOOKUPs into
single array.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 17:06:07 +00:00
yugui 4bec0938a1 * common.mk (clean-golf): added.
(distclean-golf): added.
  (realclean-golf): added.
  (clean): added clean-golf.
  (distclean): added distclean-golf.
  (realclean): added realclean-golf.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 16:51:06 +00:00
yugui 1ff83a064f * common.mk (realclean-local): added newline.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 16:33:26 +00:00
svn aa029500bf * 2008-09-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 16:22:54 +00:00
akr 752e053a1d * transcode_data.h (BYTE_LOOKUP): change to uintptr_t array.
(BYTE_LOOKUP_BASE): follow the type change.
  (BYTE_LOOKUP_INFO): ditto.
  (PType): ditto.
  (rb_transcoding): ditto.

* tool/transcode-tblgen.rb: follow the type change.

* transcode.c: ditto.

* enc/trans/newline.trans: ditto.

* enc/trans/iso2022.trans: ditto.

* enc/trans/utf_16_32.trans: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 16:22:49 +00:00
akr 2ae7b0328e * transcode_data.h (BYTE_LOOKUP_BASE): abstract accessor for
BYTE_LOOKUP.
  (BYTE_LOOKUP_INFO): ditto.

* transcode.c (transcode_restartable0): use BYTE_LOOKUP_BASE and
  BYTE_LOOKUP_INFO.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 14:33:56 +00:00
akr edf1d608c7 * tool/transcode-tblgen.rb: gather infos arrays and BYTE_LOOKUPs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 14:16:30 +00:00
shugo bf2473d869 added acknowledgment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 13:55:49 +00:00
yugui add4d16477 * lib/mkmf.rb (distclean): added RM_RF conftest.dSYM.
Fixes distclean-ext problem on Mac OS X.
  (RM_RF): added.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 13:44:54 +00:00
shugo bb1d005da6 * lib/rexml/document.rb: limit entity expansion.
* lib/rexml/entity.rb: ditto.
* test/rexml/test_document.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 13:41:38 +00:00
akr 339dfc32a7 * tool/transcode-tblgen.rb: make offsets arrays into single array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 13:21:06 +00:00
akr 03ec9b1aac * tool/transcode-tblgen.rb: gather offsets array at top.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 12:52:58 +00:00
yugui b6b1931b7b * .: removed rubyspec from svn:ignore subversion property.
rubyspec directory is no longer used.

* spec: added mspec and rubyspec to svn:ignore.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 12:13:10 +00:00
akr 9f8cf6559a * tool/transcode-tblgen.rb: ValidEncoding['eucJP-ms'] defined.
"\xA2\xAF".encode("utf-8", "eucJP-ms") should raise
  Encoding::ConversionUndefined, not Encoding::InvalidByteSequence.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 10:38:16 +00:00
usa 03f1a06114 * ChangeLog: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 09:32:40 +00:00
usa 9b1508a5ce * ChangeLog: ML ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 09:30:08 +00:00
usa 4badcec903 * win32/win32.c (gettimeofday): shouldn't use mktime(2) because it's
buggy about handling summer time.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 09:28:54 +00:00
naruse 8087f26de6 fix changelog [ruby-dev:36070]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 08:31:54 +00:00
naruse 3960c2f7a7 * enc/euc_jp.c (euc-jp-ms): euc-jp-ms is not EUC-JP not an alias of
eucJP-ms.

* enc/trans/japanese.trans (eucJP-ms): eucJP-ms is the correct
  name of the encoding in Ruby.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 08:24:55 +00:00
nobu cb50168eb0 * ext/digest/md5/md5init.c (md5), ext/digest/rmd160/rmd160init.c
(rmd160) ext/digest/sha1/sha1init.c (sha1),
  ext/digest/sha2/sha2init.c (sha256, sha384, sha512): constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 07:48:53 +00:00
naruse a7cdd20204 * enc/trans/japanese.trans: fix mapping priority.
IBM extended is prior than NEC selected IBM.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 06:16:42 +00:00
naruse 7ae5e9c960 * tool/transcode-tblgen.rb (transcode_compile_tree): use the first
mapping when some mappings are given for a character.
  [ruby-dev:36068]

* tool/transcode-tblgen.rb: expandtab.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 05:54:36 +00:00
yugui d7cffe9768 * README.EXT (Appendix A): fixed the name of class
Enumerator. Enumerable::Enumerator was renamed just
  Enumerator at revision 18564.

* README.EXT (Appendix A): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 05:45:06 +00:00
usa ae80b4fac2 * tool/transcode-tblgen.rb: set ERB source filename for error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 05:39:48 +00:00
nobu c6c4ce81c2 * enc/depend: transdb.c may not present.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 05:37:04 +00:00
naruse 7ea3d11e22 * enc/trans/japanese.trans: fix Ruby 1.8 compatibility.
* enc/trans/japanese.trans: fix mapping priority. [ruby-dev:36068]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 05:27:48 +00:00
naruse 629da9d049 * test/ruby/test_transcode.rb (test_windows_31j): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 05:25:18 +00:00
yugui a4ee7c2c3b * README.EXT (Data-types): fixed for current status.
(Manipulating Ruby data): mentioned some more functions.
  (Class/module definition): ditto.
  (Global variables shared between C and Ruby):
    fixed prototypes for the getter/setter's of global variables.
  (Appendix A): mentioned some more files.

* README.EXT.ja: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 05:08:44 +00:00
nobu a107e1e998 * lib/fileutils.rb (copy_stream, fu_copy_stream0, copy_file): use
IO.copy_stream to get rid of extraneous conversion.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 02:31:56 +00:00
usa d4c5212794 * strftime.c (rb_strftime): calc timezone offset by myself if system
doesn't provide timezone info.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 17:58:13 +00:00
akr 0f81455429 * tool/transcode-tblgen.rb: change "illegal" to "invalid".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 17:49:08 +00:00
akr 8841969485 * tool/transcode-tblgen.rb (transcode_generated_code): defined for
generating table at once.
  (transcode_tblgen): returns an empty string.
  (transcode_generate_node): ditto.

* enc/trans/newline.trans: use transcode_generated_code.

* enc/trans/iso2022.trans: ditto.

* enc/trans/single_byte.trans: ditto.

* enc/trans/utf_16_32.trans: ditto.

* enc/trans/japanese.trans: ditto.

* enc/trans/korean.trans: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 17:35:00 +00:00
akr 6b2efe107f * tool/transcode-tblgen.rb (citrus_decode_mapsrc): print logging
message on STDERR.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 17:10:45 +00:00
naruse 3d8043d062 * enc/trans/eucjp-tbl.rb: replace by previous Citrus maps.
* enc/trans/sjis-tble.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 16:25:38 +00:00
naruse 1893e19865 * tool/transcode-tblgen.rb: add table generator from Citrus maps.
* enc/trans/japanese.trans: use Citrus maps.

* enc/trans/CP: add maps from Citrus.

* enc/trans/JIS: ditto.

* test/ruby/test_transcode.rb: Shift_JIS and EUC-JP doesn't support
  IBM extended characters.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 16:23:04 +00:00
akr e7ee4fabd4 rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 15:31:14 +00:00
svn 248aaa62b5 * 2008-09-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 15:23:55 +00:00
yugui 16122d1d81 * common.mk (docs): removed a useless make target.
tool/makedoc.rb was removed at revision 13919.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 15:23:51 +00:00
akr a017cecf42 fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 14:24:51 +00:00
tadf 1d9a079b1c * complex.c (numeric_abs2): new.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 11:51:04 +00:00
akr 8aae9dc62c ignore callback-*.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 10:13:18 +00:00
akr c3434e35ac rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 09:38:12 +00:00
nobu fea2b2538d * lib/mkmf.rb (have_devel?): checks if the compiler works.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 09:22:06 +00:00
yugui 1ca7943e11 * Temporarily uses git://github.com/yugui/rubyspec.git
until specs for 1.9 is merged into 
  git://github.com/rubyspec/rubyspec.git.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 09:11:02 +00:00
akr 69610b07c3 * transcode.c (transcode.c): set source_encoding and
destination_encoding as encoding object.
  (ecerr_source_encoding): new method.
  (ecerr_destination_encoding): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 09:08:31 +00:00
nobu 6e37ddcfbd * lib/mkmf.rb (Logging.log_open): opens in binary mode to get rid of
extra CR.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 08:59:09 +00:00
nobu 70b98dd4af * lib/mkmf.rb (try_func, try_var, have_struct_member),
(scalar_ptr_type?, scalar_type?): use MAIN_DOES_NOTHING.

* lib/mkmf.rb (MAIN_DOES_NOTHING): defaults to ordinary main.

* win32/Makefile.sub (config): for MAIN_DOES_NOTHING for wince.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 08:52:56 +00:00
yugui 11d35f6723 * spec/README (How to run): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 08:31:46 +00:00
yugui 7a4905583d * spec/default.mspec (config): added.
* spec/default.mspec (target): replaced the built ruby
  to runruby.rb.
  Improved $LOAD_PATH on running specs.

* spec/default.mspec (flags): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 08:31:38 +00:00
akr 94f421c9c0 fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 08:18:11 +00:00