diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-03 17:06:37 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-26 20:45:12 +0900 |
commit | ec6f6b53d88b47570c3c2b83cefee2cfd7b72ce3 (patch) | |
tree | 61c315c9d80ff24d58b1e22a1d25c5b87de13945 /internal/file.h | |
parent | 23c2a27bf6a36ed31171c681af2288ce3a02912b (diff) | |
download | ruby-ec6f6b53d88b47570c3c2b83cefee2cfd7b72ce3.tar.gz |
internal/error.h rework
Reduce macros for readability. Also transplanted some part of
internal/file.h into here because the delcared functions are in fact
defined in error.c.
Diffstat (limited to 'internal/file.h')
-rw-r--r-- | internal/file.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/internal/file.h b/internal/file.h index f4a0794dc6..0bbf50f296 100644 --- a/internal/file.h +++ b/internal/file.h @@ -26,22 +26,6 @@ VALUE rb_get_path_check_to_string(VALUE); VALUE rb_get_path_check_convert(VALUE); int ruby_is_fd_loadable(int fd); -#ifdef RUBY_FUNCTION_NAME_STRING -# if defined __GNUC__ && __GNUC__ >= 4 -# pragma GCC visibility push(default) -# endif -NORETURN(void rb_sys_fail_path_in(const char *func_name, VALUE path)); -NORETURN(void rb_syserr_fail_path_in(const char *func_name, int err, VALUE path)); -# if defined __GNUC__ && __GNUC__ >= 4 -# pragma GCC visibility pop -# endif -# define rb_sys_fail_path(path) rb_sys_fail_path_in(RUBY_FUNCTION_NAME_STRING, path) -# define rb_syserr_fail_path(err, path) rb_syserr_fail_path_in(RUBY_FUNCTION_NAME_STRING, (err), (path)) -#else -# define rb_sys_fail_path(path) rb_sys_fail_str(path) -# define rb_syserr_fail_path(err, path) rb_syserr_fail_str((err), (path)) -#endif - RUBY_SYMBOL_EXPORT_BEGIN /* file.c (export) */ #if defined HAVE_READLINK && defined RUBY_ENCODING_H |