ruby-changes:48127
From: akr <ko1@a...>
Date: Sat, 21 Oct 2017 17:42:13 +0900 (JST)
Subject: [ruby-changes:48127] akr:r60241 (trunk): declare variables once for each line in pathname.c.
akr 2017-10-21 17:41:59 +0900 (Sat, 21 Oct 2017) New Revision: 60241 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60241 Log: declare variables once for each line in pathname.c. This ease adding/deleting variables. Modified files: trunk/ext/pathname/pathname.c Index: ext/pathname/pathname.c =================================================================== --- ext/pathname/pathname.c (revision 60240) +++ ext/pathname/pathname.c (revision 60241) @@ -2,22 +2,75 @@ https://github.com/ruby/ruby/blob/trunk/ext/pathname/pathname.c#L2 #include "ruby/encoding.h" static VALUE rb_cPathname; -static ID id_at_path, id_to_path; +static ID id_ENOTDIR; +static ID id_at_path; +static ID id_atime; static ID id_base; -static ID id_ENOTDIR, id_atime, id_basename, id_binread, id_binwrite, - id_birthtime, id_blockdev_p, id_chardev_p, id_chmod, id_chown, - id_ctime, id_directory_p, id_dirname, id_empty_p, id_entries, - id_executable_p, id_executable_real_p, id_exist_p, id_expand_path, - id_extname, id_file_p, id_fnmatch, id_foreach, id_ftype, id_getwd, - id_glob, id_grpowned_p, id_lchmod, id_lchown, id_link, id_lstat, - id_mkdir, id_mtime, id_open, id_owned_p, id_pipe_p, id_read, - id_readable_p, id_readable_real_p, id_readlines, id_readlink, - id_realdirpath, id_realpath, id_rename, id_rmdir, id_setgid_p, - id_setuid_p, id_size, id_size_p, id_socket_p, id_split, id_stat, - id_sticky_p, id_sub, id_symlink, id_symlink_p, id_sysopen, - id_truncate, id_unlink, id_utime, id_world_readable_p, - id_world_writable_p, id_writable_p, id_writable_real_p, id_write, - id_zero_p; +static ID id_basename; +static ID id_binread; +static ID id_binwrite; +static ID id_birthtime; +static ID id_blockdev_p; +static ID id_chardev_p; +static ID id_chmod; +static ID id_chown; +static ID id_ctime; +static ID id_directory_p; +static ID id_dirname; +static ID id_empty_p; +static ID id_entries; +static ID id_executable_p; +static ID id_executable_real_p; +static ID id_exist_p; +static ID id_expand_path; +static ID id_extname; +static ID id_file_p; +static ID id_fnmatch; +static ID id_foreach; +static ID id_ftype; +static ID id_getwd; +static ID id_glob; +static ID id_grpowned_p; +static ID id_lchmod; +static ID id_lchown; +static ID id_link; +static ID id_lstat; +static ID id_mkdir; +static ID id_mtime; +static ID id_open; +static ID id_owned_p; +static ID id_pipe_p; +static ID id_read; +static ID id_readable_p; +static ID id_readable_real_p; +static ID id_readlines; +static ID id_readlink; +static ID id_realdirpath; +static ID id_realpath; +static ID id_rename; +static ID id_rmdir; +static ID id_setgid_p; +static ID id_setuid_p; +static ID id_size; +static ID id_size_p; +static ID id_socket_p; +static ID id_split; +static ID id_stat; +static ID id_sticky_p; +static ID id_sub; +static ID id_symlink; +static ID id_symlink_p; +static ID id_sysopen; +static ID id_to_path; +static ID id_truncate; +static ID id_unlink; +static ID id_utime; +static ID id_world_readable_p; +static ID id_world_writable_p; +static ID id_writable_p; +static ID id_writable_real_p; +static ID id_write; +static ID id_zero_p; static VALUE get_strpath(VALUE obj) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/