diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-09-05 22:31:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-09-05 22:31:07 +0000 |
commit | 0530ceb2b964e974ad7e25dd041b54a3ef577677 (patch) | |
tree | 0ee0ed7f4c7d2df2ff1a2a4f7519bec2225c95aa | |
parent | a09435ec209eba2111f6cad6a191b2b0a43d4e30 (diff) | |
download | ruby-0530ceb2b964e974ad7e25dd041b54a3ef577677.tar.gz |
* file.c (rb_find_file_ext): add const qualifiers to ext.
* intern.h (rb_find_file_ext): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | file.c | 2 | ||||
-rw-r--r-- | intern.h | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Thu Sep 6 07:28:56 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> + + * file.c (rb_find_file_ext): add const qualifiers to ext. + + * intern.h (rb_find_file_ext): ditto. + Thu Sep 6 07:16:14 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> * ext/socket/socket.c (Init_socket): remove duplicating constants. @@ -2286,7 +2286,7 @@ extern VALUE rb_load_path; int rb_find_file_ext(filep, ext) VALUE *filep; - char **ext; + const char *const *ext; { char *path, *e, *found; char *f = RSTRING(*filep)->ptr; @@ -185,7 +185,7 @@ void rb_thread_atfork _((void)); int eaccess _((const char*, int)); VALUE rb_file_s_expand_path _((int, VALUE *)); void rb_file_const _((const char*, VALUE)); -int rb_find_file_ext _((VALUE*, char**)); +int rb_find_file_ext _((VALUE*, const char* const*)); VALUE rb_find_file _((VALUE)); /* gc.c */ void rb_gc_mark_locations _((VALUE*, VALUE*)); |