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
cd9451c4
Commit
cd9451c4
authored
Sep 25, 2012
by
Jason Edmeades
Committed by
Alexandre Julliard
Sep 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Display 'set' sort ordering correctly.
parent
a810e41e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
builtins.c
programs/cmd/builtins.c
+4
-1
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+2
-2
No files found.
programs/cmd/builtins.c
View file @
cd9451c4
...
...
@@ -2234,13 +2234,16 @@ void WCMD_setshow_date (void) {
/****************************************************************************
* WCMD_compare
* Note: Native displays 'fred' before 'fred ', so need to only compare up to
* the equals sign.
*/
static
int
WCMD_compare
(
const
void
*
a
,
const
void
*
b
)
{
int
r
;
const
WCHAR
*
const
*
str_a
=
a
,
*
const
*
str_b
=
b
;
static
const
WCHAR
eqW
[]
=
{
'='
,
'\0'
};
r
=
CompareStringW
(
LOCALE_USER_DEFAULT
,
NORM_IGNORECASE
|
SORT_STRINGSORT
,
*
str_a
,
-
1
,
*
str_b
,
-
1
);
*
str_a
,
strcspnW
(
*
str_a
,
eqW
),
*
str_b
,
strcspnW
(
*
str_b
,
eqW
)
);
if
(
r
==
CSTR_LESS_THAN
)
return
-
1
;
if
(
r
==
CSTR_GREATER_THAN
)
return
1
;
return
0
;
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
cd9451c4
...
...
@@ -235,8 +235,8 @@ FOOBAR = baz
baz2
0
bar
@todo_wine@
FOOBAR= bar
@todo_wine@
FOOBAR = baz2
FOOBAR= bar
FOOBAR = baz2
FOOBAR = baz2
FOOBAR not defined
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