diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-01-13 13:05:45 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-01-13 19:10:26 +0900 |
commit | f7fd42ce7444ad89080f31bea748972f1a666c61 () | |
tree | a9276bd133dd3f6cfd71e468fd82cc18d67337d9 /include | |
parent | 384e6945ac64dba1c41d6ca714a6d7750d92ddb2 (diff) |
Move the declaration of `rb_path_check`
Although this function is unrelated to hash, it was defined in hash.c to check PATH environment variable originally. Then the definition was moeved to file.c but the declaration was left in the hash.c block.
Notes: Merged: https://.com/ruby/ruby/pull/12564
-rw-r--r-- | include/ruby/internal/intern/file.h | 13 | ||||
-rw-r--r-- | include/ruby/internal/intern/hash.h | 17 |
2 files changed, 13 insertions, 17 deletions
@@ -208,6 +208,19 @@ int rb_is_absolute_path(const char *path); */ rb_off_t rb_file_size(VALUE file); RBIMPL_SYMBOL_EXPORT_END() #endif /* RBIMPL_INTERN_FILE_H */ @@ -284,23 +284,6 @@ typedef VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value); */ VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func); -/* file.c */ - -/** - * If the PATH_SEPARATOR-separated list of directory names contains the name of - * a world-writable directory, issue a warning for it. This may do nothing on - * some platforms. - * - * @param[in] path A local path. - * @retval 0 The "check" succeeded. - * @retval otherwise The "check" failed. - * @note This feature may be disabled by setting `ENABLE_PATH_CHECK` - * macro to zero at compilation time. - */ -int rb_path_check(const char *path); - -/* hash.c */ - /** * Destructively removes every environment variables of the running process. * |