summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 08:41:59 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 08:41:59 +0000
commit4ad1ac75e49ae6809ca32e0ebda75f32c8a8eda2 (patch)
treeb25622e2aa7b6e0bec01fc6fa0ebdfa786a4c90c
parent6a832cdb8d659f2206606007f73f52253d8cbae9 (diff)
declare variables once for each line in pathname.c.
This ease adding/deleting variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/pathname/pathname.c83
1 files changed, 68 insertions, 15 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c
index 42e83c4..59c2b3e 100644
--- a/ext/pathname/pathname.c
+++ b/ext/pathname/pathname.c
@@ -2,22 +2,75 @@
#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)