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
067648cd
Commit
067648cd
authored
Jun 29, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Reimplement the string functions to avoid depending on libc.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bc874585
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
206 additions
and
26 deletions
+206
-26
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+20
-0
string.c
dlls/ntdll/string.c
+186
-26
No files found.
dlls/ntdll/ntdll_misc.h
View file @
067648cd
...
...
@@ -152,6 +152,16 @@ void WINAPI LdrInitializeThunk(CONTEXT*,void**,ULONG_PTR,ULONG_PTR);
#endif
/* string functions */
void
*
__cdecl
NTDLL_memchr
(
const
void
*
ptr
,
int
c
,
size_t
n
);
char
*
__cdecl
NTDLL_strcat
(
char
*
dst
,
const
char
*
src
);
char
*
__cdecl
NTDLL_strchr
(
const
char
*
str
,
int
c
);
int
__cdecl
NTDLL_strcmp
(
const
char
*
str1
,
const
char
*
str2
);
char
*
__cdecl
NTDLL_strcpy
(
char
*
dst
,
const
char
*
src
);
size_t
__cdecl
NTDLL_strlen
(
const
char
*
str
);
char
*
__cdecl
NTDLL_strrchr
(
const
char
*
str
,
int
c
);
LONG
__cdecl
NTDLL_strtol
(
const
char
*
s
,
char
**
end
,
int
base
);
ULONG
__cdecl
NTDLL_strtoul
(
const
char
*
s
,
char
**
end
,
int
base
);
int
__cdecl
NTDLL_atoi
(
const
char
*
nptr
);
int
__cdecl
NTDLL_tolower
(
int
c
);
int
__cdecl
_stricmp
(
LPCSTR
str1
,
LPCSTR
str2
);
int
__cdecl
NTDLL__wcsicmp
(
LPCWSTR
str1
,
LPCWSTR
str2
);
...
...
@@ -179,6 +189,16 @@ ULONG __cdecl NTDLL_wcstoul( LPCWSTR s, LPWSTR *end, INT base );
int
WINAPIV
NTDLL_swprintf
(
WCHAR
*
str
,
const
WCHAR
*
format
,
...
);
int
WINAPIV
_snwprintf_s
(
WCHAR
*
str
,
SIZE_T
size
,
SIZE_T
len
,
const
WCHAR
*
format
,
...
);
#define memchr(p,c,n) NTDLL_memchr(p,c,n)
#define strcat(d,s) NTDLL_strcat(d,s)
#define strchr(s,c) NTDLL_strchr(s,c)
#define strcmp(s1,s2) NTDLL_strcmp(s1,s2)
#define strcpy(d,s) NTDLL_strcpy(d,s)
#define strlen(s) NTDLL_strlen(s)
#define strrchr(s,c) NTDLL_strrchr(s,c)
#define strtol(s,e,b) NTDLL_strtol(s,e,b)
#define strtoul(s,e,b) NTDLL_strtoul(s,e,b)
#define atoi(s) NTDLL_atoi(s)
#define wcsicmp(s1,s2) NTDLL__wcsicmp(s1,s2)
#define wcsnicmp(s1,s2,n) NTDLL__wcsnicmp(s1,s2,n)
#define towupper(c) NTDLL_towupper(c)
...
...
dlls/ntdll/string.c
View file @
067648cd
This diff is collapsed.
Click to expand it.
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