[Top][All Lists]

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

Re: .ONESEHLL not working as expected in 3.82

From: Paul Smith
Subject: Re: .ONESEHLL not working as expected in 3.82
Date: Sat, 27 Apr 2013 15:32:22 -0400

I took with make-w32 list off.

On Sat, 2013-04-27 at 22:18 +0300, Eli Zaretskii wrote:
> I added a similar facility to Gawk, but there a problem was much
> simpler, because Gawk itself was tracking the loaded extensions in
> platform-independent code.  So my emulation of dlopen didn't need to
> support NULL as its first argument, and didn't care about RTLD_GLOBAL.
> By contrast, the way Make's code in load.c is written, it relies on
> dlopen to track the shared libraries already loaded.  This is a PITA
> on Windows, because there's no similar functionality built in, and the
> emulation of dlopen will have to record each loaded extension in some
> internal data structure, and search that when dlopen is called with
> its 1st argument NULL.  Not rocket science, granted, but it does make
> the job larger and the required testing more extensive.

Well, we already maintain a list of modules that are loaded in
the .LOADED variable.  Although it's not written like that today, I have
no problem changing the code to check that variable to see whether the
module is loaded or not.  We already make that check, to ensure we don't
call the user's init function twice.

reply via email to

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