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
3b96efc0
Commit
3b96efc0
authored
Sep 04, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added configure check for str[n]casecmp.
parent
23cadd37
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
23 deletions
+29
-23
configure
configure
+0
-0
configure.in
configure.in
+2
-1
config.h.in
include/config.h.in
+5
-2
winestring.h
include/wine/winestring.h
+2
-3
string.c
memory/string.c
+0
-17
port.c
misc/port.c
+20
-0
No files found.
configure
View file @
3b96efc0
This diff is collapsed.
Click to expand it.
configure.in
View file @
3b96efc0
...
...
@@ -487,8 +487,9 @@ AC_CHECK_FUNCS(\
rfork \
sendmsg \
sigaltstack \
strcasecmp \
strerror \
str
i
cmp \
str
ncase
cmp \
tcgetattr \
timegm \
usleep \
...
...
include/config.h.in
View file @
3b96efc0
...
...
@@ -160,11 +160,14 @@
/* Define if you have the sigaltstack function. */
#undef HAVE_SIGALTSTACK
/* Define if you have the strcasecmp function. */
#undef HAVE_STRCASECMP
/* Define if you have the strerror function. */
#undef HAVE_STRERROR
/* Define if you have the str
i
cmp function. */
#undef HAVE_STR
I
CMP
/* Define if you have the str
ncase
cmp function. */
#undef HAVE_STR
NCASE
CMP
/* Define if you have the tcgetattr function. */
#undef HAVE_TCGETATTR
...
...
include/wine/winestring.h
View file @
3b96efc0
...
...
@@ -3,14 +3,13 @@
#include "windef.h"
INT16
WINAPI
WideCharToLocal16
(
LPSTR
,
LPWSTR
,
INT16
);
INT
WINAPI
WideCharToLocal
(
LPSTR
,
LPWSTR
,
INT
);
INT16
WINAPI
LocalToWideChar16
(
LPWSTR
,
LPSTR
,
INT16
);
INT
WINAPI
LocalToWideChar
(
LPWSTR
,
LPSTR
,
INT
);
INT
WINAPI
lstrncmpiA
(
LPCSTR
,
LPCSTR
,
INT
);
LPWSTR
WINAPI
lstrcpyAtoW
(
LPWSTR
,
LPCSTR
);
LPSTR
WINAPI
lstrcpyWtoA
(
LPSTR
,
LPCWSTR
);
LPWSTR
WINAPI
lstrcpynAtoW
(
LPWSTR
,
LPCSTR
,
INT
);
LPSTR
WINAPI
lstrcpynWtoA
(
LPSTR
,
LPCWSTR
,
INT
);
#define lstrncmpiA strncasecmp
#endif
/* __WINE_WINE_WINESTRING_H */
memory/string.c
View file @
3b96efc0
...
...
@@ -389,23 +389,6 @@ INT WINAPI lstrlenW( LPCWSTR str )
/***********************************************************************
* lstrncmpi32A (Not a Windows API)
*/
INT
WINAPI
lstrncmpiA
(
LPCSTR
str1
,
LPCSTR
str2
,
INT
n
)
{
INT
res
;
TRACE
(
"strncmpi %s and %s for %d chars
\n
"
,
debugstr_an
(
str1
,
n
),
debugstr_an
(
str2
,
n
),
n
);
if
(
!
n
)
return
0
;
while
((
--
n
>
0
)
&&
*
str1
)
if
(
(
res
=
toupper
(
*
str1
++
)
-
toupper
(
*
str2
++
))
)
return
res
;
return
toupper
(
*
str1
)
-
toupper
(
*
str2
);
}
/***********************************************************************
* lstrcpyAtoW (Not a Windows API)
*/
LPWSTR
WINAPI
lstrcpyAtoW
(
LPWSTR
dst
,
LPCSTR
src
)
...
...
misc/port.c
View file @
3b96efc0
...
...
@@ -6,6 +6,7 @@
#include "config.h"
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
...
...
@@ -104,6 +105,25 @@ int clone( int (*fn)(void *), void *stack, int flags, void *arg )
#endif
/* !HAVE_CLONE && __linux__ */
#ifndef HAVE_STRCASECMP
int
strcasecmp
(
const
char
*
str1
,
const
char
*
str2
)
{
while
(
*
str1
&&
toupper
(
*
str1
)
==
toupper
(
*
str2
))
{
str1
++
;
str2
++
;
}
return
toupper
(
*
str1
)
-
toupper
(
*
str2
);
}
#endif
/* HAVE_STRCASECMP */
#ifndef HAVE_STRNCASECMP
int
strncasecmp
(
const
char
*
str1
,
const
char
*
str2
,
size_t
n
)
{
int
res
;
if
(
!
n
)
return
0
;
while
((
--
n
>
0
)
&&
*
str1
)
if
((
res
=
toupper
(
*
str1
++
)
-
toupper
(
*
str2
++
)))
return
res
;
return
toupper
(
*
str1
)
-
toupper
(
*
str2
);
}
#endif
/* HAVE_STRNCASECMP */
/**
* It looks like the openpty that comes with glibc in RedHat 5.0
* is buggy (second call returns what looks like a dup of 0 and 1
...
...
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