Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4983a663
Commit
4983a663
authored
Mar 15, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Get rid of remaining PRBool usages.
parent
d1a116fa
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
30 additions
and
31 deletions
+30
-31
binding.h
dlls/mshtml/binding.h
+1
-1
editor.c
dlls/mshtml/editor.c
+7
-7
htmlevent.c
dlls/mshtml/htmlevent.c
+3
-3
htmlinput.c
dlls/mshtml/htmlinput.c
+3
-3
htmlnode.c
dlls/mshtml/htmlnode.c
+1
-1
htmloption.c
dlls/mshtml/htmloption.c
+1
-1
htmlscript.c
dlls/mshtml/htmlscript.c
+1
-1
htmlselect.c
dlls/mshtml/htmlselect.c
+1
-1
htmltextarea.c
dlls/mshtml/htmltextarea.c
+1
-1
mutation.c
dlls/mshtml/mutation.c
+4
-4
navigate.c
dlls/mshtml/navigate.c
+1
-1
nsiface.idl
dlls/mshtml/nsiface.idl
+0
-1
selection.c
dlls/mshtml/selection.c
+1
-1
txtrange.c
dlls/mshtml/txtrange.c
+5
-5
No files found.
dlls/mshtml/binding.h
View file @
4983a663
...
...
@@ -101,7 +101,7 @@ typedef struct {
HRESULT
set_http_header
(
struct
list
*
,
const
WCHAR
*
,
int
,
const
WCHAR
*
,
int
)
DECLSPEC_HIDDEN
;
HRESULT
create_redirect_nschannel
(
const
WCHAR
*
,
nsChannel
*
,
nsChannel
**
)
DECLSPEC_HIDDEN
;
nsresult
on_start_uri_open
(
NSContainer
*
,
nsIURI
*
,
PRB
ool
*
)
DECLSPEC_HIDDEN
;
nsresult
on_start_uri_open
(
NSContainer
*
,
nsIURI
*
,
cpp_b
ool
*
)
DECLSPEC_HIDDEN
;
HRESULT
hlink_frame_navigate
(
HTMLDocument
*
,
LPCWSTR
,
nsChannel
*
,
DWORD
,
BOOL
*
)
DECLSPEC_HIDDEN
;
HRESULT
create_doc_uri
(
HTMLWindow
*
,
WCHAR
*
,
nsWineURI
**
)
DECLSPEC_HIDDEN
;
HRESULT
load_nsuri
(
HTMLWindow
*
,
nsWineURI
*
,
nsChannelBSC
*
,
DWORD
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/editor.c
View file @
4983a663
...
...
@@ -147,7 +147,7 @@ static nsresult get_ns_command_state(NSContainer *This, const char *cmd, nsIComm
static
DWORD
query_ns_edit_status
(
HTMLDocument
*
This
,
const
char
*
nscmd
)
{
nsICommandParams
*
nsparam
;
PRB
ool
b
=
FALSE
;
cpp_b
ool
b
=
FALSE
;
if
(
This
->
doc_obj
->
usermode
!=
EDITMODE
||
This
->
window
->
readystate
<
READYSTATE_INTERACTIVE
)
return
OLECMDF_SUPPORTED
;
...
...
@@ -183,7 +183,7 @@ static DWORD query_align_status(HTMLDocument *This, const WCHAR *align)
{
DWORD
ret
=
OLECMDF_SUPPORTED
|
OLECMDF_ENABLED
;
nsAString
justify_str
;
PRB
ool
b
;
cpp_b
ool
b
;
nsresult
nsres
;
if
(
This
->
doc_obj
->
usermode
!=
EDITMODE
||
This
->
window
->
readystate
<
READYSTATE_INTERACTIVE
)
...
...
@@ -214,7 +214,7 @@ static nsISelection *get_ns_selection(HTMLDocument *This)
static
void
remove_child_attr
(
nsIDOMElement
*
elem
,
LPCWSTR
tag
,
nsAString
*
attr_str
)
{
PRB
ool
has_children
;
cpp_b
ool
has_children
;
PRUint32
child_cnt
,
i
;
nsIDOMNode
*
child_node
;
nsIDOMNodeList
*
node_list
;
...
...
@@ -330,7 +330,7 @@ static void get_font_size(HTMLDocument *This, WCHAR *ret)
static
void
set_font_size
(
HTMLDocument
*
This
,
LPCWSTR
size
)
{
nsISelection
*
nsselection
;
PRB
ool
collapsed
;
cpp_b
ool
collapsed
;
nsIDOMHTMLElement
*
elem
;
nsIDOMRange
*
range
;
PRInt32
range_cnt
=
0
;
...
...
@@ -389,7 +389,7 @@ static void set_font_size(HTMLDocument *This, LPCWSTR size)
static
void
handle_arrow_key
(
HTMLDocument
*
This
,
nsIDOMKeyEvent
*
event
,
const
char
*
const
cmds
[
4
])
{
int
i
=
0
;
PRB
ool
b
;
cpp_b
ool
b
;
nsIDOMKeyEvent_GetCtrlKey
(
event
,
&
b
);
if
(
b
)
...
...
@@ -1127,7 +1127,7 @@ static HRESULT exec_hyperlink(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
nsAString
href_str
,
ns_url
;
nsIHTMLEditor
*
html_editor
;
nsIDOMHTMLElement
*
anchor_elem
;
PRB
ool
insert_link_at_caret
;
cpp_b
ool
insert_link_at_caret
;
nsISelection
*
nsselection
;
BSTR
url
=
NULL
;
INT
ret
;
...
...
@@ -1253,7 +1253,7 @@ void init_editor(HTMLDocument *This)
HRESULT
editor_is_dirty
(
HTMLDocument
*
This
)
{
PRB
ool
modified
;
cpp_b
ool
modified
;
if
(
!
This
->
doc_obj
->
nscontainer
||
!
This
->
doc_obj
->
nscontainer
->
editor
)
return
S_FALSE
;
...
...
dlls/mshtml/htmlevent.c
View file @
4983a663
...
...
@@ -345,7 +345,7 @@ static HRESULT WINAPI HTMLEventObj_get_srcElement(IHTMLEventObj *iface, IHTMLEle
static
HRESULT
WINAPI
HTMLEventObj_get_altKey
(
IHTMLEventObj
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLEventObj
*
This
=
impl_from_IHTMLEventObj
(
iface
);
PRB
ool
ret
=
FALSE
;
cpp_b
ool
ret
=
FALSE
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -375,7 +375,7 @@ static HRESULT WINAPI HTMLEventObj_get_altKey(IHTMLEventObj *iface, VARIANT_BOOL
static
HRESULT
WINAPI
HTMLEventObj_get_ctrlKey
(
IHTMLEventObj
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLEventObj
*
This
=
impl_from_IHTMLEventObj
(
iface
);
PRB
ool
ret
=
FALSE
;
cpp_b
ool
ret
=
FALSE
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -405,7 +405,7 @@ static HRESULT WINAPI HTMLEventObj_get_ctrlKey(IHTMLEventObj *iface, VARIANT_BOO
static
HRESULT
WINAPI
HTMLEventObj_get_shiftKey
(
IHTMLEventObj
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLEventObj
*
This
=
impl_from_IHTMLEventObj
(
iface
);
PRB
ool
ret
=
FALSE
;
cpp_b
ool
ret
=
FALSE
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
dlls/mshtml/htmlinput.c
View file @
4983a663
...
...
@@ -262,7 +262,7 @@ static HRESULT WINAPI HTMLInputElement_put_disabled(IHTMLInputElement *iface, VA
static
HRESULT
WINAPI
HTMLInputElement_get_disabled
(
IHTMLInputElement
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLInputElement
*
This
=
impl_from_IHTMLInputElement
(
iface
);
PRB
ool
disabled
=
FALSE
;
cpp_b
ool
disabled
=
FALSE
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -419,7 +419,7 @@ static HRESULT WINAPI HTMLInputElement_put_defaultChecked(IHTMLInputElement *ifa
static
HRESULT
WINAPI
HTMLInputElement_get_defaultChecked
(
IHTMLInputElement
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLInputElement
*
This
=
impl_from_IHTMLInputElement
(
iface
);
PRB
ool
default_checked
=
FALSE
;
cpp_b
ool
default_checked
=
FALSE
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -453,7 +453,7 @@ static HRESULT WINAPI HTMLInputElement_put_checked(IHTMLInputElement *iface, VAR
static
HRESULT
WINAPI
HTMLInputElement_get_checked
(
IHTMLInputElement
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLInputElement
*
This
=
impl_from_IHTMLInputElement
(
iface
);
PRB
ool
checked
;
cpp_b
ool
checked
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
dlls/mshtml/htmlnode.c
View file @
4983a663
...
...
@@ -436,7 +436,7 @@ static HRESULT WINAPI HTMLDOMNode_get_parentNode(IHTMLDOMNode *iface, IHTMLDOMNo
static
HRESULT
WINAPI
HTMLDOMNode_hasChildNodes
(
IHTMLDOMNode
*
iface
,
VARIANT_BOOL
*
fChildren
)
{
HTMLDOMNode
*
This
=
impl_from_IHTMLDOMNode
(
iface
);
PRB
ool
has_child
=
FALSE
;
cpp_b
ool
has_child
=
FALSE
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
fChildren
);
...
...
dlls/mshtml/htmloption.c
View file @
4983a663
...
...
@@ -117,7 +117,7 @@ static HRESULT WINAPI HTMLOptionElement_put_selected(IHTMLOptionElement *iface,
static
HRESULT
WINAPI
HTMLOptionElement_get_selected
(
IHTMLOptionElement
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLOptionElement
*
This
=
impl_from_IHTMLOptionElement
(
iface
);
PRB
ool
selected
;
cpp_b
ool
selected
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
dlls/mshtml/htmlscript.c
View file @
4983a663
...
...
@@ -180,7 +180,7 @@ static HRESULT WINAPI HTMLScriptElement_put_defer(IHTMLScriptElement *iface, VAR
static
HRESULT
WINAPI
HTMLScriptElement_get_defer
(
IHTMLScriptElement
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLScriptElement
*
This
=
impl_from_IHTMLScriptElement
(
iface
);
PRB
ool
defer
=
FALSE
;
cpp_b
ool
defer
=
FALSE
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
dlls/mshtml/htmlselect.c
View file @
4983a663
...
...
@@ -349,7 +349,7 @@ static HRESULT WINAPI HTMLSelectElement_put_disabled(IHTMLSelectElement *iface,
static
HRESULT
WINAPI
HTMLSelectElement_get_disabled
(
IHTMLSelectElement
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLSelectElement
*
This
=
impl_from_IHTMLSelectElement
(
iface
);
PRB
ool
disabled
=
FALSE
;
cpp_b
ool
disabled
=
FALSE
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
dlls/mshtml/htmltextarea.c
View file @
4983a663
...
...
@@ -291,7 +291,7 @@ static HRESULT WINAPI HTMLTextAreaElement_put_readOnly(IHTMLTextAreaElement *ifa
static
HRESULT
WINAPI
HTMLTextAreaElement_get_readOnly
(
IHTMLTextAreaElement
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLTextAreaElement
*
This
=
impl_from_IHTMLTextAreaElement
(
iface
);
PRB
ool
b
;
cpp_b
ool
b
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
dlls/mshtml/mutation.c
View file @
4983a663
...
...
@@ -562,17 +562,17 @@ static void NSAPI nsDocumentObserver_DocumentStatesChanged(nsIDocumentObserver *
}
static
void
NSAPI
nsDocumentObserver_StyleSheetAdded
(
nsIDocumentObserver
*
iface
,
nsIDocument
*
aDocument
,
nsIStyleSheet
*
aStyleSheet
,
PRB
ool
aDocumentSheet
)
nsIStyleSheet
*
aStyleSheet
,
cpp_b
ool
aDocumentSheet
)
{
}
static
void
NSAPI
nsDocumentObserver_StyleSheetRemoved
(
nsIDocumentObserver
*
iface
,
nsIDocument
*
aDocument
,
nsIStyleSheet
*
aStyleSheet
,
PRB
ool
aDocumentSheet
)
nsIStyleSheet
*
aStyleSheet
,
cpp_b
ool
aDocumentSheet
)
{
}
static
void
NSAPI
nsDocumentObserver_StyleSheetApplicableStateChanged
(
nsIDocumentObserver
*
iface
,
nsIDocument
*
aDocument
,
nsIStyleSheet
*
aStyleSheet
,
PRB
ool
aApplicable
)
nsIDocument
*
aDocument
,
nsIStyleSheet
*
aStyleSheet
,
cpp_b
ool
aApplicable
)
{
}
...
...
@@ -635,7 +635,7 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
}
static
void
NSAPI
nsDocumentObserver_AttemptToExecuteScript
(
nsIDocumentObserver
*
iface
,
nsIContent
*
aContent
,
nsIParser
*
aParser
,
PRB
ool
*
aBlock
)
nsIParser
*
aParser
,
cpp_b
ool
*
aBlock
)
{
HTMLDocumentNode
*
This
=
impl_from_nsIDocumentObserver
(
iface
);
nsIDOMHTMLScriptElement
*
nsscript
;
...
...
dlls/mshtml/navigate.c
View file @
4983a663
...
...
@@ -186,7 +186,7 @@ static nsresult NSAPI nsInputStream_ReadSegments(nsIInputStream *iface,
return
nsres
;
}
static
nsresult
NSAPI
nsInputStream_IsNonBlocking
(
nsIInputStream
*
iface
,
PRB
ool
*
_retval
)
static
nsresult
NSAPI
nsInputStream_IsNonBlocking
(
nsIInputStream
*
iface
,
cpp_b
ool
*
_retval
)
{
nsProtocolStream
*
This
=
impl_from_nsIInputStream
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
_retval
);
...
...
dlls/mshtml/nsiface.idl
View file @
4983a663
...
...
@@ -55,7 +55,6 @@ typedef PRUint32 nsLoadFlags;
typedef
unsigned
char
cpp_bool
;
#
define
bool
cpp_bool
cpp_quote
(
"#define PRBool cpp_bool"
)
/*
FIXME
*/
typedef
struct
{
void
*
v
;
...
...
dlls/mshtml/selection.c
View file @
4983a663
...
...
@@ -204,7 +204,7 @@ static HRESULT WINAPI HTMLSelectionObject_clear(IHTMLSelectionObject *iface)
static
HRESULT
WINAPI
HTMLSelectionObject_get_type
(
IHTMLSelectionObject
*
iface
,
BSTR
*
p
)
{
HTMLSelectionObject
*
This
=
impl_from_IHTMLSelectionObject
(
iface
);
PRB
ool
collapsed
=
TRUE
;
cpp_b
ool
collapsed
=
TRUE
;
static
const
WCHAR
wszNone
[]
=
{
'N'
,
'o'
,
'n'
,
'e'
,
0
};
static
const
WCHAR
wszText
[]
=
{
'T'
,
'e'
,
'x'
,
't'
,
0
};
...
...
dlls/mshtml/txtrange.c
View file @
4983a663
...
...
@@ -397,7 +397,7 @@ static void get_cur_pos(HTMLTxtRange *This, BOOL start, dompos_t *pos)
pos
->
p
=
NULL
;
if
(
!
start
)
{
PRB
ool
collapsed
;
cpp_b
ool
collapsed
;
nsIDOMRange_GetCollapsed
(
This
->
nsrange
,
&
collapsed
);
start
=
collapsed
;
}
...
...
@@ -485,7 +485,7 @@ static void range_to_string(HTMLTxtRange *This, wstrbuf_t *buf)
{
nsIDOMNode
*
iter
,
*
tmp
;
dompos_t
start_pos
,
end_pos
;
PRB
ool
collapsed
;
cpp_b
ool
collapsed
;
nsIDOMRange_GetCollapsed
(
This
->
nsrange
,
&
collapsed
);
if
(
collapsed
)
{
...
...
@@ -1324,7 +1324,7 @@ static HRESULT WINAPI HTMLTxtRange_expand(IHTMLTxtRange *iface, BSTR Unit, VARIA
switch
(
unit
)
{
case
RU_WORD
:
{
dompos_t
end_pos
,
start_pos
,
new_start_pos
,
new_end_pos
;
PRB
ool
collapsed
;
cpp_b
ool
collapsed
;
nsIDOMRange_GetCollapsed
(
This
->
nsrange
,
&
collapsed
);
...
...
@@ -1468,7 +1468,7 @@ static HRESULT WINAPI HTMLTxtRange_moveStart(IHTMLTxtRange *iface, BSTR Unit,
switch
(
unit
)
{
case
RU_CHAR
:
{
dompos_t
start_pos
,
end_pos
,
new_pos
;
PRB
ool
collapsed
;
cpp_b
ool
collapsed
;
get_cur_pos
(
This
,
TRUE
,
&
start_pos
);
get_cur_pos
(
This
,
FALSE
,
&
end_pos
);
...
...
@@ -1519,7 +1519,7 @@ static HRESULT WINAPI HTMLTxtRange_moveEnd(IHTMLTxtRange *iface, BSTR Unit,
switch
(
unit
)
{
case
RU_CHAR
:
{
dompos_t
start_pos
,
end_pos
,
new_pos
;
PRB
ool
collapsed
;
cpp_b
ool
collapsed
;
get_cur_pos
(
This
,
TRUE
,
&
start_pos
);
get_cur_pos
(
This
,
FALSE
,
&
end_pos
);
...
...
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