[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:
Nobuyoshi Nakada 2023-12-06 19:56:38 +09:00
parent d411d8f5fe
commit ca8733daaf
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

22
file.c
View File

@ -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)
{