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
a6d57b0a
Commit
a6d57b0a
authored
Jun 19, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
baf14b1a
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
33 deletions
+23
-33
Makefile.in
dlls/riched20/Makefile.in
+1
-1
editor.c
dlls/riched20/editor.c
+7
-7
editor.h
dlls/riched20/editor.h
+1
-2
para.c
dlls/riched20/para.c
+1
-1
richole.c
dlls/riched20/richole.c
+3
-3
run.c
dlls/riched20/run.c
+1
-1
style.c
dlls/riched20/style.c
+1
-1
txthost.c
dlls/riched20/txthost.c
+0
-3
txtsrv.c
dlls/riched20/txtsrv.c
+0
-3
writer.c
dlls/riched20/writer.c
+8
-11
No files found.
dlls/riched20/Makefile.in
View file @
a6d57b0a
MODULE
=
riched20.dll
IMPORTLIB
=
riched20
IMPORTS
=
uuid usp10 ole32 oleaut32 imm32 user32 gdi32
EXTRADLLFLAGS
=
-Wl
,--image-base,0x7ac00000
EXTRADLLFLAGS
=
-
mno-cygwin
-
Wl
,--image-base,0x7ac00000
C_SRCS
=
\
caret.c
\
...
...
dlls/riched20/editor.c
View file @
a6d57b0a
...
...
@@ -1926,7 +1926,7 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH
while
(
pCurItem
&&
ME_CharCompare
(
*
get_text
(
&
pCurItem
->
member
.
run
,
nCurStart
+
nMatched
),
text
[
nMatched
],
(
flags
&
FR_MATCHCASE
)))
{
if
((
flags
&
FR_WHOLEWORD
)
&&
is
alnumW
(
wLastChar
))
if
((
flags
&
FR_WHOLEWORD
)
&&
is
walnum
(
wLastChar
))
break
;
nMatched
++
;
...
...
@@ -1950,7 +1950,7 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH
else
wNextChar
=
' '
;
if
(
is
alnumW
(
wNextChar
))
if
(
is
walnum
(
wNextChar
))
break
;
}
...
...
@@ -2010,7 +2010,7 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH
while
(
pCurItem
&&
ME_CharCompare
(
*
get_text
(
&
pCurItem
->
member
.
run
,
nCurEnd
-
nMatched
-
1
),
text
[
nLen
-
nMatched
-
1
],
(
flags
&
FR_MATCHCASE
)
))
{
if
((
flags
&
FR_WHOLEWORD
)
&&
is
alnumW
(
wLastChar
))
if
((
flags
&
FR_WHOLEWORD
)
&&
is
walnum
(
wLastChar
))
break
;
nMatched
++
;
...
...
@@ -2036,7 +2036,7 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH
else
wPrevChar
=
' '
;
if
(
is
alnumW
(
wPrevChar
))
if
(
is
walnum
(
wPrevChar
))
break
;
}
...
...
@@ -5284,7 +5284,7 @@ LRESULT WINAPI REExtendedRegisterClass(void)
return
result
;
}
static
int
wchar_comp
(
const
void
*
key
,
const
void
*
elem
)
static
int
__cdecl
wchar_comp
(
const
void
*
key
,
const
void
*
elem
)
{
return
*
(
const
WCHAR
*
)
key
-
*
(
const
WCHAR
*
)
elem
;
}
...
...
@@ -5333,7 +5333,7 @@ static BOOL ME_FindNextURLCandidate(ME_TextEditor *editor,
while
(
cursor
.
nOffset
<
run_len
)
{
c
=
str
[
cursor
.
nOffset
];
if
(
!
is
spaceW
(
c
)
&&
!
isurlneutral
(
c
))
if
(
!
is
wspace
(
c
)
&&
!
isurlneutral
(
c
))
{
*
candidate_min
=
cursor
;
candidateStarted
=
TRUE
;
...
...
@@ -5353,7 +5353,7 @@ static BOOL ME_FindNextURLCandidate(ME_TextEditor *editor,
while
(
cursor
.
nOffset
<
run_len
)
{
c
=
str
[
cursor
.
nOffset
];
if
(
is
spaceW
(
c
))
if
(
is
wspace
(
c
))
{
if
(
quoted
&&
c
!=
'\r'
)
{
...
...
dlls/riched20/editor.h
View file @
a6d57b0a
...
...
@@ -19,7 +19,6 @@
*/
#include "editstr.h"
#include "wine/unicode.h"
struct
_RTF_Info
;
...
...
@@ -105,7 +104,7 @@ static inline int ME_IsWSpace(WCHAR ch)
static
inline
int
ME_CharCompare
(
WCHAR
a
,
WCHAR
b
,
int
caseSensitive
)
{
return
caseSensitive
?
(
a
==
b
)
:
(
to
upperW
(
a
)
==
toupperW
(
b
));
return
caseSensitive
?
(
a
==
b
)
:
(
to
wupper
(
a
)
==
towupper
(
b
));
}
/* note: those two really return the first matching offset (starting from EOS)+1
...
...
dlls/riched20/para.c
View file @
a6d57b0a
...
...
@@ -312,7 +312,7 @@ static ME_String *para_num_get_str( ME_Paragraph *para, WORD num )
{
case
PFN_ARABIC
:
default:
p
+=
s
printfW
(
p
,
fmtW
,
num
);
p
+=
s
wprintf
(
p
,
20
,
fmtW
,
num
);
break
;
case
PFN_LCLETTER
:
...
...
dlls/riched20/richole.c
View file @
a6d57b0a
...
...
@@ -372,7 +372,7 @@ static inline BOOL is_equal_textfont_prop_value(enum textfont_prop_id propid, te
case
FONT_WEIGHT
:
return
left
->
l
==
right
->
l
;
case
FONT_NAME
:
return
!
strcmpW
(
left
->
str
,
right
->
str
);
return
!
wcscmp
(
left
->
str
,
right
->
str
);
case
FONT_POSITION
:
case
FONT_SIZE
:
case
FONT_SPACING
:
...
...
@@ -1688,7 +1688,7 @@ static HRESULT WINAPI ITextRange_fnSetText(ITextRange *me, BSTR str)
}
/* it's safer not to rely on stored BSTR length */
len
=
strlenW
(
str
);
len
=
l
strlenW
(
str
);
cursor
=
editor
->
pCursors
[
0
];
ME_CursorFromCharOfs
(
editor
,
This
->
start
,
&
editor
->
pCursors
[
0
]);
style
=
ME_GetInsertStyle
(
editor
,
0
);
...
...
@@ -4537,7 +4537,7 @@ static HRESULT WINAPI ITextSelection_fnSetText(ITextSelection *me, BSTR str)
return
CO_E_RELEASED
;
editor
=
This
->
reOle
->
editor
;
len
=
strlenW
(
str
);
len
=
l
strlenW
(
str
);
ME_GetSelectionOfs
(
editor
,
&
from
,
&
to
);
ME_ReplaceSel
(
editor
,
FALSE
,
str
,
len
);
...
...
dlls/riched20/run.c
View file @
a6d57b0a
...
...
@@ -862,7 +862,7 @@ void ME_GetCharFormat(ME_TextEditor *editor, const ME_Cursor *from,
{
if
(
!
(
tmp
.
dwMask
&
CFM_FACE
))
pFmt
->
dwMask
&=
~
CFM_FACE
;
else
if
(
lstrcmpW
(
pFmt
->
szFaceName
,
tmp
.
szFaceName
)
||
else
if
(
wcscmp
(
pFmt
->
szFaceName
,
tmp
.
szFaceName
)
||
pFmt
->
bPitchAndFamily
!=
tmp
.
bPitchAndFamily
)
pFmt
->
dwMask
&=
~
CFM_FACE
;
}
...
...
dlls/riched20/style.c
View file @
a6d57b0a
...
...
@@ -352,7 +352,7 @@ static BOOL ME_IsFontEqual(const LOGFONTW *p1, const LOGFONTW *p2)
{
if
(
memcmp
(
p1
,
p2
,
sizeof
(
LOGFONTW
)
-
sizeof
(
p1
->
lfFaceName
)))
return
FALSE
;
if
(
lstrcmpW
(
p1
->
lfFaceName
,
p2
->
lfFaceName
))
if
(
wcscmp
(
p1
->
lfFaceName
,
p2
->
lfFaceName
))
return
FALSE
;
return
TRUE
;
}
...
...
dlls/riched20/txthost.c
View file @
a6d57b0a
...
...
@@ -18,9 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#define COBJMACROS
#include "editor.h"
...
...
dlls/riched20/txtsrv.c
View file @
a6d57b0a
...
...
@@ -18,9 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#define COBJMACROS
#include "editor.h"
...
...
dlls/riched20/writer.c
View file @
a6d57b0a
...
...
@@ -18,9 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#define NONAMELESSUNION
#include "editor.h"
...
...
@@ -123,17 +120,17 @@ ME_StreamOutMove(ME_OutStream *pStream, const char *buffer, int len)
}
static
BOOL
static
BOOL
WINAPIV
ME_StreamOutPrint
(
ME_OutStream
*
pStream
,
const
char
*
format
,
...)
{
char
string
[
STREAMOUT_BUFFER_SIZE
];
/* This is going to be enough */
int
len
;
va_list
valist
;
__ms_
va_list
valist
;
va_start
(
valist
,
format
);
__ms_
va_start
(
valist
,
format
);
len
=
vsnprintf
(
string
,
sizeof
(
string
),
format
,
valist
);
va_end
(
valist
);
__ms_
va_end
(
valist
);
return
ME_StreamOutMove
(
pStream
,
string
,
len
);
}
...
...
@@ -245,7 +242,7 @@ static void add_font_to_fonttbl( ME_OutStream *stream, ME_Style *style )
{
for
(
i
=
0
;
i
<
stream
->
nFontTblLen
;
i
++
)
if
(
table
[
i
].
bCharSet
==
charset
&&
(
table
[
i
].
szFaceName
==
face
||
!
lstrcmpW
(
table
[
i
].
szFaceName
,
face
)))
&&
(
table
[
i
].
szFaceName
==
face
||
!
wcscmp
(
table
[
i
].
szFaceName
,
face
)))
break
;
if
(
i
==
stream
->
nFontTblLen
&&
i
<
STREAMOUT_FONTTBL_SIZE
)
...
...
@@ -270,7 +267,7 @@ static BOOL find_font_in_fonttbl( ME_OutStream *stream, CHARFORMAT2W *fmt, unsig
for
(
i
=
0
;
i
<
stream
->
nFontTblLen
;
i
++
)
{
if
(
facename
==
stream
->
fonttbl
[
i
].
szFaceName
||
!
lstrcmpW
(
facename
,
stream
->
fonttbl
[
i
].
szFaceName
))
||
!
wcscmp
(
facename
,
stream
->
fonttbl
[
i
].
szFaceName
))
if
(
!
(
fmt
->
dwMask
&
CFM_CHARSET
)
||
fmt
->
bCharSet
==
stream
->
fonttbl
[
i
].
bCharSet
)
{
...
...
@@ -841,7 +838,7 @@ ME_StreamOutRTFCharProps(ME_OutStream *pStream, CHARFORMAT2W *fmt)
}
}
if
(
strcmpW
(
old_fmt
->
szFaceName
,
fmt
->
szFaceName
)
||
if
(
wcscmp
(
old_fmt
->
szFaceName
,
fmt
->
szFaceName
)
||
old_fmt
->
bCharSet
!=
fmt
->
bCharSet
)
{
if
(
find_font_in_fonttbl
(
pStream
,
fmt
,
&
i
))
...
...
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