nobu
082a2716cc
extconf.rb: mingw32
...
* ext/psych/extconf.rb: mingw32 also needs macros for win32, not
only mswin32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 12:22:47 +00:00
nobu
d8da0faf23
extconf.rb: VPATH
...
* ext/psych/extconf.rb: compile sources in the source directory
without copying by using VPATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 12:21:19 +00:00
nobu
a0f7f36a5a
mkmf.rb: each_compile_rules
...
* lib/mkmf.rb (MakeMakefile#each_compile_rules): splat $(*VPATH*) for
each VPATH elements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 12:19:49 +00:00
nobu
3baef1fc22
unit.rb: remove unnecessary includes
...
* lib/test/unit.rb (Test::Unit::{GlobOption,LoadPathOption}): remove
unnecessary includes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 12:17:30 +00:00
kosaki
9cbf473287
* vm_core.h (enum rb_thread_status): remove THREAD_TO_KILL
...
* vm_core.h (struct rb_thread_struct): add to_kill field
* thread.c (terminate_i): convert THREAD_TO_KILL to to_kill.
* thread.c (rb_threadptr_to_kill): ditto.
* thread.c (rb_thread_kill): ditto.
* thread.c (rb_thread_wakeup_alive): ditto.
* thread.c (thread_list_i): ditto.
* thread.c (static const char): ditto.
* thread.c (thread_status_name): ditto.
* thread.c (rb_thread_status): ditto.
* thread.c (rb_thread_inspect): ditto.
* vm_backtrace.c (thread_backtrace_to_ary): ditto.
* thread.c (rb_threadptr_execute_interrupts): fix thread status
overwritten issue. [Bug #7450 ] [ruby-core:50249]
* test/ruby/test_thread.rb (test_hread_status_raise_after_kill):
test for the above.
* test/ruby/test_thread.rb (test_thread_status_in_trap): test for
thread status in trap.
* test/ruby/test_thread.rb (test_status_and_stop_p): remove
Thread.control_interrupt unsafe test. Thread#kill no longer
changes thread status. Instead of, Thread#kill receiver changes
their own status when receiving kill signal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 08:31:03 +00:00
kosaki
b8a1e36201
* thread.c (struct rb_mutex_struct): add allow_trap field.
...
* internal.h (rb_mutex_allow_trap): added.
* thread.c (rb_mutex_lock, rb_mutex_unlock): check mutex->allow_trap.
* thread.c (mutex_sleep): remove trap check because it uses
rb_mutex_lock and rb_mutex_unlock internally.
* thread.c (rb_mutex_allow_trap): new helper function for the above.
* io.c (io_binwrite): mark fptr->write_lock as writable in trap.
* test/ruby/test_signal.rb (test_trap_puts): test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 08:30:51 +00:00
ko1
fc57f2bfdb
add ticket number [Bug #4559 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 08:01:43 +00:00
ko1
49ed2a756b
* proc.c: remove Proc#== and Proc#eql?.
...
Proc objects compared with thier object ids.
* test/ruby/test_proc.rb: remove related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 08:00:53 +00:00
drbrain
45011d08e1
* lib/rdoc/servlet.rb: Add support for serving documentation from a
...
subdirectory.
* lib/rdoc/generator/darkfish.rb: ditto
* test/rdoc/test_rdoc_servlet.rb: Test for above
* test/rdoc/test_rdoc_servlet.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 07:41:19 +00:00
naruse
013521e557
* configure.in: fix r37294: run only on i[3-6]86-linux.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 06:45:25 +00:00
kosaki
e6ef313a49
* io.c (FMODE_SYNCWRITE): removed unused macro.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 06:36:28 +00:00
ngoto
58b8573081
* configure.in: revert r37911, r37906 and r37904 which break build
...
with non-gcc and/or non-IA32 compilers, e.g. Solaris Studio,
Fujitsu C Compiler. [ruby-dev:46646] [Bug #7451 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 06:29:05 +00:00
ko1
1ff0a3d0c6
* ext/psych/extconf.rb: copy sources into build directory,
...
not into srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 05:52:11 +00:00
kosaki
835d24f637
* thread.c (rb_mutex_lock): moved trap context check from
...
rb_mutex_trylock because try_lock have no change to make
a deadlock.
* thread.c (rb_mutex_trylock): ditto.
* NEWS: news for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 05:40:54 +00:00
kosaki
8111b32d68
* thread.c (thread_s_new): uses main_thread->status instead of
...
th->inhibit_thread_creation for preventing thread creation.
* vm_core.h (rb_vm_struct): remove inhibit_thread_creation field.
* thread.c (rb_thread_terminate_all): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 04:43:15 +00:00
nobu
d5c463b576
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 04:35:40 +00:00
tenderlove
14099149f4
* ext/psych/extconf.rb: use embedded libyaml if no system libyaml is
...
found. [ruby-core:49463]
* ext/psych/lib/psych.rb: updating to psych 2.0.0
* ext/psych/lib/psych/deprecated.rb: updated docs
* ext/psych/psych.gemspec: updated to psych 2.0.0
* ext/psych/psych.h: fixing header file include for rename
* ext/psych/psych_emitter.c: renamed to avoid libyaml conflict.
* ext/psych/psych_emitter.h: ditto
* ext/psych/psych_parser.c: ditto
* ext/psych/psych_parser.h: ditto
* ext/psych/psych_to_ruby.c: ditto
* ext/psych/psych_to_ruby.h: ditto
* ext/psych/psych_yaml_tree.c: ditto
* ext/psych/psych_yaml_tree.h: ditto
* ext/psych/yaml/LICENSE: embedding libyaml 0.1.4
* ext/psych/yaml/api.c: ditto
* ext/psych/yaml/config.h: ditto
* ext/psych/yaml/dumper.c: ditto
* ext/psych/yaml/emitter.c: ditto
* ext/psych/yaml/loader.c: ditto
* ext/psych/yaml/parser.c: ditto
* ext/psych/yaml/reader.c: ditto
* ext/psych/yaml/scanner.c: ditto
* ext/psych/yaml/writer.c: ditto
* ext/psych/yaml/yaml.h: ditto
* ext/psych/yaml/yaml_private.h: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 04:34:41 +00:00
kosaki
694c77633c
* thread.c (thread_join): A trap handler check was moved from
...
thread_join_m because Thread#value should be raised an exception
too.
* thread.c (thread_join_m): remove trap handler check.
* test/ruby/test_thread.rb (test_thread_join_in_trap): add test
for thread#value.
* NEWS: documentation fix for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 04:09:38 +00:00
zzak
4ed6a88b74
* ext/fiddle/closure.c: Documentation for Fiddle
...
* ext/fiddle/lib/fiddle/import.rb: ditto
* ext/fiddle/lib/fiddle/value.rb: ditto
* ext/fiddle/lib/fiddle/pack.rb: ditto
* ext/fiddle/lib/fiddle/cparser.rb: ditto
* ext/fiddle/lib/fiddle/struct.rb: ditto
* ext/fiddle/lib/fiddle/function.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 02:08:39 +00:00
ryan
0700a9113f
Added #charpos for multibyte string position.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 00:17:33 +00:00
nobu
db9fe59b73
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 00:03:05 +00:00
tenderlove
0713f89944
* ext/fiddle/fiddle.c: adding alignment constants for compatibility
...
with DL.
* ext/fiddle/fiddle.h: ditto
* ext/fiddle/lib/fiddle/cparser.rb: importing the C parser for DL
backwards compatibility.
* ext/fiddle/lib/fiddle/import.rb: importing the import DSL for DL
backwards compatibility.
* ext/fiddle/lib/fiddle/pack.rb: importing structure pack for DL
backwards compatibility.
* ext/fiddle/lib/fiddle/value.rb: ditto
* ext/fiddle/lib/fiddle/struct.rb: importing struct DSL for DL backwards
compatibility.
* test/dl/test_c_struct_entry.rb: importing tests
* test/dl/test_c_union_entity.rb: ditto
* test/dl/test_cparser.rb: ditto
* test/dl/test_import.rb: ditto
* test/fiddle/test_c_struct_entry.rb: ditto
* test/fiddle/test_c_union_entity.rb: ditto
* test/fiddle/test_cparser.rb: ditto
* test/fiddle/test_import.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 00:02:49 +00:00
zzak
118d9f43c8
* doc/globals.rdoc: Add documentation file for magic globals
...
[ruby-core:29048] [Bug #3022 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 23:57:20 +00:00
zzak
d07c73be40
* .document: Add README's to be included with docs
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 23:55:31 +00:00
naruse
13dc0e14fe
Refix of r37904
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 23:30:33 +00:00
zzak
4ba88161ee
* ext/dl/lib/dl.rb: Deprecation notice for DL
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 23:27:36 +00:00
zzak
9c831edbf4
* ext/fiddle/closure.c: Documentation for Fiddle
...
* ext/fiddle/pointer.c: ditto
* ext/fiddle/function.c: ditto
* ext/fiddle/lib/fiddle.rb: ditto
* ext/fiddle/fiddle.c: ditto
* ext/fiddle/handle.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 23:26:07 +00:00
nobu
7e4b6fa7d6
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 19:57:10 +00:00
tenderlove
c1fb6a82dc
* ext/fiddle/handle.c: Make Fiddle independent of DL, copy DL::Handle
...
to Fiddle::Handle.
* ext/fiddle/pointer.c: Make Fiddle independent of DL, copy
DL::Pointer to Fiddle::Pointer.
* test/fiddle/test_func.rb: relevent tests
* test/fiddle/test_handle.rb: ditto
* test/fiddle/test_pointer.rb: ditto
* ext/dl/lib/dl/struct.rb: use Fiddle::Pointer if available
* ext/fiddle/extconf.rb: check for dlfcn.h
* ext/fiddle/fiddle.c: add constants for sizeof() things
* ext/fiddle/fiddle.h: include dlfcn.h
* ext/fiddle/function.c: expose a C function for creating new
Fiddle::Function objects.
* ext/fiddle/lib/fiddle.rb: include constants for dl backwards compat
* ext/fiddle/lib/fiddle/function.rb: read the pointer from the
function for dl backwards compat.
* test/dl/test_callback.rb: check the addresses of the pointers rather
than their types.
* test/fiddle/helper.rb: remove dependency on dl
* test/fiddle/test_closure.rb: ditto
* test/fiddle/test_fiddle.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 19:54:50 +00:00
naruse
c8d3536852
fix r37904: it forced i486 though -marh was usually i686
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 18:12:53 +00:00
naruse
bb2e9e9e98
* configure.in (opt-dir): don't use non portable flag -E of sed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 18:04:55 +00:00
naruse
c41e749c4d
* configure.in (ARCH_FLAG): __sync_val_compare_and_swap_4 needs
...
-march=i486 on at least linux gcc 4.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 18:02:31 +00:00
svn
e6be878413
* 2012-11-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 16:20:26 +00:00
nagachika
bd43e67e25
* ChangeLog: fix typos for r37867, r37874, r37877 and r37884.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 16:20:21 +00:00
knu
06d6edcacc
* string.c (rb_str_enumerate_chars, rb_str_enumerate_codepoints)
...
(rb_str_enumerate_lines): Dummy initialization of ary has been
replaced with UNINITIALIZED_VAR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 13:34:40 +00:00
eregon
8c4992f1f5
* NEWS: typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 12:53:32 +00:00
mrkn
1dce5edf99
* bignum.c (bigdivrem): optimize the way to retry calculation of
...
bigdivrem so that the calculation is started from the point where
the last interruption was occurred.
* bignum.c (bigdivrem1): ditto.
* test/ruby/test_bignum.rb: add a test case for rb_bigdivrem in the
case that an interruption is occurred during bigdivrem1 is running.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 12:46:32 +00:00
ko1
956cc2934d
* vm.c (rb_vm_make_env_object): make Proc object if Env is possible
...
to point block.
[ruby-core:41038] [ruby-trunk - Bug #5634 ]
* vm.c (rb_vm_make_proc): No need to make Proc object here.
* bootstraptest/test_proc.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 11:58:10 +00:00
ngoto
5faf4cc77b
* ruby_atomic.h (ATOMIC_CAS): added for Solaris and other platforms.
...
* ruby_atomic.h, signal.c (NEED_RUBY_ATOMIC_OPS): renamed from
NEED_RUBY_ATOMIC_EXCHANGE.
* signal.c (ruby_atomic_compare_and_swap): naive, non-atomic
compare-and-swap implementation only used for platforms without
valid support for atomic operations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 10:21:59 +00:00
drbrain
6d1266a879
* lib/rdoc/*: Added --root option for building documentation outside
...
the source directory.
* test/rdoc/*: ditto
* common.mk (rdoc): Added --root to rdoc rule
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 08:54:03 +00:00
drbrain
7de9e2dfde
* test/rdoc/test_rdoc_ri_paths.rb: Fixed duplicate path bug which
...
caused windows failures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 07:29:00 +00:00
drbrain
ef8e0908af
* test/rdoc/test_rdoc_generator_darkfish.rb: Updated tests for windows
...
* test/rdoc/test_rdoc_options.rb: ditto
* test/rdoc/test_rdoc_parser.rb: ditto
* test/rdoc/test_rdoc_rdoc.rb: ditto
* test/rdoc/test_rdoc_ri_driver.rb: ditto
* test/rdoc/test_rdoc_servlet.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 07:09:21 +00:00
drbrain
585de40a69
* common.mk (rdoc): Set --debug for rdoc generation in case of bugs
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 06:19:06 +00:00
drbrain
cb581e2059
* lib/rdoc/rubygems_hook.rb: Updated for (upcoming) RubyGems 2
...
import.
* test/rdoc/test_rdoc_rubygems_hook.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 06:01:41 +00:00
tenderlove
1eac1cb21e
reverting r37881
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 05:59:34 +00:00
nari
1d8d7a3eec
* NEWS: add improvements of the garbage collector.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 05:00:57 +00:00
drbrain
1c279a7d27
* lib/rdoc*: Updated to RDoc 4.0 (pre-release)
...
* bin/rdoc: ditto
* test/rdoc: ditto
* NEWS: Updated with RDoc 4.0 information
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 04:28:14 +00:00
ko1
c72f0daa87
* thread.c (rb_thread_terminate_all): retry broadcast only when
...
an exception is raised.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 03:18:29 +00:00
ko1
2f9ee7af47
* thread.c (rb_thread_terminate_all): broadcast terminate event
...
not only an interrupt exception but any exceptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 03:04:36 +00:00
kosaki
9ace5c122e
* eval.c (ruby_cleanup): set thread status to THREAD_KILLED
...
for preventing thr.raise.
* test/ruby/test_thread.rb (test_main_thread_status_at_exit):
test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-27 02:00:40 +00:00