emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] GnuTLS support on Woe32


From: Juanma Barranquero
Subject: Re: [PATCH] GnuTLS support on Woe32
Date: Wed, 4 May 2011 01:08:51 +0200

On Tue, May 3, 2011 at 06:19, Eli Zaretskii <address@hidden> wrote:

> Btw, why is it a good idea to return NULL if the library is already
> loaded?  Why not return its handle instead?

[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 case
we would have either to cache it, or search again for the library and
reload it. That is not useful, because w32_delayed_load() is used from
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 handle
has a use case.

    Juanma



reply via email to

[Prev in Thread] Current Thread [Next in Thread]