mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* 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:
parent
5cd52d02eb
commit
1ee07e8b47
3 changed files with 15 additions and 7 deletions
|
@ -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>
|
||||
|
||||
* lib/net/ftp.rb (putbinaryfile): use APPE for resume.
|
||||
|
|
12
dln.c
12
dln.c
|
@ -1651,7 +1651,7 @@ dln_load(file)
|
|||
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];
|
||||
|
||||
|
@ -1681,7 +1681,7 @@ dln_find_file(fname, path)
|
|||
{
|
||||
#ifndef __MACOS__
|
||||
if (!path) path = ".";
|
||||
return dln_find_1(fname, path, 0);
|
||||
return dln_find_1(fname, path, fbuf, sizeof(fbuf), 0);
|
||||
#else
|
||||
if (!path) path = ".";
|
||||
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 *
|
||||
dln_find_1(const char *fname, const char *path, char *fbuf, size_t size,
|
||||
int exe_flag /* non 0 if looking for executable. */)
|
||||
dln_find_1(fname, path, fbuf, size, exe_flag)
|
||||
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 *ep;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#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_RELEASE_CODE 20091119
|
||||
#define RUBY_RELEASE_CODE 20091123
|
||||
#define RUBY_PATCHLEVEL -1
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
|
@ -9,7 +9,7 @@
|
|||
#define RUBY_VERSION_TEENY 8
|
||||
#define RUBY_RELEASE_YEAR 2009
|
||||
#define RUBY_RELEASE_MONTH 11
|
||||
#define RUBY_RELEASE_DAY 19
|
||||
#define RUBY_RELEASE_DAY 23
|
||||
|
||||
#ifdef RUBY_EXTERN
|
||||
RUBY_EXTERN const char ruby_version[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue