mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
enable several rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a3bfedac36
commit
e01c045a8b
5 changed files with 20 additions and 24 deletions
3
eval.c
3
eval.c
|
@ -521,8 +521,7 @@ obj_respond_to(int argc, VALUE *argv, VALUE obj)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_mod_method_defined(mod, mid)
|
rb_mod_method_defined(VALUE mod, VALUE mid)
|
||||||
VALUE mod, mid;
|
|
||||||
{
|
{
|
||||||
return rb_method_boundp(mod, rb_to_id(mid), 1);
|
return rb_method_boundp(mod, rb_to_id(mid), 1);
|
||||||
}
|
}
|
||||||
|
|
5
load.c
5
load.c
|
@ -310,11 +310,8 @@ rb_load_protect(VALUE fname, int wrap, int *state)
|
||||||
* file be propagated to the loading environment.
|
* file be propagated to the loading environment.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_f_load(argc, argv)
|
rb_f_load(int argc, VALUE *argv)
|
||||||
int argc;
|
|
||||||
VALUE *argv;
|
|
||||||
{
|
{
|
||||||
VALUE fname, wrap;
|
VALUE fname, wrap;
|
||||||
|
|
||||||
|
|
|
@ -2081,6 +2081,10 @@ fix_minus(VALUE x, VALUE y)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define SQRT_LONG_MAX ((SIGNED_VALUE)1<<((SIZEOF_LONG*CHAR_BIT-1)/2))
|
||||||
|
/*tests if N*N would overflow*/
|
||||||
|
#define FIT_SQRT_LONG(n) (((n)<SQRT_LONG_MAX)&&((n)>=-SQRT_LONG_MAX))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* fix * numeric => numeric_result
|
* fix * numeric => numeric_result
|
||||||
|
@ -2090,10 +2094,6 @@ fix_minus(VALUE x, VALUE y)
|
||||||
* result.
|
* result.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SQRT_LONG_MAX ((SIGNED_VALUE)1<<((SIZEOF_LONG*CHAR_BIT-1)/2))
|
|
||||||
/*tests if N*N would overflow*/
|
|
||||||
#define FIT_SQRT_LONG(n) (((n)<SQRT_LONG_MAX)&&((n)>=-SQRT_LONG_MAX))
|
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
fix_mul(VALUE x, VALUE y)
|
fix_mul(VALUE x, VALUE y)
|
||||||
{
|
{
|
||||||
|
|
4
object.c
4
object.c
|
@ -1312,11 +1312,11 @@ rb_class_s_alloc(VALUE klass)
|
||||||
* a.meth2 #=> "bye"
|
* a.meth2 #=> "bye"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern VALUE rb_mod_module_exec(int argc, VALUE *argv, VALUE mod);
|
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_mod_initialize(VALUE module)
|
rb_mod_initialize(VALUE module)
|
||||||
{
|
{
|
||||||
|
extern VALUE rb_mod_module_exec(int argc, VALUE *argv, VALUE mod);
|
||||||
|
|
||||||
if (rb_block_given_p()) {
|
if (rb_block_given_p()) {
|
||||||
rb_mod_module_exec(1, &module, module);
|
rb_mod_module_exec(1, &module, module);
|
||||||
}
|
}
|
||||||
|
|
24
thread.c
24
thread.c
|
@ -393,16 +393,6 @@ thread_create_core(VALUE thval, VALUE args, VALUE (*fn)(ANYARGS))
|
||||||
return thval;
|
return thval;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* call-seq:
|
|
||||||
* Thread.start([args]*) {|args| block } => thread
|
|
||||||
* Thread.fork([args]*) {|args| block } => thread
|
|
||||||
*
|
|
||||||
* Basically the same as <code>Thread::new</code>. However, if class
|
|
||||||
* <code>Thread</code> is subclassed, then calling <code>start</code> in that
|
|
||||||
* subclass will not invoke the subclass's <code>initialize</code> method.
|
|
||||||
*/
|
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
thread_s_new(int argc, VALUE *argv, VALUE klass)
|
thread_s_new(int argc, VALUE *argv, VALUE klass)
|
||||||
{
|
{
|
||||||
|
@ -417,6 +407,16 @@ thread_s_new(int argc, VALUE *argv, VALUE klass)
|
||||||
return thread;
|
return thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* call-seq:
|
||||||
|
* Thread.start([args]*) {|args| block } => thread
|
||||||
|
* Thread.fork([args]*) {|args| block } => thread
|
||||||
|
*
|
||||||
|
* Basically the same as <code>Thread::new</code>. However, if class
|
||||||
|
* <code>Thread</code> is subclassed, then calling <code>start</code> in that
|
||||||
|
* subclass will not invoke the subclass's <code>initialize</code> method.
|
||||||
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
thread_start(VALUE klass, VALUE args)
|
thread_start(VALUE klass, VALUE args)
|
||||||
{
|
{
|
||||||
|
@ -2799,6 +2799,8 @@ rb_clear_trace_func(void)
|
||||||
rb_remove_event_hook(0);
|
rb_remove_event_hook(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void call_trace_func(rb_event_flag_t, VALUE data, VALUE self, ID id, VALUE klass);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* set_trace_func(proc) => proc
|
* set_trace_func(proc) => proc
|
||||||
|
@ -2842,8 +2844,6 @@ rb_clear_trace_func(void)
|
||||||
* return prog.rb:4 test Test
|
* return prog.rb:4 test Test
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void call_trace_func(rb_event_flag_t, VALUE data, VALUE self, ID id, VALUE klass);
|
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
set_trace_func(VALUE obj, VALUE trace)
|
set_trace_func(VALUE obj, VALUE trace)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue