* dll_init.cc: Throughout, drop usage of modname in favor of name.

(dll_list::find_by_modname): Remove.
	(dll_list::alloc): Only store module basename in name.  Add comment to
	explain why.  Simplify address check.  Fix formatting in comment.
	* dll_init.h (struct dll): Drop modname and find_by_modname.
This commit is contained in:
Corinna Vinschen
2012-02-08 17:35:02 +00:00
parent 25e67cd634
commit 8f4ea5f005
3 changed files with 37 additions and 50 deletions

View File

@ -54,7 +54,6 @@ struct dll
dll_type type;
long ndeps;
dll** deps;
PWCHAR modname;
DWORD image_size;
void* preferred_base;
WCHAR name[1];
@ -90,7 +89,6 @@ public:
void load_after_fork (HANDLE);
void reserve_space ();
void load_after_fork_impl (HANDLE, dll* which, int retries);
dll *find_by_modname (const PWCHAR name);
void populate_deps (dll* d);
void topsort ();
void topsort_visit (dll* d, bool goto_tail);