nobu
8ea5018d20
* parse.y (yycompile): get rid of tracing while parsing.
...
[ruby-dev:31351]
* thread.c (ruby_suppress_tracing): added a new parameter, which
directs to call func always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-05 04:41:27 +00:00
nobu
80644b31d5
* bignum.c (rb_cstr_to_inum): trailing spaces may exist at sqeezing
...
preceeding 0s. [ruby-core:13873]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-04 02:23:52 +00:00
usa
97a9e9da85
* ext/Win32API/*: removed or moved to ext/dl/win32.
...
* ext/dl/win32/*: new. [ruby-dev:32387]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-03 02:53:13 +00:00
ko1
f3e3ce4c82
* insnhelper.ci (vm_callee_setup_arg): fix error message.
...
[ruby-dev:32430]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-02 06:20:23 +00:00
nobu
4afa82056c
* parse.y (newline_node): always remove NODE_BEGIN.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-30 18:34:34 +00:00
matz
efedaa432b
* hash.c (rb_hash_eql): recursive comparison should be based on
...
eql? [ruby-core:13803]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-30 05:26:59 +00:00
nobu
058ec52c0d
* parse.y (stmt): remove unnecessary NODE_BEGIN. [ruby-core:13814]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-29 07:59:12 +00:00
nobu
22c18f1e1b
* 2007-11-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-27 17:44:21 +00:00
ko1
329484693a
* insns.def, compile.c: fix to allow dsym for alias/undef.
...
[ruby-dev:32355]
* bootstraptest/test_method.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-27 01:02:30 +00:00
matz
f7bd951bea
* variable.c (rb_f_global_variables): variable names should not
...
duplicate. [ruby-dev:32344]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-26 01:17:17 +00:00
matz
050a10c607
* compile.c (defined_expr): defined(method(x)) dumped core. a
...
patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32335]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-23 01:46:44 +00:00
matz
c227d3feb3
* insnhelper.ci (vm_search_normal_superclass): rename function.
...
* insnhelper.ci (vm_search_superclass): ditto.
* proc.c (struct METHOD): rename rklass -> rclass.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-22 01:17:52 +00:00
matz
7da723cfbb
* object.c (nil_plus): remove unused function. [ruby-core:13737]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-20 16:16:53 +00:00
usa
cae4fb76dc
* include/ruby/win32.h win32/win32.c (rb_w32_pipe_exec): use dual fd
...
instead of socketpair when mode is RDWR.
* io.c (pipe_open): pass &write_fd to rb_w32_pipe_exec().
* io.c (popen_redirect): define only when HAVE_FORK.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-20 04:04:51 +00:00
nobu
9417595993
* parse.y (parser_read_escape): disallow control and meta modifiers
...
for non-ASCII characters. [ruby-core:13685]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-18 16:53:12 +00:00
nobu
16dc06014c
* lib/mkmf.rb (String#tr_cpp): make preprocessor identifiers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-18 00:09:50 +00:00
suke
24dcd39f19
ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-17 15:04:55 +00:00
nobu
fd0ab68415
* lib/yaml/rubytypes.rb (String#is_binary_data?): use Integer#fdiv.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16 02:16:43 +00:00
matz
4c56aaa162
* tool/compile_prelude.rb (c_esc): need to escape closing brace.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 03:15:37 +00:00
nobu
c4af7f51b7
* tool/ytab.sed: get rid of GNU sed feature. a patch from Laurent
...
Sansonetti <laurent.sansonetti AT gmail.com> in [ruby-core:13470].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 15:15:39 +00:00
shyouhei
8d464a9948
* numeric.c (flo_divmod): round to the nearest integer. [ ruby-Bugs-14540 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 18:41:31 +00:00
matz
8110d52333
* misc/ruby-mode.el (ruby-parse-partial): handle stringified
...
symbols properly using ruby-forward-string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 04:54:00 +00:00
nobu
16262b6972
* {bcc32,win32}/Makefile.sub: vendor_ruby support.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 04:18:44 +00:00
matz
9099eab331
* random.c: update MT URL.[ruby-core:13305].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-08 22:27:54 +00:00
usa
219d2315af
* parse.y (parser_read_escape): remove C99/gcc-ism.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-08 03:14:16 +00:00
matz
23176da722
* lib/rexml/encodings/SHIFT-JIS.rb (REXML::Encoding): place -x for
...
nkf conversion. a patch from <moonwolf AT moonwolf.com>.
[ruby-dev:32183]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-06 18:35:33 +00:00
nobu
bb1f1c5782
* eval_load.c (rb_feature_p): check if the feature is loading with
...
load path. [ruby-dev:31932]
* eval_load.c (load_lock): check the result of barrier waiting.
* thread.c (rb_barrier_wait): check if owned by the current thread.
* thread.c (rb_barrier_release): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-06 06:52:01 +00:00
usa
fc3b17968b
* win32/Makefile.sub: vendor_ruby support.
...
* configure.in (RUBY_LIB): duplicated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 15:26:21 +00:00
matz
19c4d26c51
* string.c (tr_setup_table): use C array for characters that fit
...
in a byte to gain performance.
* string.c (rb_str_delete_bang): ditto.
* string.c (rb_str_squeeze_bang): ditto.
* string.c (rb_str_count): ditto.
* string.c (tr_trans): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-03 19:04:53 +00:00
matz
6e8eea7abe
* hash.c (rb_hash_each_pair): make Hash#each to be alias to
...
Hash#each_pair for compatibility and clarity.
* hash.c (env_each_pair): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-03 14:07:48 +00:00
matz
7f018bde09
* error.c (Init_Exception): make NameError to be subclass of
...
StandardError again.
* error.c (Init_Exception): make SecurityError to be subclass of
Exception, since it's too important to be handled implicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-02 06:28:52 +00:00
usa
24ada5f55e
* win32/configure.bat, setup.mak: now can recognize OS even if
...
the ``--target'' option of configure is omitted.
* win32/README.win32: update the descriptions about compiler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-31 15:53:19 +00:00
matz
d2a1637d90
* enum.c (enum_take_while): separate with-block form.
...
* enum.c (drop_while_i): ditto.
* enum.c (enum_butfirst): abandon butfirst method. reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-30 23:43:26 +00:00
matz
a68451d610
* enum.c (enum_butfirst): add a new method to iterates over
...
elements but first n. RDoc need to be updated.
* enumerator.c (Init_Enumerator): remove unnecessary symbol
initialization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-30 01:06:10 +00:00
nobu
3dacfd3fe4
* encoding.c (rb_enc_compatible): ASCII encoding is compatible with
...
ASCII-compatible encoding, even for non-string objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-29 08:18:36 +00:00
matz
d9ff0a6c22
* array.c (rb_ary_assoc): check and convert inner arrays (assocs)
...
using #to_ary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 16:52:40 +00:00
nobu
bb053cd824
* io.c (rb_io_tell, rb_io_seek): check errno too. [ruby-dev:32093]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 05:19:33 +00:00
nobu
2070362f33
* parse.y (parser_tokspace): make space in token buffer.
...
* parse.y (parser_yylex): fix encoding of single character literal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 08:09:40 +00:00
matz
15112cf003
* enum.c (enum_cycle): hide temporary array from ObjectSpace.
...
[ruby-core:12762]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-22 15:29:17 +00:00
nobu
00befb4b3f
* encoding.c (rb_enc_compatible): check if two objects have compatible
...
encodings.
* encoding.c (enc_compatible_p): added Encoding.compatible?.
* include/ruby/encoding.h (rb_enc_compatible): prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-22 01:57:08 +00:00
nobu
b2c81746ac
* encoding.c (rb_enc_default, rb_enc_primary): return pointers to
...
rb_encoding of default and primary respectively. [ruby-core:12795]
* encoding.c (set_primary_encoding): removed primary_encoding setter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-21 09:29:19 +00:00
nobu
6c77d58356
* file.c (rb_get_path): returns frozen string.
...
* file.c (rb_file_s_chown, rb_file_s_lchown): use uid_t and gid_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-20 02:49:22 +00:00
nobu
c2aee4c878
* range.c (range_last): removed unused variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-19 01:55:44 +00:00
matz
fada885be6
* range.c (range_first): takes first n element if argument is
...
given. [ruby-core:12697]
* range.c (range_last): returns last n elements if argument is
given.
* array.c (rb_ary_subseq, rb_ary_last): export.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-18 06:58:35 +00:00
nobu
81ed881511
* re.c (rb_reg_initialize_m): allow binary encoding option.
...
[ruby-dev:32083]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-16 16:57:08 +00:00
matz
ff3859899d
* encoding.c (Init_Encoding): define #to_s to show encoding name
...
in to_s representation as well as #inspect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-15 16:28:18 +00:00
nobu
14264f5f62
* marshal.c (r_bytes0): check if source has enough data.
...
[ruby-dev:32054]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-15 00:58:09 +00:00
nobu
9c24fed339
* encoding.c (rb_cEncoding): new Encoding class.
...
* encoding.c (rb_to_encoding, rb_to_encoding_index): helper functions.
* encoding.c (rb_obj_encoding): return Encoding object now.
* gc.c (garbage_collect): mark Encoding objects.
* string.c (rb_str_force_encoding): accept Encoding object as well as
encoding name.
* include/ruby/encoding.h (rb_to_encoding_index, rb_to_encoding):
prototypes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-13 16:32:40 +00:00
matz
d962ef7454
* parse.y: encoding specifier should work if the line matches
...
/coding[:=] ?/, a la Python PEP-263, so that VIM comments like
"# vim: set fileencoding=<encoding name>" should be recognized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-12 15:04:46 +00:00
nobu
b1e97c9070
* trunk/parse.y (magic_comments): add "encoding" as same as "coding".
...
* trunk/parse.y (set_file_encoding): special file encoding handling.
* trunk/parse.y (parser_yylex): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-12 06:04:57 +00:00