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
d19455e8
Commit
d19455e8
authored
Oct 19, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Rename WCMD_opt_s_strip_quotes function.
parent
1b4b274f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
builtins.c
programs/cmd/builtins.c
+2
-2
wcmd.h
programs/cmd/wcmd.h
+1
-1
wcmdmain.c
programs/cmd/wcmdmain.c
+4
-4
No files found.
programs/cmd/builtins.c
View file @
d19455e8
...
...
@@ -2229,7 +2229,7 @@ void WCMD_setshow_env (WCHAR *s) {
s
+=
2
;
while
(
*
s
&&
(
*
s
==
' '
||
*
s
==
'\t'
))
s
++
;
if
(
*
s
==
'\"'
)
WCMD_
opt_s_
strip_quotes
(
s
);
WCMD_strip_quotes
(
s
);
/* If no parameter, or no '=' sign, return an error */
if
(
!
(
*
s
)
||
((
p
=
strchrW
(
s
,
'='
))
==
NULL
))
{
...
...
@@ -2255,7 +2255,7 @@ void WCMD_setshow_env (WCHAR *s) {
DWORD
gle
;
if
(
*
s
==
'\"'
)
WCMD_
opt_s_
strip_quotes
(
s
);
WCMD_strip_quotes
(
s
);
p
=
strchrW
(
s
,
'='
);
if
(
p
==
NULL
)
{
env
=
GetEnvironmentStringsW
();
...
...
programs/cmd/wcmd.h
View file @
d19455e8
...
...
@@ -108,7 +108,7 @@ BOOL WCMD_keyword_ws_found(const WCHAR *keyword, int len, const WCHAR *ptr);
void
WCMD_HandleTildaModifiers
(
WCHAR
**
start
,
const
WCHAR
*
forVariable
,
const
WCHAR
*
forValue
,
BOOL
justFors
);
void
WCMD_splitpath
(
const
WCHAR
*
path
,
WCHAR
*
drv
,
WCHAR
*
dir
,
WCHAR
*
name
,
WCHAR
*
ext
);
void
WCMD_
opt_s_
strip_quotes
(
WCHAR
*
cmd
);
void
WCMD_strip_quotes
(
WCHAR
*
cmd
);
WCHAR
*
WCMD_LoadMessage
(
UINT
id
);
WCHAR
*
WCMD_strdupW
(
const
WCHAR
*
input
);
void
WCMD_strsubstW
(
WCHAR
*
start
,
const
WCHAR
*
next
,
const
WCHAR
*
insert
,
int
len
);
...
...
programs/cmd/wcmdmain.c
View file @
d19455e8
...
...
@@ -506,11 +506,11 @@ BOOL WCMD_keyword_ws_found(const WCHAR *keyword, int len, const WCHAR *ptr) {
}
/*************************************************************************
* WCMD_
opt_s_
strip_quotes
* WCMD_strip_quotes
*
* Remove first and last quote WCHARacters, preserving all other text
*/
void
WCMD_
opt_s_
strip_quotes
(
WCHAR
*
cmd
)
{
void
WCMD_strip_quotes
(
WCHAR
*
cmd
)
{
WCHAR
*
src
=
cmd
+
1
,
*
dest
=
cmd
,
*
lastq
=
NULL
;
while
((
*
dest
=*
src
)
!=
'\0'
)
{
if
(
*
src
==
'\"'
)
...
...
@@ -1204,7 +1204,7 @@ void WCMD_run_program (WCHAR *command, int called) {
if
((
opt_c
||
opt_k
)
&&
!
opt_s
&&
!
status
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
&&
command
[
0
]
==
'\"'
)
{
/* strip first and last quote WCHARacters and try again */
WCMD_
opt_s_
strip_quotes
(
command
);
WCMD_strip_quotes
(
command
);
opt_s
=
1
;
WCMD_run_program
(
command
,
called
);
return
;
...
...
@@ -2478,7 +2478,7 @@ int wmain (int argc, WCHAR *argvW[])
/* strip first and last quote characters if opt_s; check for invalid
* executable is done later */
if
(
opt_s
&&
*
cmd
==
'\"'
)
WCMD_
opt_s_
strip_quotes
(
cmd
);
WCMD_strip_quotes
(
cmd
);
}
if
(
opt_c
)
{
...
...
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