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
e22bcac7
Commit
e22bcac7
authored
Apr 09, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepath: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2bfba562
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
Makefile.in
programs/winepath/Makefile.in
+2
-1
winepath.c
programs/winepath/winepath.c
+3
-12
No files found.
programs/winepath/Makefile.in
View file @
e22bcac7
MODULE
=
winepath.exe
APPMODE
=
-mconsole
-municode
EXTRADLLFLAGS
=
-mconsole
-municode
-mno-cygwin
C_SRCS
=
winepath.c
...
...
programs/winepath/winepath.c
View file @
e22bcac7
...
...
@@ -21,9 +21,6 @@
*/
#define WIN32_LEAN_AND_MEAN
#include "config.h"
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
...
...
@@ -92,13 +89,7 @@ static int option(int shortopt, const WCHAR *longopt)
*/
static
int
parse_options
(
WCHAR
*
argv
[])
{
static
const
WCHAR
longW
[]
=
{
'l'
,
'o'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
shortW
[]
=
{
's'
,
'h'
,
'o'
,
'r'
,
't'
,
0
};
static
const
WCHAR
unixW
[]
=
{
'u'
,
'n'
,
'i'
,
'x'
,
0
};
static
const
WCHAR
windowsW
[]
=
{
'w'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
0
};
static
const
WCHAR
helpW
[]
=
{
'h'
,
'e'
,
'l'
,
'p'
,
0
};
static
const
WCHAR
nullW
[]
=
{
0
};
static
const
WCHAR
*
longopts
[]
=
{
longW
,
shortW
,
unixW
,
windowsW
,
helpW
,
nullW
};
static
const
WCHAR
*
longopts
[]
=
{
L"long"
,
L"short"
,
L"unix"
,
L"windows"
,
L"help"
,
NULL
};
int
outputformats
=
0
;
BOOL
done
=
FALSE
;
int
i
,
j
;
...
...
@@ -117,10 +108,10 @@ static int parse_options(WCHAR *argv[])
done
=
TRUE
;
}
else
{
/* long option */
for
(
j
=
0
;
longopts
[
j
]
[
0
]
;
j
++
)
for
(
j
=
0
;
longopts
[
j
];
j
++
)
if
(
!
lstrcmpiW
(
argv
[
i
]
+
2
,
longopts
[
j
]))
break
;
outputformats
|=
option
(
longopts
[
j
][
0
],
argv
[
i
]);
if
(
longopts
[
j
])
outputformats
|=
option
(
longopts
[
j
][
0
],
argv
[
i
]);
}
}
else
{
/* short options */
...
...
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