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
f37ab586
Commit
f37ab586
authored
Aug 25, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Aug 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Skip tabs as well as spaces in WCMD_skip_leading_spaces.
parent
7b125126
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+2
-2
wcmdmain.c
programs/cmd/wcmdmain.c
+2
-2
No files found.
programs/cmd/tests/test_builtins.cmd.exp
View file @
f37ab586
...
...
@@ -158,8 +158,8 @@ BAZ=bazbaz
bazbaz
set "FOO=bar" should not include the quotes in the variable value
bar
@todo_wine@
foo
@todo_wine@
''
foo
''
'foo@space@'
'foo@tab@'
------------ Testing variable expansion --------------
...
...
programs/cmd/wcmdmain.c
View file @
f37ab586
...
...
@@ -443,7 +443,7 @@ void WCMD_strsubstW(WCHAR *start, const WCHAR *next, const WCHAR *insert, int le
/***************************************************************************
* WCMD_skip_leading_spaces
*
* Return a pointer to the first non-space character of string.
* Return a pointer to the first non-
white
space character of string.
* Does not modify the input string.
*/
WCHAR
*
WCMD_skip_leading_spaces
(
WCHAR
*
string
)
{
...
...
@@ -451,7 +451,7 @@ WCHAR *WCMD_skip_leading_spaces (WCHAR *string) {
WCHAR
*
ptr
;
ptr
=
string
;
while
(
*
ptr
==
' '
)
ptr
++
;
while
(
*
ptr
==
' '
||
*
ptr
==
'\t'
)
ptr
++
;
return
ptr
;
}
...
...
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