Skip to content

Commit

Permalink
[DOC] Fixed document position
Browse files Browse the repository at this point in the history
Method documentation must be placed immediately before each
implementation, without any other functions or preprocessor
directives.
  • Loading branch information
nobu committed Dec 6, 2023
1 parent d411d8f commit ca8733d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions file.c
Expand Up @@ -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
Expand All @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down

0 comments on commit ca8733d

Please sign in to comment.