mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
new initialisation function.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28806 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
70af2643ac
commit
febe972488
17 changed files with 60 additions and 25 deletions
|
@ -1362,6 +1362,16 @@ static void determineOperatingSystem()
|
|||
|
||||
@end
|
||||
|
||||
void
|
||||
GSInitializeProcess(int argc, char **argv, char **envp)
|
||||
{
|
||||
[NSProcessInfo class];
|
||||
[gnustep_global_lock lock];
|
||||
fallbackInitialisation = YES;
|
||||
_gnu_process_args(argc, argv, envp);
|
||||
[gnustep_global_lock unlock];
|
||||
}
|
||||
|
||||
@implementation NSProcessInfo (GNUstep)
|
||||
|
||||
static BOOL debugTemporarilyDisabled = NO;
|
||||
|
@ -1370,10 +1380,7 @@ static BOOL debugTemporarilyDisabled = NO;
|
|||
count: (int)argc
|
||||
environment: (char**)env
|
||||
{
|
||||
[gnustep_global_lock lock];
|
||||
fallbackInitialisation = YES;
|
||||
_gnu_process_args(argc, argv, env);
|
||||
[gnustep_global_lock unlock];
|
||||
GSInitializeProcess(argc, argv, env);
|
||||
}
|
||||
|
||||
- (BOOL) debugLoggingEnabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue