mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
(NSArgv): New global.
(_gnu_process_args): Set it. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@669 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ae359fe059
commit
01bc8ec329
1 changed files with 7 additions and 0 deletions
|
@ -143,6 +143,11 @@ static NSArray* _gnu_arguments = nil;
|
|||
// Dictionary of environment vars and their values
|
||||
static NSMutableDictionary* _gnu_environment = nil;
|
||||
|
||||
/* xxx Referenced in objc-load.c,
|
||||
but I can't find it in the OpenStep standard.
|
||||
What's going on here? */
|
||||
const char **NSArgv;
|
||||
|
||||
/*************************************************************************
|
||||
*** Implementing the Libobjects main function
|
||||
*************************************************************************/
|
||||
|
@ -151,6 +156,8 @@ static void
|
|||
_gnu_process_args(int argc, char *argv[], char *env[])
|
||||
{
|
||||
int i;
|
||||
|
||||
NSArgv = (char**)argv;
|
||||
|
||||
/* Getting the process name */
|
||||
_gnu_processName = [[NSString alloc] initWithCString:argv[0]];
|
||||
|
|
Loading…
Reference in a new issue