зеркало из https://github.com/github/ruby.git
* class.c, error.c, file.c, io.c, numeric.c, object.c, re.c, struct.c,
time.c: marked init_copy functions nodoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
736668f2b0
Коммит
a7b1a2eced
|
@ -1,3 +1,8 @@
|
|||
Sun Jan 18 23:16:34 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* class.c, error.c, file.c, io.c, numeric.c, object.c, re.c, struct.c,
|
||||
time.c: marked init_copy functions nodoc.
|
||||
|
||||
Sun Jan 18 20:47:35 2004 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* ruby.c: use translate_char() on Cygwin.
|
||||
|
|
2
class.c
2
class.c
|
@ -58,6 +58,7 @@ clone_method(mid, body, tbl)
|
|||
return ST_CONTINUE;
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
VALUE
|
||||
rb_mod_init_copy(clone, orig)
|
||||
VALUE clone, orig;
|
||||
|
@ -85,6 +86,7 @@ rb_mod_init_copy(clone, orig)
|
|||
return clone;
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
VALUE
|
||||
rb_class_init_copy(clone, orig)
|
||||
VALUE clone, orig;
|
||||
|
|
4
error.c
4
error.c
|
@ -672,6 +672,7 @@ nometh_err_initialize(argc, argv, self)
|
|||
return self;
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
static void
|
||||
name_err_mesg_mark(ptr)
|
||||
VALUE *ptr;
|
||||
|
@ -679,6 +680,7 @@ name_err_mesg_mark(ptr)
|
|||
rb_gc_mark_locations(ptr, ptr+3);
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
static VALUE
|
||||
name_err_mesg_init(obj, mesg, recv, method)
|
||||
VALUE obj, mesg, recv, method;
|
||||
|
@ -691,6 +693,7 @@ name_err_mesg_init(obj, mesg, recv, method)
|
|||
return Data_Wrap_Struct(rb_cNameErrorMesg, name_err_mesg_mark, -1, ptr);
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
static VALUE
|
||||
name_err_mesg_to_str(obj)
|
||||
VALUE obj;
|
||||
|
@ -737,6 +740,7 @@ name_err_mesg_to_str(obj)
|
|||
return mesg;
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
static VALUE
|
||||
name_err_mesg_load(klass, str)
|
||||
VALUE klass, str;
|
||||
|
|
1
file.c
1
file.c
|
@ -3282,6 +3282,7 @@ rb_stat_init(obj, fname)
|
|||
return Qnil;
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
static VALUE
|
||||
rb_stat_init_copy(copy, orig)
|
||||
VALUE copy, orig;
|
||||
|
|
1
io.c
1
io.c
|
@ -3183,6 +3183,7 @@ rb_io_reopen(argc, argv, file)
|
|||
return file;
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
static VALUE
|
||||
rb_io_init_copy(dest, io)
|
||||
VALUE dest, io;
|
||||
|
|
|
@ -197,6 +197,7 @@ num_sadded(x, name)
|
|||
return Qnil; /* not reached */
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
static VALUE
|
||||
num_init_copy(x, y)
|
||||
VALUE x, y;
|
||||
|
|
5
object.c
5
object.c
|
@ -295,6 +295,7 @@ rb_obj_dup(obj)
|
|||
return dup;
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
VALUE
|
||||
rb_obj_init_copy(obj, orig)
|
||||
VALUE obj, orig;
|
||||
|
@ -2560,7 +2561,7 @@ Init_Object()
|
|||
rb_define_method(rb_cModule, "<=", rb_mod_le, 1);
|
||||
rb_define_method(rb_cModule, ">", rb_mod_gt, 1);
|
||||
rb_define_method(rb_cModule, ">=", rb_mod_ge, 1);
|
||||
rb_define_method(rb_cModule, "initialize_copy", rb_mod_init_copy, 1);
|
||||
rb_define_method(rb_cModule, "initialize_copy", rb_mod_init_copy, 1); /* in class.c */
|
||||
rb_define_method(rb_cModule, "to_s", rb_mod_to_s, 0);
|
||||
rb_define_method(rb_cModule, "included_modules", rb_mod_included_modules, 0); /* in class.c */
|
||||
rb_define_method(rb_cModule, "include?", rb_mod_include_p, 1); /* in class.c */
|
||||
|
@ -2598,7 +2599,7 @@ Init_Object()
|
|||
rb_define_method(rb_cClass, "allocate", rb_obj_alloc, 0);
|
||||
rb_define_method(rb_cClass, "new", rb_class_new_instance, -1);
|
||||
rb_define_method(rb_cClass, "initialize", rb_class_initialize, -1);
|
||||
rb_define_method(rb_cClass, "initialize_copy", rb_class_init_copy, 1);
|
||||
rb_define_method(rb_cClass, "initialize_copy", rb_class_init_copy, 1); /* in class.c */
|
||||
rb_define_method(rb_cClass, "superclass", rb_class_superclass, 0);
|
||||
rb_define_alloc_func(rb_cClass, rb_class_s_alloc);
|
||||
rb_undef_method(rb_cClass, "extend_object");
|
||||
|
|
2
re.c
2
re.c
|
@ -678,6 +678,7 @@ match_alloc(klass)
|
|||
return (VALUE)match;
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
static VALUE
|
||||
match_init_copy(obj, orig)
|
||||
VALUE obj, orig;
|
||||
|
@ -1972,6 +1973,7 @@ rb_reg_s_union(argc, argv)
|
|||
}
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
static VALUE
|
||||
rb_reg_init_copy(copy, re)
|
||||
VALUE copy, re;
|
||||
|
|
1
struct.c
1
struct.c
|
@ -514,6 +514,7 @@ rb_struct_to_a(s)
|
|||
return rb_ary_new4(RSTRUCT(s)->len, RSTRUCT(s)->ptr);
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
static VALUE
|
||||
rb_struct_init_copy(copy, s)
|
||||
VALUE copy, s;
|
||||
|
|
1
time.c
1
time.c
|
@ -944,6 +944,7 @@ time_hash(time)
|
|||
return LONG2FIX(hash);
|
||||
}
|
||||
|
||||
/* :nodoc: */
|
||||
static VALUE
|
||||
time_init_copy(copy, time)
|
||||
VALUE copy, time;
|
||||
|
|
Загрузка…
Ссылка в новой задаче