* dln.c (dln_find_1): not use prototype definition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-11-23 01:39:15 +00:00
parent 5cd52d02eb
commit 1ee07e8b47
3 changed files with 15 additions and 7 deletions

View file

@ -1,3 +1,7 @@
Mon Nov 23 10:39:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dln.c (dln_find_1): not use prototype definition.
Thu Nov 19 23:22:40 2009 Shugo Maeda <shugo@ruby-lang.org> Thu Nov 19 23:22:40 2009 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/ftp.rb (putbinaryfile): use APPE for resume. * lib/net/ftp.rb (putbinaryfile): use APPE for resume.

12
dln.c
View file

@ -1651,7 +1651,7 @@ dln_load(file)
return 0; /* dummy return */ return 0; /* dummy return */
} }
static char *dln_find_1(); static char *dln_find_1 _((const char *fname, const char *path, char *buf, size_t size, int exe_flag));
static char fbuf[MAXPATHLEN]; static char fbuf[MAXPATHLEN];
@ -1681,7 +1681,7 @@ dln_find_file(fname, path)
{ {
#ifndef __MACOS__ #ifndef __MACOS__
if (!path) path = "."; if (!path) path = ".";
return dln_find_1(fname, path, 0); return dln_find_1(fname, path, fbuf, sizeof(fbuf), 0);
#else #else
if (!path) path = "."; if (!path) path = ".";
return _macruby_path_conv_posix_to_macos(dln_find_1(fname, path, fbuf, sizeof(fbuf), 0)); return _macruby_path_conv_posix_to_macos(dln_find_1(fname, path, fbuf, sizeof(fbuf), 0));
@ -1689,8 +1689,12 @@ dln_find_file(fname, path)
} }
static char * static char *
dln_find_1(const char *fname, const char *path, char *fbuf, size_t size, dln_find_1(fname, path, fbuf, size, exe_flag)
int exe_flag /* non 0 if looking for executable. */) const char *fname;
const char *path;
char *fbuf;
size_t size;
int exe_flag; /* non 0 if looking for executable. */
{ {
register const char *dp; register const char *dp;
register const char *ep; register const char *ep;

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.8.8" #define RUBY_VERSION "1.8.8"
#define RUBY_RELEASE_DATE "2009-11-19" #define RUBY_RELEASE_DATE "2009-11-23"
#define RUBY_VERSION_CODE 188 #define RUBY_VERSION_CODE 188
#define RUBY_RELEASE_CODE 20091119 #define RUBY_RELEASE_CODE 20091123
#define RUBY_PATCHLEVEL -1 #define RUBY_PATCHLEVEL -1
#define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 8 #define RUBY_VERSION_TEENY 8
#define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_YEAR 2009
#define RUBY_RELEASE_MONTH 11 #define RUBY_RELEASE_MONTH 11
#define RUBY_RELEASE_DAY 19 #define RUBY_RELEASE_DAY 23
#ifdef RUBY_EXTERN #ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[]; RUBY_EXTERN const char ruby_version[];