* 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
This commit is contained in:
parent
a09435ec20
commit
0530ceb2b9
@ -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>
|
Thu Sep 6 07:16:14 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
* ext/socket/socket.c (Init_socket): remove duplicating constants.
|
* ext/socket/socket.c (Init_socket): remove duplicating constants.
|
||||||
|
2
file.c
2
file.c
@ -2286,7 +2286,7 @@ extern VALUE rb_load_path;
|
|||||||
int
|
int
|
||||||
rb_find_file_ext(filep, ext)
|
rb_find_file_ext(filep, ext)
|
||||||
VALUE *filep;
|
VALUE *filep;
|
||||||
char **ext;
|
const char *const *ext;
|
||||||
{
|
{
|
||||||
char *path, *e, *found;
|
char *path, *e, *found;
|
||||||
char *f = RSTRING(*filep)->ptr;
|
char *f = RSTRING(*filep)->ptr;
|
||||||
|
2
intern.h
2
intern.h
@ -185,7 +185,7 @@ void rb_thread_atfork _((void));
|
|||||||
int eaccess _((const char*, int));
|
int eaccess _((const char*, int));
|
||||||
VALUE rb_file_s_expand_path _((int, VALUE *));
|
VALUE rb_file_s_expand_path _((int, VALUE *));
|
||||||
void rb_file_const _((const char*, 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));
|
VALUE rb_find_file _((VALUE));
|
||||||
/* gc.c */
|
/* gc.c */
|
||||||
void rb_gc_mark_locations _((VALUE*, VALUE*));
|
void rb_gc_mark_locations _((VALUE*, VALUE*));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user