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:
fedor 2000-06-29 03:51:06 +00:00
parent e101b26a1e
commit 6238bbb2c5
16 changed files with 404 additions and 264 deletions

View file

@ -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
*************************************************************************/