summaryrefslogtreecommitdiff
path: root/ext/pathname/pathname.c
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 ()
treeb25622e2aa7b6e0bec01fc6fa0ebdfa786a4c90c /ext/pathname/pathname.c
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
@@ -2,22 +2,75 @@
#include "ruby/encoding.h"
static VALUE rb_cPathname;
-static ID id_at_path, id_to_path;
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 VALUE
get_strpath(VALUE obj)