From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] GnuTLS support on Woe32 Date: Wed, 04 May 2011 06:05:20 +0300 Message-ID: <83ei4f413j.fsf@gnu.org> References: <87ipvwl1nx.wl%claudio.bley@gmail.com> <87wrjquacf.fsf@lifelogs.com> <87lj05svwh.fsf@lifelogs.com> <87bp11imgb.wl%claudio.bley@gmail.com> <8739mc5nes.fsf@lifelogs.com> <87ipuubao6.fsf@lifelogs.com> <87fwpjfkkz.fsf@lifelogs.com> <87bp072fb1.fsf@lifelogs.com> <874o5vimm5.fsf@lifelogs.com> <87zknjmcyk.fsf@lifelogs.com> <87sjta2zvp.fsf@lifelogs.com> <87liyzglkh.fsf@lifelogs.com> <4DB77682.1070605@gmail.com> <8762q04ba1.fsf@lifelogs.com> <87hb9dufao.fsf@lifelogs.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1304478328 17795 80.91.229.12 (4 May 2011 03:05:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 May 2011 03:05:28 +0000 (UTC) Cc: tzz@lifelogs.com, emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 04 05:05:23 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QHSOw-0004s5-6V for ged-emacs-devel@m.gmane.org; Wed, 04 May 2011 05:05:22 +0200 Original-Received: from localhost ([::1]:50839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHSOv-0005V5-0i for ged-emacs-devel@m.gmane.org; Tue, 03 May 2011 23:05:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHSOs-0005Uv-06 for emacs-devel@gnu.org; Tue, 03 May 2011 23:05:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHSOq-0001tP-Ua for emacs-devel@gnu.org; Tue, 03 May 2011 23:05:17 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:37206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHSOq-0001tI-L3 for emacs-devel@gnu.org; Tue, 03 May 2011 23:05:16 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LKN00K00HUDC800@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Wed, 04 May 2011 06:05:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.232.26]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LKN00K0UHWOCC00@a-mtaout23.012.net.il>; Wed, 04 May 2011 06:05:14 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139093 Archived-At: > From: Juanma Barranquero > Date: Wed, 4 May 2011 01:08:51 +0200 > Cc: tzz@lifelogs.com, emacs-devel@gnu.org >=20 > On Tue, May 3, 2011 at 06:19, Eli Zaretskii wrote: >=20 > > Btw, why is it a good idea to return NULL if the library is alrea= dy > > loaded? =C2=A0Why not return its handle instead? >=20 > [After taking a look at the code] If the library has already been > loaded, we don't know the handle. Once we locate the right library = for > a given symbol (image type, in all cases until now), we load the > library and get the handle, initialize the function pointers, and > promptly forget the handle again. We don't even remember the name > under which the library was found. To return the handle in this cas= e > we would have either to cache it, or search again for the library a= nd > reload it. That is not useful, because w32_delayed_load() is used f= rom > init functions which are typically just called once. So I think it = is > better to leave it as is, until we determine that caching the handl= e > has a use case. Please add some of this information to the commentary.