mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
New switch to force user to call NSProcessInfo initialization
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6841 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e101b26a1e
commit
6238bbb2c5
16 changed files with 404 additions and 264 deletions
|
@ -510,6 +510,19 @@ int main(int argc, char *argv[], char *env[])
|
|||
|
||||
#endif /* HAS_LOAD_METHOD && HAS_PROC_FS */
|
||||
|
||||
/* Fallback method. User must call this method if none of the other
|
||||
above hacks is being used
|
||||
*/
|
||||
+ (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
|
||||
*************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue