summaryrefslogtreecommitdiff
path: root/libjava/posix.cc
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-25 16:48:13 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-25 16:48:13 +0000
commit926c0687e17f88461653727c229d21bf292eb85c (patch)
treeb756be04b807ea99859e4791e60af7573fdc8f73 /libjava/posix.cc
parent574c313bcbb0ba5ed28baba79d7612be528ee36b (diff)
downloadgcc-926c0687e17f88461653727c229d21bf292eb85c.tar.gz
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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66067 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/posix.cc')
-rw-r--r--libjava/posix.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/libjava/posix.cc b/libjava/posix.cc
index 2f808334d7c..de58ab025c0 100644
--- a/libjava/posix.cc
+++ b/libjava/posix.cc
@@ -25,9 +25,6 @@ details. */
extern "C" unsigned long long _clock (void);
#endif
-// platform-specific executable name
-extern const char **_Jv_argv;
-
#if defined(HAVE_PROC_SELF_EXE)
static char exec_name[20];
// initialized in _Jv_platform_initialize()
@@ -41,7 +38,7 @@ const char *_Jv_ThisExecutable (void)
return exec_name;
// initialized in _Jv_platform_initialize()
#else
- return _Jv_argv[0];
+ return _Jv_GetSafeArg (0);
#endif
}