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 <alex.ameen...@gmail.com> 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 <creatorsmith...@gmail.com> 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; >> >