diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-02 07:15:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-02 07:15:55 +0000 |
commit | 5615bf5f79e6d55666f798a08d12c409c27dbf01 (patch) | |
tree | 8b77fe6f2e532648d64e61dffe452fa0e2065e4c | |
parent | d8069572f8ebf2cb4124a39cc15b6e4f26a221a3 (diff) | |
download | ruby-5615bf5f79e6d55666f798a08d12c409c27dbf01.tar.gz |
dln_find.c: deprecated functions
* dln_find.c (dln_find_exe, dln_find_file): remove deprecated
non-reentrant functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | dln.h | 2 | ||||
-rw-r--r-- | dln_find.c | 14 |
3 files changed, 5 insertions, 16 deletions
@@ -1,3 +1,8 @@ +Sun Jun 2 16:15:29 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * dln_find.c (dln_find_exe, dln_find_file): remove deprecated + non-reentrant functions. + Sun Jun 2 15:04:35 2013 Zachary Scott <zachary@zacharyscott.net> * lib/cgi/util.rb, lib/erb.rb: Use String#b [Feature #8394] by znz @@ -30,8 +30,6 @@ RUBY_SYMBOL_EXPORT_BEGIN -DEPRECATED(char *dln_find_exe(const char*,const char*)); -DEPRECATED(char *dln_find_file(const char*,const char*)); char *dln_find_exe_r(const char*,const char*,char*,size_t); char *dln_find_file_r(const char*,const char*,char*,size_t); diff --git a/dln_find.c b/dln_find.c index 06caceb80d..3160235b74 100644 --- a/dln_find.c +++ b/dln_find.c @@ -94,20 +94,6 @@ dln_find_file_r(const char *fname, const char *path, char *buf, size_t size) return dln_find_1(fname, path, buf, size, 0); } -static char fbuf[MAXPATHLEN]; - -char * -dln_find_exe(const char *fname, const char *path) -{ - return dln_find_exe_r(fname, path, fbuf, sizeof(fbuf)); -} - -char * -dln_find_file(const char *fname, const char *path) -{ - return dln_find_file_r(fname, path, fbuf, sizeof(fbuf)); -} - 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. */) |