nobu
c710140216
* parse.y (union tmpyystype): no longer needed, since YYSTYPE is
...
defined in parse.h now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 08:46:23 +00:00
matz
f677aae7bc
* version.c (Init_version): add RUBY_ENGINE constant.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 08:28:44 +00:00
matz
0cafe9e4cd
* hash.c (set_default): fix rdoc. #441
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 08:19:56 +00:00
akr
a99e6c15b8
* transcode.c (rb_econv_conv): new function. it don't consume input
...
too much, even for multilevel conversion.
(transcode_loop): use rb_econv_conv.
(econv_primitive_convert): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 06:35:33 +00:00
nobu
012c5ca966
* include/ruby/defines.h (RUBY_ALIAS_FUNCTION): fallback definition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 06:27:50 +00:00
akr
bcae240f19
* transcode_data.h (rb_trans_result_t): new enumeration constant:
...
transcode_output_followed_by_input.
* transcode.c (OUTPUT_FOLLOWED_BY_INPUT): new flag.
(transcode_restartable0): suspend when output followed by input if
OUTPUT_FOLLOWED_BY_INPUT is specified.
(trans_sweep): check OUTPUT_FOLLOWED_BY_INPUT.
(rb_trans_conv): support OUTPUT_FOLLOWED_BY_INPUT.
(econv_primitive_convert): return :output_followed_by_input for
transcode_output_followed_by_input.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 06:12:27 +00:00
nobu
2c20dd1473
* gc.c (getrusage_time): should return the value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 05:57:58 +00:00
nobu
914969a040
* thread.c (rb_thread_priority_set): get rid of C99 feature.
...
* transcode.c (transcode_search_path): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 05:56:51 +00:00
nobu
0c18a4b0f0
* vm.c (REWIND_CFP): get rid of statement expressions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 05:55:04 +00:00
nobu
86cd6d2e98
* vm.c (Init_VM): hide FrozenCore.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 05:14:01 +00:00
nobu
473dbc4e3f
* transcode.c (load_transcoder): suppress warning.
...
* missing/vsnprintf.c (BSD_vfprintf): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 03:20:38 +00:00
nobu
a91845f5b3
* configure.in (gnumake): check for GNU make.
...
* Makefile.in (uncommon.mk): includes filtered common.mk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 03:01:42 +00:00
nobu
0d8df88893
* common.mk (parse.h): workaround for nmake.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 02:45:11 +00:00
akr
81be10bd85
test updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 00:40:25 +00:00
akr
ae8522ff7e
rdoc updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 23:45:31 +00:00
ko1
abfd87c230
* thread.c (rb_thread_execute_interrupts): switch event
...
should be occur only once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 21:26:49 +00:00
naruse
7085729de3
* common.mk: parse.h depends on parse.c.
...
* common.mk: hash.o depends on $(ID_H_INCLUDES).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 20:38:48 +00:00
kazu
6bdb909e5f
add ML ref.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 17:47:42 +00:00
kazu
efdcaba210
* test/ruby/test_file_exhaustive.rb (TestFileExhaustive#setup): set group of tmpdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 17:46:47 +00:00
kazu
fd6ad3b734
cleanup spaces and tabs
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 17:45:08 +00:00
akr
fde26b7d7a
* transcode.c (econv_primitive_convert): add output_byteoffset
...
argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 17:24:42 +00:00
nobu
e6eb8f0399
* transcode.c (rb_trans_open): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 15:49:30 +00:00
nobu
3622cd196c
* configure.in (rb_cv_gcc_function_alias): checks alias attribute.
...
* string.c (alias_func): replaced with RUBY_ALIAS_FUNCTION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 15:43:55 +00:00
nobu
ca3c54c0ee
svn:eol-sytle
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 15:04:28 +00:00
nobu
6733142c71
* common.mk (parse.h): fake rule.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 14:42:55 +00:00
shugo
31ad92b2f3
* test/ruby/test_thread.rb (test_list): call Thread.pass to run t1.
...
fixed [ruby-core:18264].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 14:22:48 +00:00
kouji
cdc2278f89
* string.c (alias_func): changed to 'weak, alias' from 'alias' for
...
Mac OSX. (closes #429 )
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 14:09:48 +00:00
ko1
96af71a288
* gc.c: count only freed object as freelist size.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 10:42:57 +00:00
shugo
38c94fa149
* marshal.c (marshal_load): set arg.untrust properly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 09:42:22 +00:00
knu
0f9594eeb9
ignore newline.c
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 09:22:41 +00:00
akr
9adfb3066d
* transcode.c (econv_inspect): new method.
...
+
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 08:47:57 +00:00
matz
8d4086d773
* hash.c (rb_hash_set_default_proc): add new method. a patch from
...
Giuseppe Bilotta. #419
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 08:44:17 +00:00
akr
3e7d8bf9f8
* transcode.c (transcode_restartable0): several local variables
...
removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 08:36:47 +00:00
matz
e0889dbf38
* vm_insnhelper.c (caller_setup_args): should ensure if the value
...
from to_proc is a real Proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 08:32:53 +00:00
knu
5068e137d0
* common.mk: regint.h no longer includes vm_core.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 08:30:21 +00:00
akr
04f7390ca8
* transcode_data.h (rb_transcoding): add fields: writebuf_off,
...
writebuf_len and writebuf.
(TRANSCODING_WRITEBUF): new macro.
* transcode.c (transcode_restartable0): output until output buffer is
really full.
(rb_transcoding_open_by_transcoder): initialize writebuf_len,
writebuf_off and writebuf.
(rb_transcoding_close): finalize writebuf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 08:28:39 +00:00
ko1
8f1e7a37e5
* thread.c (rb_thread_check_ints): added. please note that
...
this function may cause ruby's thread switching.
* include/ruby/intern.h: ditto.
* regint.h: use rb_thread_check_ints() instead of
RUBY_CHECK_INTS() directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 08:21:24 +00:00
knu
d4b7cc796c
* golf_prelude.rb, lib/set.rb (TC_Set#test_each),
...
test/readline/test_readline_history.rb (Readline#test_each__enumerator),
test/ruby/test_array.rb (TestArray#test_collect),
test/ruby/test_enumerator.rb (TestEnumerator#test_initialize):
Enumerable::Enumerator is now called Enumerator.
* lib/rinda/tuplespace.rb (Rinda::TupleBag#initialize): Use
enum_for instead of hardcoding Enumerable::Enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 08:03:30 +00:00
ko1
16612b360b
* thread.c, vm_core.h: add manual priority support
...
using time slice. if you enable USE_NATIVE_THREAD_PRIORITY
macro, this mechanism is ignored. [ruby-dev:33124]
* thread_pthread.c, thread_win32.c: ditto.
* test/ruby/test_thread.rb: fix test parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 07:53:35 +00:00
akr
81719aff65
add rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 07:32:34 +00:00
shugo
f433d710d0
* object.c (rb_obj_untrusted): new method Object#untrusted?.
...
(rb_obj_untrust): new method Object#untrust.
(rb_obj_trust): new method Object#trust.
* array.c, debug.c, time.c, include/ruby/ruby.h, re.c, variable.c,
string.c, io.c, dir.c, vm_method.c, struct.c, class.c, hash.c,
ruby.c, marshal.c: fixes for Object#untrusted?.
* test/ruby/test_module.rb, test/ruby/test_array.rb,
test/ruby/test_object.rb, test/ruby/test_string.rb,
test/ruby/test_marshal.rb, test/ruby/test_hash.rb: added tests for
Object#untrusted?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 07:25:05 +00:00
naruse
55c141c624
* test/ruby/test_m17n.rb: follow EncodingCompatibilityError.
...
* test/ruby/test_mixed_unicode_escapes.rb: ditto.
* test/ruby/enc/test_utf16.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 07:14:56 +00:00
matz
090004886d
* time.c (time_cmp): retry with right hand operand if its not a
...
time object. [ruby-dev:35011]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 07:13:27 +00:00
knu
0d242ac61a
* string.c: Apply a temporary fix to fix build on OS X. A real
...
fix will follow later.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 06:53:24 +00:00
knu
7b8e762afa
* enumerator.c (Init_Enumerator): Rename Enumerable::Enumerator to
...
just Enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 06:25:53 +00:00
knu
5f5b25d234
* common.mk (prelude.c, golf_prelude.c): Using $(COMPILE_PRELUDE)
...
requires $(RBCONFIG).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 06:15:52 +00:00
akr
4aa251999d
* transcode.c (econv_init): make flags argument optional.
...
(econv_primitive_convert): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 06:08:56 +00:00
knu
eb8e0dc10e
Add parse.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 05:59:26 +00:00
knu
8cb7595f7e
* common.mk (realclean-local): Remove parse.h as well.
...
* common.mk: Add missing dependencies regarding vm_core.h, id.h,
parse.c (parse.h), etc..
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 05:56:33 +00:00
akr
3785eb7772
fix constant name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 05:54:30 +00:00