Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
601bf6ea
Commit
601bf6ea
authored
Nov 28, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Make some data const and static.
parent
09fea0f8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
oaidl_p.c
dlls/oleaut32/oaidl_p.c
+2
-2
typelib.c
dlls/oleaut32/typelib.c
+1
-1
ungif.c
dlls/oleaut32/ungif.c
+1
-1
usrmarshal.c
dlls/oleaut32/usrmarshal.c
+1
-1
variant.c
dlls/oleaut32/variant.c
+6
-6
variant.h
dlls/oleaut32/variant.h
+2
-2
No files found.
dlls/oleaut32/oaidl_p.c
View file @
601bf6ea
...
...
@@ -13702,7 +13702,7 @@ static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
}
};
static
const
CInterfaceProxyVtbl
*
_oaidl_ProxyVtblList
[]
=
static
const
CInterfaceProxyVtbl
*
const
_oaidl_ProxyVtblList
[]
=
{
(
const
CInterfaceProxyVtbl
*
)
&
_IDispatchProxyVtbl
,
(
const
CInterfaceProxyVtbl
*
)
&
_ITypeInfoProxyVtbl
,
...
...
@@ -13718,7 +13718,7 @@ static const CInterfaceProxyVtbl * _oaidl_ProxyVtblList[] =
0
};
static
const
CInterfaceStubVtbl
*
_oaidl_StubVtblList
[]
=
static
const
CInterfaceStubVtbl
*
const
_oaidl_StubVtblList
[]
=
{
(
const
CInterfaceStubVtbl
*
)
&
_IDispatchStubVtbl
,
(
const
CInterfaceStubVtbl
*
)
&
_ITypeInfoStubVtbl
,
...
...
dlls/oleaut32/typelib.c
View file @
601bf6ea
...
...
@@ -1149,7 +1149,7 @@ static void dump_FUNCDESC(const FUNCDESC *funcdesc) {
dump_ELEMDESC
(
&
funcdesc
->
elemdescFunc
);
}
static
const
char
*
typekind_desc
[]
=
static
const
char
*
const
typekind_desc
[]
=
{
"TKIND_ENUM"
,
"TKIND_RECORD"
,
...
...
dlls/oleaut32/ungif.c
View file @
601bf6ea
...
...
@@ -742,7 +742,7 @@ DGifDecompressInput(GifFileType * GifFile,
GifFilePrivateType
*
Private
=
(
GifFilePrivateType
*
)
GifFile
->
Private
;
GifByteType
NextByte
;
static
unsigned
short
CodeMasks
[]
=
{
static
const
unsigned
short
CodeMasks
[]
=
{
0x0000
,
0x0001
,
0x0003
,
0x0007
,
0x000f
,
0x001f
,
0x003f
,
0x007f
,
0x00ff
,
0x01ff
,
0x03ff
,
0x07ff
,
...
...
dlls/oleaut32/usrmarshal.c
View file @
601bf6ea
...
...
@@ -51,7 +51,7 @@ CSTDSTUBBUFFERRELEASE(&PSFactoryBuffer)
extern
const
ExtendedProxyFileInfo
oaidl_ProxyFileInfo
;
const
ProxyFileInfo
*
OLEAUT32_ProxyFileList
[]
=
{
static
const
ProxyFileInfo
*
OLEAUT32_ProxyFileList
[]
=
{
&
oaidl_ProxyFileInfo
,
NULL
};
...
...
dlls/oleaut32/variant.c
View file @
601bf6ea
...
...
@@ -44,7 +44,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
variant
);
const
char
*
wine_vtypes
[
VT_CLSID
+
1
]
=
const
char
*
const
wine_vtypes
[
VT_CLSID
+
1
]
=
{
"VT_EMPTY"
,
"VT_NULL"
,
"VT_I2"
,
"VT_I4"
,
"VT_R4"
,
"VT_R8"
,
"VT_CY"
,
"VT_DATE"
,
"VT_BSTR"
,
"VT_DISPATCH"
,
"VT_ERROR"
,
"VT_BOOL"
,
"VT_VARIANT"
,
"VT_UNKNOWN"
,
...
...
@@ -57,7 +57,7 @@ const char* wine_vtypes[VT_CLSID+1] =
"VT_STREAMED_OBJECT"
,
"VT_STORED_OBJECT"
,
"VT_BLOB_OBJECT"
,
"VT_CF"
,
"VT_CLSID"
};
const
char
*
wine_vflags
[
16
]
=
const
char
*
const
wine_vflags
[
16
]
=
{
""
,
"|VT_VECTOR"
,
...
...
@@ -3094,12 +3094,12 @@ HRESULT WINAPI VarAdd(LPVARIANT left, LPVARIANT right, LPVARIANT result)
vt_R8
,
vt_CY
,
vt_DATE
,
vt_DECIMAL
,
vt_DISPATCH
,
vt_NULL
,
vt_ERROR
};
/* Mapping from priority to variant type. Keep in sync with coerceprio! */
VARTYPE
prio2vt
[]
=
{
VT_EMPTY
,
VT_UI1
,
VT_I2
,
VT_I4
,
VT_I8
,
VT_BSTR
,
VT_R4
,
static
const
VARTYPE
prio2vt
[]
=
{
VT_EMPTY
,
VT_UI1
,
VT_I2
,
VT_I4
,
VT_I8
,
VT_BSTR
,
VT_R4
,
VT_R8
,
VT_CY
,
VT_DATE
,
VT_DECIMAL
,
VT_DISPATCH
,
VT_NULL
,
VT_ERROR
};
/* Mapping for coercion from input variant to priority of result variant. */
static
VARTYPE
coerce
[]
=
{
static
const
VARTYPE
coerce
[]
=
{
/* VT_EMPTY, VT_NULL, VT_I2, VT_I4, VT_R4 */
vt_EMPTY
,
vt_NULL
,
vt_I2
,
vt_I4
,
vt_R4
,
/* VT_R8, VT_CY, VT_DATE, VT_BSTR, VT_DISPATCH */
...
...
@@ -3285,11 +3285,11 @@ HRESULT WINAPI VarMul(LPVARIANT left, LPVARIANT right, LPVARIANT result)
enum
coerceprio
{
vt_UI1
=
0
,
vt_I2
,
vt_I4
,
vt_I8
,
vt_CY
,
vt_R4
,
vt_R8
,
vt_DECIMAL
,
vt_NULL
,
vt_ERROR
};
/* Mapping from priority to variant type. Keep in sync with coerceprio! */
VARTYPE
prio2vt
[]
=
{
VT_UI1
,
VT_I2
,
VT_I4
,
VT_I8
,
VT_CY
,
VT_R4
,
VT_R8
,
static
const
VARTYPE
prio2vt
[]
=
{
VT_UI1
,
VT_I2
,
VT_I4
,
VT_I8
,
VT_CY
,
VT_R4
,
VT_R8
,
VT_DECIMAL
,
VT_NULL
,
VT_ERROR
};
/* Mapping for coercion from input variant to priority of result variant. */
static
VARTYPE
coerce
[]
=
{
static
const
VARTYPE
coerce
[]
=
{
/* VT_EMPTY, VT_NULL, VT_I2, VT_I4, VT_R4 */
vt_UI1
,
vt_NULL
,
vt_I2
,
vt_I4
,
vt_R4
,
/* VT_R8, VT_CY, VT_DATE, VT_BSTR, VT_DISPATCH */
...
...
dlls/oleaut32/variant.h
View file @
601bf6ea
...
...
@@ -48,12 +48,12 @@
#define VTBIT_VARIANT (1 << VT_VARIANT)
#define VTBIT_15 (1 << 15)
/* no variant type with this number */
extern
const
char
*
wine_vtypes
[];
extern
const
char
*
const
wine_vtypes
[];
#define debugstr_vt(v) (((v)&VT_TYPEMASK) <= VT_CLSID ? wine_vtypes[((v)&VT_TYPEMASK)] : \
((v)&VT_TYPEMASK) == VT_BSTR_BLOB ? "VT_BSTR_BLOB": "Invalid")
#define debugstr_VT(v) (!(v) ? "(null)" : debugstr_vt(V_TYPE((v))))
extern
const
char
*
wine_vflags
[];
extern
const
char
*
const
wine_vflags
[];
#define debugstr_vf(v) (wine_vflags[((v)&VT_EXTRA_TYPE)>>12])
#define debugstr_VF(v) (!(v) ? "(null)" : debugstr_vf(V_EXTRA_TYPE(v)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment