diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-03 14:47:38 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-26 20:45:12 +0900 |
commit | bf53d6c7d19f877c821901b3288d7f80955ffbb7 (patch) | |
tree | 4c4dbac564d721af8b295f55e6f81c21af8b0fbe /internal/file.h | |
parent | 3ae09b30f8ba5ff4dd148d358f51b99ae0ae6c38 (diff) | |
download | ruby-bf53d6c7d19f877c821901b3288d7f80955ffbb7.tar.gz |
other minior internal header tweaks
These headers need no rewrite. Just add some minor tweaks, like
addition of #include lines. Mainly cosmetic.
TIMET_MAX_PLUS_ONE was deleted because the macro was used from only
one place (directly write expression there).
Diffstat (limited to 'internal/file.h')
-rw-r--r-- | internal/file.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/file.h b/internal/file.h index 0bbf50f296..ac65ddad3c 100644 --- a/internal/file.h +++ b/internal/file.h @@ -9,15 +9,15 @@ * modify this file, provided that the conditions mentioned in the * file COPYING are met. Consult the file for details. */ +#include "ruby/ruby.h" /* for VALUE */ +#include "ruby/encoding.h" /* for rb_encodinng */ /* file.c */ extern const char ruby_null_device[]; VALUE rb_home_dir_of(VALUE user, VALUE result); VALUE rb_default_home_dir(VALUE result); VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict); -#ifdef RUBY_ENCODING_H VALUE rb_check_realpath(VALUE basedir, VALUE path, rb_encoding *origenc); -#endif void rb_file_const(const char*, VALUE); int rb_file_load_ok(const char *); VALUE rb_file_expand_path_fast(VALUE, VALUE); @@ -28,7 +28,7 @@ int ruby_is_fd_loadable(int fd); RUBY_SYMBOL_EXPORT_BEGIN /* file.c (export) */ -#if defined HAVE_READLINK && defined RUBY_ENCODING_H +#ifdef HAVE_READLINK VALUE rb_readlink(VALUE path, rb_encoding *enc); #endif #ifdef __APPLE__ |