зеркало из https://github.com/github/ruby.git
[DOC] Fixed document position
Method documentation must be placed immediately before each implementation, without any other functions or preprocessor directives.
This commit is contained in:
Родитель
d411d8f5fe
Коммит
ca8733daaf
22
file.c
22
file.c
|
@ -2453,6 +2453,7 @@ rb_file_ctime(VALUE obj)
|
|||
return stat_ctime(&st);
|
||||
}
|
||||
|
||||
#if defined(HAVE_STAT_BIRTHTIME)
|
||||
/*
|
||||
* call-seq:
|
||||
* File.birthtime(file_name) -> time
|
||||
|
@ -2467,7 +2468,6 @@ rb_file_ctime(VALUE obj)
|
|||
*
|
||||
*/
|
||||
|
||||
#if defined(HAVE_STAT_BIRTHTIME)
|
||||
RUBY_FUNC_EXPORTED VALUE
|
||||
rb_file_s_birthtime(VALUE klass, VALUE fname)
|
||||
{
|
||||
|
@ -2513,16 +2513,6 @@ rb_file_birthtime(VALUE obj)
|
|||
# define rb_file_birthtime rb_f_notimplement
|
||||
#endif
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* file.size -> integer
|
||||
*
|
||||
* Returns the size of <i>file</i> in bytes.
|
||||
*
|
||||
* File.new("testfile").size #=> 66
|
||||
*
|
||||
*/
|
||||
|
||||
rb_off_t
|
||||
rb_file_size(VALUE file)
|
||||
{
|
||||
|
@ -2546,6 +2536,16 @@ rb_file_size(VALUE file)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* file.size -> integer
|
||||
*
|
||||
* Returns the size of <i>file</i> in bytes.
|
||||
*
|
||||
* File.new("testfile").size #=> 66
|
||||
*
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
file_size(VALUE self)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче