Re: lt_dlforeach replacement?
Zopolis0 <[email protected]> Thu, 4 Aug 2022 13:34:03 +1000
| Newsgroups | gmane.comp.gnu.libtool.general |
|---|---|
| Message-ID | <CAEYL+X_vGPaXSZLW95midD8-jqbQw970i4BaDrfpzeRuFuWF1Q@mail.gmail.com> |
It appears that's the wrong kind of function, it looks like the intended replacement is lt_dlhandle_map. That requires a lt_dlinterface_id variable, though. On Fri, Jul 22, 2022 at 11:04 AM Alex Ameen <[email protected]> wrote: > M4sugar provides an `m4_foreach` I believe. Im writing from my phone and > can't reference the code, so forgive me if the real name is something like > `m4s_foreach` but it's provided by `autoconf` under `lib/foreach.m4`. > > On Thu, Jul 21, 2022, 8:02 PM Zopolis0 <[email protected]> wrote: > >> I'm trying to revive a project that used lt_dlforeach, which is now >> deprecated. >> What function should I use to replace it? The same question was asked >> before, about the same code, but it was not answered. >> >> This is the code I need to fix: >> lookup_data data; >> data.symname = symname; >> data.result = NULL; >> lt_dlforeach (find_symbol, (lt_ptr) &data); >> return data.result; >> >