[PATCH 5/6] wined3d: Make some variables static.
Henri Verbeet
hverbeet at codeweavers.com
Fri Sep 11 12:01:18 CDT 2009
---
dlls/wined3d/arb_program_shader.c | 2 +-
dlls/wined3d/directx.c | 2 +-
dlls/wined3d/wined3d_main.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 5c971d2..b2d7806 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -4442,7 +4442,7 @@ static int sig_tree_compare(const void *key, const struct wine_rb_entry *entry)
return compare_sig(key, e->sig);
}
-struct wine_rb_functions sig_tree_functions =
+static const struct wine_rb_functions sig_tree_functions =
{
wined3d_rb_alloc,
wined3d_rb_realloc,
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 129cbba..1ac8b11 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -789,7 +789,7 @@ struct driver_quirk
const char *description;
};
-struct driver_quirk quirk_table[] =
+static const struct driver_quirk quirk_table[] =
{
{
match_ati_r300_to_500,
diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c
index bdb544a..67b1acd 100644
--- a/dlls/wined3d/wined3d_main.c
+++ b/dlls/wined3d/wined3d_main.c
@@ -32,7 +32,7 @@ int num_lock = 0;
void (*CDECL wine_tsx11_lock_ptr)(void) = NULL;
void (*CDECL wine_tsx11_unlock_ptr)(void) = NULL;
-CRITICAL_SECTION wined3d_cs;
+static CRITICAL_SECTION wined3d_cs;
static CRITICAL_SECTION_DEBUG wined3d_cs_debug =
{
0, 0, &wined3d_cs,
@@ -40,7 +40,7 @@ static CRITICAL_SECTION_DEBUG wined3d_cs_debug =
&wined3d_cs_debug.ProcessLocksList},
0, 0, {(DWORD_PTR)(__FILE__ ": wined3d_cs")}
};
-CRITICAL_SECTION wined3d_cs = {&wined3d_cs_debug, -1, 0, 0, 0, 0};
+static CRITICAL_SECTION wined3d_cs = {&wined3d_cs_debug, -1, 0, 0, 0, 0};
/* When updating default value here, make sure to update winecfg as well,
* where appropriate. */
--
1.6.0.6
More information about the wine-patches
mailing list