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
51b05c72
Commit
51b05c72
authored
Nov 29, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Use boolean types for boolean variables.
parent
2820ed97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
wcmdmain.c
programs/cmd/wcmdmain.c
+12
-12
No files found.
programs/cmd/wcmdmain.c
View file @
51b05c72
...
...
@@ -36,7 +36,7 @@ HINSTANCE hinst;
DWORD
errorlevel
;
int
defaultColor
=
7
;
BOOL
echo_mode
=
TRUE
;
static
int
opt_c
,
opt_k
,
opt_s
;
static
BOOL
opt_c
,
opt_k
,
opt_s
;
const
WCHAR
newline
[]
=
{
'\r'
,
'\n'
,
'\0'
};
const
WCHAR
space
[]
=
{
' '
,
'\0'
};
WCHAR
anykey
[
100
];
...
...
@@ -1154,7 +1154,7 @@ void WCMD_run_program (WCHAR *command, int called) {
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
&&
command
[
0
]
==
'\"'
)
{
/* strip first and last quote WCHARacters and try again */
WCMD_strip_quotes
(
command
);
opt_s
=
1
;
opt_s
=
TRUE
;
WCMD_run_program
(
command
,
called
);
return
;
}
...
...
@@ -2221,7 +2221,7 @@ int wmain (int argc, WCHAR *argvW[])
WCHAR
*
cmd
=
NULL
;
WCHAR
string
[
1024
];
WCHAR
envvar
[
4
];
int
opt_q
;
BOOL
opt_q
;
int
opt_t
=
0
;
static
const
WCHAR
promptW
[]
=
{
'P'
,
'R'
,
'O'
,
'M'
,
'P'
,
'T'
,
'\0'
};
static
const
WCHAR
defaultpromptW
[]
=
{
'$'
,
'P'
,
'$'
,
'G'
,
'\0'
};
...
...
@@ -2237,7 +2237,7 @@ int wmain (int argc, WCHAR *argvW[])
strcpyW
(
anykey
,
WCMD_LoadMessage
(
WCMD_ANYKEY
));
args
=
argc
;
opt_c
=
opt_k
=
opt_q
=
opt_s
=
0
;
opt_c
=
opt_k
=
opt_q
=
opt_s
=
FALSE
;
while
(
args
>
0
)
{
WCHAR
c
;
...
...
@@ -2250,13 +2250,13 @@ int wmain (int argc, WCHAR *argvW[])
c
=
(
*
argvW
)[
1
];
if
(
tolowerW
(
c
)
==
'c'
)
{
opt_c
=
1
;
opt_c
=
TRUE
;
}
else
if
(
tolowerW
(
c
)
==
'q'
)
{
opt_q
=
1
;
opt_q
=
TRUE
;
}
else
if
(
tolowerW
(
c
)
==
'k'
)
{
opt_k
=
1
;
opt_k
=
TRUE
;
}
else
if
(
tolowerW
(
c
)
==
's'
)
{
opt_s
=
1
;
opt_s
=
TRUE
;
}
else
if
(
tolowerW
(
c
)
==
'a'
)
{
unicodePipes
=
FALSE
;
}
else
if
(
tolowerW
(
c
)
==
'u'
)
{
...
...
@@ -2335,20 +2335,20 @@ int wmain (int argc, WCHAR *argvW[])
}
if
(
qcount
!=
2
)
opt_s
=
1
;
opt_s
=
TRUE
;
/* check argvW[0] for a space and invalid characters */
if
(
!
opt_s
)
{
opt_s
=
1
;
opt_s
=
TRUE
;
p
=*
argvW
;
while
(
*
p
!=
'\0'
)
{
if
(
*
p
==
'&'
||
*
p
==
'<'
||
*
p
==
'>'
||
*
p
==
'('
||
*
p
==
')'
||
*
p
==
'@'
||
*
p
==
'^'
||
*
p
==
'|'
)
{
opt_s
=
1
;
opt_s
=
TRUE
;
break
;
}
if
(
*
p
==
' '
)
opt_s
=
0
;
opt_s
=
FALSE
;
p
++
;
}
}
...
...
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