From 4c92ba2270146957aba35461a951a5270854f990 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 3 Jan 2009 12:53:34 +0000 Subject: [PATCH] dbghelp: Declare some functions static. --- dlls/dbghelp/dbghelp_private.h | 7 ------- dlls/dbghelp/module.c | 4 ++-- dlls/dbghelp/storage.c | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/dlls/dbghelp/dbghelp_private.h b/dlls/dbghelp/dbghelp_private.h index 3eb420e75c2..880aed9a86b 100644 --- a/dlls/dbghelp/dbghelp_private.h +++ b/dlls/dbghelp/dbghelp_private.h @@ -91,7 +91,6 @@ void hash_table_init(struct pool* pool, struct hash_table* ht, void hash_table_destroy(struct hash_table* ht); void hash_table_add(struct hash_table* ht, struct hash_table_elt* elt); void* hash_table_find(const struct hash_table* ht, const char* name); -unsigned hash_table_hash(const char* name, unsigned num_buckets); struct hash_table_iter { @@ -438,9 +437,6 @@ extern const WCHAR S_SlashW[]; extern struct module* module_find_by_addr(const struct process* pcs, unsigned long addr, enum module_type type); -extern struct module* - module_find_by_name(const struct process* pcs, - const WCHAR* name); extern struct module* module_find_by_nameA(const struct process* pcs, const char* name); @@ -453,9 +449,6 @@ extern struct module* enum module_type type, BOOL virtual, unsigned long addr, unsigned long size, unsigned long stamp, unsigned long checksum); -extern struct module* - module_get_container(const struct process* pcs, - const struct module* inner); extern struct module* module_get_containee(const struct process* pcs, const struct module* inner); diff --git a/dlls/dbghelp/module.c b/dlls/dbghelp/module.c index ddc6d3d89bd..49b774262ce 100644 --- a/dlls/dbghelp/module.c +++ b/dlls/dbghelp/module.c @@ -188,7 +188,7 @@ struct module* module_new(struct process* pcs, const WCHAR* name, * module_find_by_name * */ -struct module* module_find_by_name(const struct process* pcs, const WCHAR* name) +static struct module* module_find_by_name(const struct process* pcs, const WCHAR* name) { struct module* module; @@ -238,7 +238,7 @@ struct module* module_is_already_loaded(const struct process* pcs, const WCHAR* * module_get_container * */ -struct module* module_get_container(const struct process* pcs, +static struct module* module_get_container(const struct process* pcs, const struct module* inner) { struct module* module; diff --git a/dlls/dbghelp/storage.c b/dlls/dbghelp/storage.c index 04ea378855e..ec8a37d7f3e 100644 --- a/dlls/dbghelp/storage.c +++ b/dlls/dbghelp/storage.c @@ -298,7 +298,7 @@ unsigned sparse_array_length(const struct sparse_array* sa) return sa->elements.num_elts; } -unsigned hash_table_hash(const char* name, unsigned num_buckets) +static unsigned hash_table_hash(const char* name, unsigned num_buckets) { unsigned hash = 0; while (*name)