diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-20 02:22:50 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-20 02:22:50 +0000 |
| commit | f8f4a09e312afc9816e282c83449615ed146ea50 (patch) | |
| tree | 35a33ab64f63da4a5d225cc309b8cee56b2e45cb /file.c | |
| parent | 2dd8bc29f1852c59d42731627341d209b420b6ab (diff) | |
| download | ruby-f8f4a09e312afc9816e282c83449615ed146ea50.tar.gz ruby-f8f4a09e312afc9816e282c83449615ed146ea50.tar.xz ruby-f8f4a09e312afc9816e282c83449615ed146ea50.zip | |
* eval.c, file.c, ruby.c: removed strchr, strrchr, strstr definition
because they are defined in missing.h.
* missing.h, missing/strchr.c, missing/strstr.c: ANSI styled.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
| -rw-r--r-- | file.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -53,10 +53,6 @@ VALUE rb_time_new(time_t, time_t); #include <pwd.h> #endif -#ifndef HAVE_STRING_H -char *strrchr(const char*,const char); -#endif - #include <sys/types.h> #include <sys/stat.h> @@ -3881,8 +3877,7 @@ path_check_0(VALUE path, int loadpath) #endif static int -fpath_check(path) - char *path; +fpath_check(const char *path) { #ifndef DOSISH return path_check_0(rb_str_new2(path), Qfalse); |
