diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-15 06:34:21 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-15 06:34:21 +0000 |
commit | 73c6cc655fc7be1b4778cda999b40501c003504c (patch) | |
tree | 4011b7f33c3e978dc26381104bc5181c4f0d6db7 /dir.c | |
parent | 4ef47f8047ebf05ecce75657f38c148f88f58293 (diff) | |
download | ruby-73c6cc655fc7be1b4778cda999b40501c003504c.tar.gz ruby-73c6cc655fc7be1b4778cda999b40501c003504c.tar.xz ruby-73c6cc655fc7be1b4778cda999b40501c003504c.zip |
* ruby.h, dir.c (rb_glob): add const.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -914,10 +914,10 @@ do_opendir(path) /* Return nonzero if S has any special globbing chars in it. */ static int has_magic(s, flags) - char *s; + const char *s; int flags; { - register char *p = s; + register const char *p = s; register char c; int open = 0; int escape = !(flags & FNM_NOESCAPE); @@ -1311,7 +1311,7 @@ rb_glob2(path, flags, func, arg) void rb_glob(path, func, arg) - char *path; + const char *path; void (*func) _((const char*, VALUE)); VALUE arg; { @@ -1336,7 +1336,7 @@ push_pattern(path, ary) static void push_globs(ary, s, flags) VALUE ary; - char *s; + const char *s; int flags; { rb_glob2(s, flags, push_pattern, ary); @@ -1345,12 +1345,12 @@ push_globs(ary, s, flags) static void push_braces(ary, s, flags) VALUE ary; - char *s; + const char *s; int flags; { char *buf; - char *p, *t, *b; - char *lbrace, *rbrace; + const char *p, *t, *b; + const char *lbrace, *rbrace; int nest = 0; p = s; @@ -1400,9 +1400,9 @@ rb_push_glob(str, flags) VALUE str; int flags; { - char *p, *pend; + const char *p, *pend; char *buf; - char *t; + const char *t; int nest, maxnest; int escape = !(flags & FNM_NOESCAPE); VALUE ary; |