Henri Verbeet : d3dcompiler: Make some variables static.
Alexandre Julliard
julliard at winehq.org
Mon Oct 18 13:36:54 CDT 2010
Module: wine
Branch: master
Commit: 3db5163fd0176938eee698b7d11c4fda173ad7ab
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3db5163fd0176938eee698b7d11c4fda173ad7ab
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Oct 18 13:05:48 2010 +0200
d3dcompiler: Make some variables static.
---
dlls/d3dcompiler_43/blob.c | 2 +-
dlls/d3dcompiler_43/compiler.c | 18 +++++++++---------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/dlls/d3dcompiler_43/blob.c b/dlls/d3dcompiler_43/blob.c
index cd47024..c22a9b1 100644
--- a/dlls/d3dcompiler_43/blob.c
+++ b/dlls/d3dcompiler_43/blob.c
@@ -92,7 +92,7 @@ static SIZE_T STDMETHODCALLTYPE d3dcompiler_blob_GetBufferSize(ID3DBlob *iface)
return blob->size;
}
-const struct ID3D10BlobVtbl d3dcompiler_blob_vtbl =
+static const struct ID3D10BlobVtbl d3dcompiler_blob_vtbl =
{
/* IUnknown methods */
d3dcompiler_blob_QueryInterface,
diff --git a/dlls/d3dcompiler_43/compiler.c b/dlls/d3dcompiler_43/compiler.c
index 45f85ad..ca48611 100644
--- a/dlls/d3dcompiler_43/compiler.c
+++ b/dlls/d3dcompiler_43/compiler.c
@@ -39,8 +39,8 @@ struct mem_file_desc
unsigned int pos;
};
-struct mem_file_desc current_shader;
-LPD3DINCLUDE current_include;
+static struct mem_file_desc current_shader;
+static ID3DInclude *current_include;
#define INCLUDES_INITIAL_CAPACITY 4
@@ -50,15 +50,15 @@ struct loaded_include
const char *data;
};
-struct loaded_include *includes;
-int includes_capacity, includes_size;
-const char *parent_include;
+static struct loaded_include *includes;
+static int includes_capacity, includes_size;
+static const char *parent_include;
-char *wpp_output;
-int wpp_output_capacity, wpp_output_size;
+static char *wpp_output;
+static int wpp_output_capacity, wpp_output_size;
-char *wpp_messages;
-int wpp_messages_capacity, wpp_messages_size;
+static char *wpp_messages;
+static int wpp_messages_capacity, wpp_messages_size;
/* Mutex used to guarantee a single invocation
of the D3DXAssembleShader function (or its variants) at a time.
More information about the wine-cvs
mailing list