[前][次][番号順一覧][スレッド一覧]

ruby-changes:28980

From: nobu <ko1@a...>
Date: Sun, 2 Jun 2013 16:16:31 +0900 (JST)
Subject: [ruby-changes:28980] nobu:r41032 (trunk): dln_find.c: deprecated functions

nobu	2013-06-02 16:15:55 +0900 (Sun, 02 Jun 2013)

  New Revision: 41032

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41032

  Log:
    dln_find.c: deprecated functions
    
    * dln_find.c (dln_find_exe, dln_find_file): remove deprecated
      non-reentrant functions.

  Modified files:
    trunk/ChangeLog
    trunk/dln.h
    trunk/dln_find.c

Index: dln_find.c
===================================================================
--- dln_find.c	(revision 41031)
+++ dln_find.c	(revision 41032)
@@ -94,20 +94,6 @@ dln_find_file_r(const char *fname, const https://github.com/ruby/ruby/blob/trunk/dln_find.c#L94
     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. */)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41031)
+++ ChangeLog	(revision 41032)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Jun  2 16:15:29 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* dln_find.c (dln_find_exe, dln_find_file): remove deprecated
+	  non-reentrant functions.
+
 Sun Jun  2 15:04:35 2013  Zachary Scott  <zachary@z...>
 
 	* lib/cgi/util.rb, lib/erb.rb: Use String#b [Feature #8394] by znz
Index: dln.h
===================================================================
--- dln.h	(revision 41031)
+++ dln.h	(revision 41032)
@@ -30,8 +30,6 @@ https://github.com/ruby/ruby/blob/trunk/dln.h#L30
 
 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);
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]