jvm.h: (_Jv_GetNbArgs) added (_Jv_GetSafeArg) added (_Jv_SetArgs) added
2003-03-29 Mohan Embar <gnustuff@thisiscool.com> * include/jvm.h: (_Jv_GetNbArgs) added (_Jv_GetSafeArg) added (_Jv_SetArgs) added * prims.cc: (_Jv_GetNbArgs) implemented (_Jv_GetSafeArg) implemented (_Jv_SetArgs) implemented (_Jv_RunMain) use _Jv_SetArgs() instead of explicitly setting _Jv_argc and _Jv_argv * posix.cc: (_Jv_ThisExecutable) use _Jv_GetSafeArg() instead of _Jv_argv * java/lang/natRuntime.cc: (insertSystemProperties) use _Jv_GetSafeArg() instead of _Jv_argv From-SVN: r66067
This commit is contained in:
parent
ad4a34f0b9
commit
c4519773ca
5 changed files with 56 additions and 12 deletions
|
@ -108,10 +108,6 @@ _Jv_SetDLLSearchPath (const char *)
|
|||
|
||||
|
||||
|
||||
extern int _Jv_argc;
|
||||
extern const char **_Jv_argv;
|
||||
// our process' command line arguments
|
||||
|
||||
void
|
||||
java::lang::Runtime::exitInternal (jint status)
|
||||
{
|
||||
|
@ -590,7 +586,7 @@ java::lang::Runtime::insertSystemProperties (java::util::Properties *newprops)
|
|||
}
|
||||
|
||||
// The name used to invoke this process (argv[0] in C).
|
||||
SET ("gnu.gcj.progname", _Jv_argv[0]);
|
||||
SET ("gnu.gcj.progname", _Jv_GetSafeArg (0));
|
||||
|
||||
// Allow platform specific settings and overrides.
|
||||
_Jv_platform_initProperties (newprops);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue