mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
fix category
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12539 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9172e99294
commit
2757cbdae7
1 changed files with 30 additions and 27 deletions
|
@ -523,21 +523,6 @@ int main(int argc, char *argv[], char *env[])
|
||||||
|
|
||||||
#endif /* HAS_LOAD_METHOD && HAS_PROCFS */
|
#endif /* HAS_LOAD_METHOD && HAS_PROCFS */
|
||||||
|
|
||||||
/**
|
|
||||||
* Fallback method. The developer must call this method to initialize
|
|
||||||
* the |NSProcessInfo system if none of the system-specific hacks to
|
|
||||||
* auto initiailise it are working.
|
|
||||||
*/
|
|
||||||
+ (void) initializeWithArguments: (char**)argv
|
|
||||||
count: (int)argc
|
|
||||||
environment: (char**)env
|
|
||||||
{
|
|
||||||
if (!_gnu_processName && !_gnu_arguments && !_gnu_environment)
|
|
||||||
{
|
|
||||||
_gnu_process_args(argc, argv, env);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
*** Getting an NSProcessInfo Object
|
*** Getting an NSProcessInfo Object
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
@ -567,18 +552,6 @@ int main(int argc, char *argv[], char *env[])
|
||||||
return _gnu_arguments;
|
return _gnu_arguments;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method returns a set of debug levels set using the
|
|
||||||
* --GNU-Debug=... command line option.<br />
|
|
||||||
* You can modify this set to change the debug logging under
|
|
||||||
* your programs control ... but such modifications are not
|
|
||||||
* thread-safe.
|
|
||||||
*/
|
|
||||||
- (NSMutableSet*) debugSet
|
|
||||||
{
|
|
||||||
return _debug_set;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSDictionary *) environment
|
- (NSDictionary *) environment
|
||||||
{
|
{
|
||||||
return _gnu_environment;
|
return _gnu_environment;
|
||||||
|
@ -641,6 +614,36 @@ int main(int argc, char *argv[], char *env[])
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@implementation NSProcessInfo (GNUstep)
|
||||||
|
/**
|
||||||
|
* Fallback method. The developer must call this method to initialize
|
||||||
|
* the NSProcessInfo system if none of the system-specific hacks to
|
||||||
|
* auto initiailise it are working.
|
||||||
|
*/
|
||||||
|
+ (void) initializeWithArguments: (char**)argv
|
||||||
|
count: (int)argc
|
||||||
|
environment: (char**)env
|
||||||
|
{
|
||||||
|
if (!_gnu_processName && !_gnu_arguments && !_gnu_environment)
|
||||||
|
{
|
||||||
|
_gnu_process_args(argc, argv, env);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method returns a set of debug levels set using the
|
||||||
|
* --GNU-Debug=... command line option.<br />
|
||||||
|
* You can modify this set to change the debug logging under
|
||||||
|
* your programs control ... but such modifications are not
|
||||||
|
* thread-safe.
|
||||||
|
*/
|
||||||
|
- (NSMutableSet*) debugSet
|
||||||
|
{
|
||||||
|
return _debug_set;
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function for rapid testing to see if a debug level is set.
|
* Function for rapid testing to see if a debug level is set.
|
||||||
* This is used by the debugging macros.
|
* This is used by the debugging macros.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue