]> sourceware.org Git - newlib-cygwin.git/commit
dlopen: switch to new pathfinder class
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
Wed, 31 Aug 2016 18:07:06 +0000 (20:07 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 8 Sep 2016 11:36:29 +0000 (13:36 +0200)
commit97974e3076f26d4031a95722116eb45bc98b5571
treee68d7303dc0bd0780de866c864df0d23f2050cb0
parent091a0ac120e2c220a7b2c102e2e23d9b4b543ff6
dlopen: switch to new pathfinder class

Instead of find_exec, without changing behaviour use new pathfinder
class with new allocator_interface around tmp_pathbuf and new vstrlist
class.
* pathfinder.h (pathfinder): New file.
* vstrlist.h (allocator_interface, allocated_type, vstrlist): New file.
* dlfcn.cc (dlopen): Avoid redundant GetModuleHandleExW with RTLD_NOLOAD
and RTLD_NODELETE.  Switch to new pathfinder class, using
(tmp_pathbuf_allocator): New class.
(get_full_path_of_dll): Drop.
winsup/cygwin/dlfcn.cc
winsup/cygwin/pathfinder.h [new file with mode: 0644]
winsup/cygwin/vstrlist.h [new file with mode: 0644]
This page took 0.030618 seconds and 5 git commands to generate.