Commit 53f2cb83 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

mshtml: gcc 2.95 does not allow an array of undefined dimension in a struct. So…

mshtml: gcc 2.95 does not allow an array of undefined dimension in a struct. So fix dispex_static_data_t accordingly.
parent a4253791
...@@ -175,14 +175,15 @@ static const NodeImplVtbl HTMLCommentElementImplVtbl = { ...@@ -175,14 +175,15 @@ static const NodeImplVtbl HTMLCommentElementImplVtbl = {
HTMLCommentElement_destructor HTMLCommentElement_destructor
}; };
static const tid_t HTMLCommentElement_iface_tids[] = {
IHTMLCommentElement_tid,
0
};
static dispex_static_data_t HTMLCommentElement_dispex = { static dispex_static_data_t HTMLCommentElement_dispex = {
NULL, NULL,
DispHTMLCommentElement_tid, DispHTMLCommentElement_tid,
NULL, NULL,
{ HTMLCommentElement_iface_tids
IHTMLCommentElement_tid,
0
}
}; };
HTMLElement *HTMLCommentElement_Create(nsIDOMNode *nsnode) HTMLElement *HTMLCommentElement_Create(nsIDOMNode *nsnode)
......
...@@ -1490,17 +1490,18 @@ static const IDispatchExVtbl DocDispatchExVtbl = { ...@@ -1490,17 +1490,18 @@ static const IDispatchExVtbl DocDispatchExVtbl = {
DocDispatchEx_GetNameSpaceParent DocDispatchEx_GetNameSpaceParent
}; };
static dispex_static_data_t HTMLDocument_dispex = { static const tid_t HTMLDocument_iface_tids[] = {
NULL,
DispHTMLDocument_tid,
NULL,
{
IHTMLDocument2_tid, IHTMLDocument2_tid,
IHTMLDocument3_tid, IHTMLDocument3_tid,
IHTMLDocument4_tid, IHTMLDocument4_tid,
IHTMLDocument5_tid, IHTMLDocument5_tid,
0 0
} };
static dispex_static_data_t HTMLDocument_dispex = {
NULL,
DispHTMLDocument_tid,
NULL,
HTMLDocument_iface_tids
}; };
HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject) HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
......
...@@ -1326,17 +1326,18 @@ static const NodeImplVtbl HTMLElementImplVtbl = { ...@@ -1326,17 +1326,18 @@ static const NodeImplVtbl HTMLElementImplVtbl = {
HTMLElement_destructor HTMLElement_destructor
}; };
static dispex_static_data_t HTMLElement_dispex = { static const tid_t HTMLElement_iface_tids[] = {
NULL,
DispHTMLUnknownElement_tid,
NULL,
{
IHTMLDOMNode_tid, IHTMLDOMNode_tid,
IHTMLDOMNode2_tid, IHTMLDOMNode2_tid,
IHTMLElement_tid, IHTMLElement_tid,
IHTMLElement2_tid, IHTMLElement2_tid,
0 0
} };
static dispex_static_data_t HTMLElement_dispex = {
NULL,
DispHTMLUnknownElement_tid,
NULL,
HTMLElement_iface_tids
}; };
void HTMLElement_Init(HTMLElement *This) void HTMLElement_Init(HTMLElement *This)
...@@ -1769,14 +1770,15 @@ static const dispex_static_data_vtbl_t HTMLElementColection_dispex_vtbl = { ...@@ -1769,14 +1770,15 @@ static const dispex_static_data_vtbl_t HTMLElementColection_dispex_vtbl = {
HTMLElementCollection_invoke HTMLElementCollection_invoke
}; };
static const tid_t HTMLElementCollection_iface_tids[] = {
IHTMLElementCollection_tid,
0
};
static dispex_static_data_t HTMLElementCollection_dispex = { static dispex_static_data_t HTMLElementCollection_dispex = {
&HTMLElementColection_dispex_vtbl, &HTMLElementColection_dispex_vtbl,
DispHTMLElementCollection_tid, DispHTMLElementCollection_tid,
NULL, NULL,
{ HTMLElementCollection_iface_tids
IHTMLElementCollection_tid,
0
}
}; };
IHTMLElementCollection *create_all_collection(HTMLDOMNode *node) IHTMLElementCollection *create_all_collection(HTMLDOMNode *node)
......
...@@ -526,18 +526,19 @@ static const NodeImplVtbl HTMLImgElementImplVtbl = { ...@@ -526,18 +526,19 @@ static const NodeImplVtbl HTMLImgElementImplVtbl = {
HTMLImgElement_destructor HTMLImgElement_destructor
}; };
static dispex_static_data_t HTMLImgElement_dispex = { static const tid_t HTMLImgElement_iface_tids[] = {
NULL,
DispHTMLImg_tid,
NULL,
{
IHTMLDOMNode_tid, IHTMLDOMNode_tid,
IHTMLDOMNode2_tid, IHTMLDOMNode2_tid,
IHTMLElement_tid, IHTMLElement_tid,
IHTMLElement2_tid, IHTMLElement2_tid,
IHTMLImgElement_tid, IHTMLImgElement_tid,
0 0
} };
static dispex_static_data_t HTMLImgElement_dispex = {
NULL,
DispHTMLImg_tid,
NULL,
HTMLImgElement_iface_tids
}; };
HTMLElement *HTMLImgElement_Create(nsIDOMHTMLElement *nselem) HTMLElement *HTMLImgElement_Create(nsIDOMHTMLElement *nselem)
......
...@@ -1059,18 +1059,19 @@ static const NodeImplVtbl HTMLInputElementImplVtbl = { ...@@ -1059,18 +1059,19 @@ static const NodeImplVtbl HTMLInputElementImplVtbl = {
HTMLInputElement_destructor HTMLInputElement_destructor
}; };
static dispex_static_data_t HTMLInputElement_dispex = { static const tid_t HTMLInputElement_iface_tids[] = {
NULL,
DispHTMLInputElement_tid,
NULL,
{
IHTMLDOMNode_tid, IHTMLDOMNode_tid,
IHTMLDOMNode2_tid, IHTMLDOMNode2_tid,
IHTMLElement_tid, IHTMLElement_tid,
IHTMLElement2_tid, IHTMLElement2_tid,
IHTMLInputElement_tid, IHTMLInputElement_tid,
0 0
} };
static dispex_static_data_t HTMLInputElement_dispex = {
NULL,
DispHTMLInputElement_tid,
NULL,
HTMLInputElement_iface_tids
}; };
HTMLElement *HTMLInputElement_Create(nsIDOMHTMLElement *nselem) HTMLElement *HTMLInputElement_Create(nsIDOMHTMLElement *nselem)
......
...@@ -193,14 +193,15 @@ static const IHTMLDOMChildrenCollectionVtbl HTMLDOMChildrenCollectionVtbl = { ...@@ -193,14 +193,15 @@ static const IHTMLDOMChildrenCollectionVtbl HTMLDOMChildrenCollectionVtbl = {
HTMLDOMChildrenCollection_item HTMLDOMChildrenCollection_item
}; };
static const tid_t HTMLDOMChildrenCollection_iface_tids[] = {
IHTMLDOMChildrenCollection_tid,
0
};
static dispex_static_data_t HTMLDOMChildrenCollection_dispex = { static dispex_static_data_t HTMLDOMChildrenCollection_dispex = {
NULL, NULL,
DispDOMChildrenCollection_tid, DispDOMChildrenCollection_tid,
NULL, NULL,
{ HTMLDOMChildrenCollection_iface_tids
IHTMLDOMChildrenCollection_tid,
0
}
}; };
static IHTMLDOMChildrenCollection *create_child_collection(HTMLDocument *doc, nsIDOMNodeList *nslist) static IHTMLDOMChildrenCollection *create_child_collection(HTMLDocument *doc, nsIDOMNodeList *nslist)
......
...@@ -331,18 +331,19 @@ static const NodeImplVtbl HTMLOptionElementImplVtbl = { ...@@ -331,18 +331,19 @@ static const NodeImplVtbl HTMLOptionElementImplVtbl = {
HTMLOptionElement_destructor HTMLOptionElement_destructor
}; };
static dispex_static_data_t HTMLOptionElement_dispex = { static const tid_t HTMLOptionElement_iface_tids[] = {
NULL,
DispHTMLOptionElement_tid,
NULL,
{
IHTMLDOMNode_tid, IHTMLDOMNode_tid,
IHTMLDOMNode2_tid, IHTMLDOMNode2_tid,
IHTMLElement_tid, IHTMLElement_tid,
IHTMLElement2_tid, IHTMLElement2_tid,
IHTMLOptionElement_tid, IHTMLOptionElement_tid,
0 0
} };
static dispex_static_data_t HTMLOptionElement_dispex = {
NULL,
DispHTMLOptionElement_tid,
NULL,
HTMLOptionElement_iface_tids
}; };
HTMLElement *HTMLOptionElement_Create(nsIDOMHTMLElement *nselem) HTMLElement *HTMLOptionElement_Create(nsIDOMHTMLElement *nselem)
......
...@@ -1845,14 +1845,15 @@ static const IHTMLStyleVtbl HTMLStyleVtbl = { ...@@ -1845,14 +1845,15 @@ static const IHTMLStyleVtbl HTMLStyleVtbl = {
HTMLStyle_toString HTMLStyle_toString
}; };
static const tid_t HTMLStyle_iface_tids[] = {
IHTMLStyle_tid,
0
};
static dispex_static_data_t HTMLStyle_dispex = { static dispex_static_data_t HTMLStyle_dispex = {
NULL, NULL,
DispHTMLStyle_tid, DispHTMLStyle_tid,
NULL, NULL,
{ HTMLStyle_iface_tids
IHTMLStyle_tid,
0
}
}; };
IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle) IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
......
...@@ -185,16 +185,17 @@ static const NodeImplVtbl HTMLDOMTextNodeImplVtbl = { ...@@ -185,16 +185,17 @@ static const NodeImplVtbl HTMLDOMTextNodeImplVtbl = {
HTMLDOMTextNode_destructor HTMLDOMTextNode_destructor
}; };
static dispex_static_data_t HTMLDOMTextNode_dispex = { static const tid_t HTMLDOMTextNode_iface_tids[] = {
NULL,
DispHTMLDOMTextNode_tid,
0,
{
IHTMLDOMNode_tid, IHTMLDOMNode_tid,
IHTMLDOMNode2_tid, IHTMLDOMNode2_tid,
IHTMLDOMTextNode_tid, IHTMLDOMTextNode_tid,
0 0
} };
static dispex_static_data_t HTMLDOMTextNode_dispex = {
NULL,
DispHTMLDOMTextNode_tid,
0,
HTMLDOMTextNode_iface_tids
}; };
HTMLDOMNode *HTMLDOMTextNode_Create(nsIDOMNode *nsnode) HTMLDOMNode *HTMLDOMTextNode_Create(nsIDOMNode *nsnode)
......
...@@ -1107,15 +1107,16 @@ static const IDispatchExVtbl WindowDispExVtbl = { ...@@ -1107,15 +1107,16 @@ static const IDispatchExVtbl WindowDispExVtbl = {
WindowDispEx_GetNameSpaceParent WindowDispEx_GetNameSpaceParent
}; };
static const tid_t HTMLWindow_iface_tids[] = {
IHTMLWindow2_tid,
IHTMLWindow3_tid,
0
};
static dispex_static_data_t HTMLWindow_dispex = { static dispex_static_data_t HTMLWindow_dispex = {
NULL, NULL,
DispHTMLWindow2_tid, DispHTMLWindow2_tid,
NULL, NULL,
{ HTMLWindow_iface_tids
IHTMLWindow2_tid,
IHTMLWindow3_tid,
0
}
}; };
static const char wineConfig_func[] = static const char wineConfig_func[] =
......
...@@ -108,7 +108,7 @@ typedef struct { ...@@ -108,7 +108,7 @@ typedef struct {
const dispex_static_data_vtbl_t *vtbl; const dispex_static_data_vtbl_t *vtbl;
const tid_t disp_tid; const tid_t disp_tid;
dispex_data_t *data; dispex_data_t *data;
const tid_t iface_tids[]; const tid_t* const iface_tids;
} dispex_static_data_t; } dispex_static_data_t;
typedef struct { typedef struct {
......
...@@ -300,14 +300,15 @@ static const IOmNavigatorVtbl OmNavigatorVtbl = { ...@@ -300,14 +300,15 @@ static const IOmNavigatorVtbl OmNavigatorVtbl = {
OmNavigator_get_userProfile OmNavigator_get_userProfile
}; };
static const tid_t OmNavigator_iface_tids[] = {
IOmNavigator_tid,
0
};
static dispex_static_data_t OmNavigator_dispex = { static dispex_static_data_t OmNavigator_dispex = {
NULL, NULL,
IOmNavigator_tid, IOmNavigator_tid,
NULL, NULL,
{ OmNavigator_iface_tids
IOmNavigator_tid,
0
}
}; };
IOmNavigator *OmNavigator_Create(void) IOmNavigator *OmNavigator_Create(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment