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
afb374b7
Commit
afb374b7
authored
Feb 02, 2010
by
Trey Hunner
Committed by
Alexandre Julliard
Feb 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Add support for 'if /i'.
parent
1b51c21f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
builtins.c
programs/cmd/builtins.c
+7
-1
No files found.
programs/cmd/builtins.c
View file @
afb374b7
...
...
@@ -1277,6 +1277,7 @@ void WCMD_if (WCHAR *p, CMD_LIST **cmdList) {
static
const
WCHAR
existW
[]
=
{
'e'
,
'x'
,
'i'
,
's'
,
't'
,
'\0'
};
static
const
WCHAR
defdW
[]
=
{
'd'
,
'e'
,
'f'
,
'i'
,
'n'
,
'e'
,
'd'
,
'\0'
};
static
const
WCHAR
eqeqW
[]
=
{
'='
,
'='
,
'\0'
};
static
const
WCHAR
parmI
[]
=
{
'/'
,
'I'
,
'\0'
};
if
(
!
lstrcmpiW
(
param1
,
notW
))
{
negate
=
1
;
...
...
@@ -1305,7 +1306,12 @@ void WCMD_if (WCHAR *p, CMD_LIST **cmdList) {
}
else
if
((
s
=
strstrW
(
p
,
eqeqW
)))
{
s
+=
2
;
if
(
!
lstrcmpiW
(
condition
,
WCMD_parameter
(
s
,
0
,
NULL
)))
test
=
1
;
if
(
strstrW
(
quals
,
parmI
)
==
NULL
)
{
if
(
!
lstrcmpW
(
condition
,
WCMD_parameter
(
s
,
0
,
NULL
)))
test
=
1
;
}
else
{
if
(
!
lstrcmpiW
(
condition
,
WCMD_parameter
(
s
,
0
,
NULL
)))
test
=
1
;
}
WCMD_parameter
(
s
,
1
,
&
command
);
}
else
{
...
...
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