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
78cf65ab
Commit
78cf65ab
authored
Dec 18, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Dec 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite: Constify some character strings.
parent
43d6a45c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
reader.c
dlls/xmllite/reader.c
+6
-6
No files found.
dlls/xmllite/reader.c
View file @
78cf65ab
...
...
@@ -729,8 +729,8 @@ static void readerinput_grow(xmlreaderinput *readerinput, int length)
static
inline
BOOL
readerinput_is_utf8
(
xmlreaderinput
*
readerinput
)
{
static
char
startA
[]
=
{
'<'
,
'?'
};
static
char
commentA
[]
=
{
'<'
,
'!'
};
static
c
onst
c
har
startA
[]
=
{
'<'
,
'?'
};
static
c
onst
c
har
commentA
[]
=
{
'<'
,
'!'
};
encoded_buffer
*
buffer
=
&
readerinput
->
buffer
->
encoded
;
unsigned
char
*
ptr
=
(
unsigned
char
*
)
buffer
->
data
;
...
...
@@ -749,10 +749,10 @@ static inline BOOL readerinput_is_utf8(xmlreaderinput *readerinput)
static
HRESULT
readerinput_detectencoding
(
xmlreaderinput
*
readerinput
,
xml_encoding
*
enc
)
{
encoded_buffer
*
buffer
=
&
readerinput
->
buffer
->
encoded
;
static
WCHAR
startW
[]
=
{
'<'
,
'?'
};
static
WCHAR
commentW
[]
=
{
'<'
,
'!'
};
static
char
utf8bom
[]
=
{
0xef
,
0xbb
,
0xbf
};
static
char
utf16lebom
[]
=
{
0xff
,
0xfe
};
static
const
WCHAR
startW
[]
=
{
'<'
,
'?'
};
static
const
WCHAR
commentW
[]
=
{
'<'
,
'!'
};
static
c
onst
c
har
utf8bom
[]
=
{
0xef
,
0xbb
,
0xbf
};
static
c
onst
c
har
utf16lebom
[]
=
{
0xff
,
0xfe
};
*
enc
=
XmlEncoding_Unknown
;
...
...
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