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
b1e70285
Commit
b1e70285
authored
Nov 09, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added __wine_get_main_args to retrieve command-line arguments for the
application.
parent
3e38431e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
+23
-8
ntdll.spec
dlls/ntdll/ntdll.spec
+3
-0
options.c
misc/options.c
+20
-8
No files found.
dlls/ntdll/ntdll.spec
View file @
b1e70285
...
...
@@ -1023,3 +1023,6 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
@ cdecl __wine_dbg_header_trace(ptr str) __wine_dbg_header_trace
@ cdecl wine_dbg_vprintf(str ptr) wine_dbg_vprintf
@ varargs wine_dbg_printf(str) wine_dbg_printf
# Command-line
@ cdecl __wine_get_main_args(ptr) __wine_get_main_args
misc/options.c
View file @
b1e70285
...
...
@@ -25,11 +25,6 @@ struct option
const
char
*
usage
;
};
/* Most Windows C/C++ compilers use something like this to */
/* access argc and argv globally: */
int
_ARGC
;
char
**
_ARGV
;
/* default options */
struct
options
Options
=
{
...
...
@@ -46,6 +41,9 @@ const char *full_argv0; /* the full path of argv[0] (if known) */
static
char
*
inherit_str
;
/* options to pass to child processes */
static
int
app_argc
;
/* argc/argv to pass to application */
static
char
**
app_argv
;
static
void
out_of_memory
(
void
)
WINE_NORETURN
;
static
void
out_of_memory
(
void
)
{
...
...
@@ -342,7 +340,21 @@ void OPTIONS_ParseOptions( char *argv[] )
}
/* count the resulting arguments */
_ARGV
=
argv
;
_ARGC
=
0
;
while
(
argv
[
_ARGC
])
_ARGC
++
;
app_argv
=
argv
;
app_argc
=
0
;
while
(
argv
[
app_argc
])
app_argc
++
;
}
/***********************************************************************
* __wine_get_main_args
*
* Return the argc/argv that the application should see.
* Used by the startup code generated in the .spec.c file.
*/
int
__wine_get_main_args
(
char
***
argv
)
{
*
argv
=
app_argv
;
return
app_argc
;
}
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