gmake.mk: no test-knownbug if unnecessary

* defs/gmake.mk (test-all): no needs to depend on test-knownbug
  always.  it is included in TEST_TARGETS if it is given.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mkmf.rb: force refererence in MAIN_DOES_NOTHING

* lib/mkmf.rb (MAIN_DOES_NOTHING): force to refer symbols for tests
  to be preserved.  [ruby-core:53745] [Bug #8169]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* internal.h (TIMET_MAX_PLUS_ONE): definition simplified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/-ext-/num2int/test_num2int.rb (test_num2ll): test LLONG_MIN,
  not LONG_MIN.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
gmake.mk: order test-all and test-knownbug

* defs/gmake.mk (test-all, test-ruby): depends on test-knownbug if
  check is given or with test-knownbug.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
thread_pthread.c: poll.h is already included

* thread_pthread.c (poll.h): already included in ruby/io.h from
  thread.c.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Makefile.sub: SIGNEDNESS_OF_TIME_T

* win32/Makefile.sub (config.h): add SIGNEDNESS_OF_TIME_T for
  TIMET_MAX and TIMET_MIN.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time.c (num_exact): use to_r method only if to_int method is
  available.
  [ruby-core:53764] [Bug #8173] reported by Hiro Asari.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/-ext-/num2int/test_num2int.rb (asert_num2i_success): New
  utility method.
  (asert_num2i_error): Ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* numeric.c (LONG_MIN_MINUS_ONE_IS_LESS_THAN): New macro.
  (LLONG_MIN_MINUS_ONE_IS_LESS_THAN): Ditto.
  (rb_num2long): Use LONG_MIN_MINUS_ONE_IS_LESS_THAN.
  (rb_num2ulong): Ditto.
  (rb_num2ll): Use LLONG_MIN_MINUS_ONE_IS_LESS_THAN.
  (rb_num2ull): Ditto.

* test/-ext-/num2int/test_num2int.rb (asert_num2i_success): Test the
  value converted into a Float if Float can represent the value
  exactly.
  (asert_num2i_error): Ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
fix typos

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2013-03-28

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* include/ruby/defines.h: Fix a compilation error on NetBSD,
  "type of formal parameter 1 is incomplete" for the rb_thread_wait_for
  invocation in rb_file_flock, by including header files as
  AC_INCLUDES_DEFAULT of autoconf.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* include/ruby/intern.h: Delete redundant inclusions caused by
  AC_INCLUDES_DEFAULT in defines.h.

* include/ruby/defines.h: Ditto.

* include/ruby/ruby.h: Ditto.

* include/ruby/st.h: Ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ext/tk/tcltklib.c: adjust nesting

* ext/tk/extconf.rb: check for rb_thread_alive_p and
  rb_thread_check_trap_pending.

* ext/tk/tcltklib.c (rb_thread_alive_p, rb_thread_check_trap_pending):
  define substitutions if not available.

* ext/tk/tcltklib.c (lib_eventloop_core, lib_eventloop_ensure),
  (lib_thread_callback, ip_rbUpdateCommand, ip_rbVwaitCommand),
  (ip_rbTkWaitCommand, call_queue_handler, eval_queue_handler),
  (invoke_queue_handler): adjust nesting.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tcltklib.c: suppress warnings

* ext/tk/tcltklib.c (lib_eventloop_core, lib_thread_callback),
  (ip_rbUpdateCommand, ip_rb_threadUpdateCommand, lib_toUTF8_core),
  (ip_invoke_core): remove unused variables.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* properties.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/-ext-/num2int/test_num2int.rb: extract
  assert_num2i_success_internal and assert_num2i_error_internal and
  provide assertion messages as "NUM2XXX(NNN)".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
fix a typo

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tcltklib.c: rb_thread_alive_p macro

* ext/tk/tcltklib.c (rb_thread_alive_p): turn into a macro, so that
  same code is generated.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e