diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-25 16:48:13 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-25 16:48:13 +0000 |
commit | 926c0687e17f88461653727c229d21bf292eb85c (patch) | |
tree | b756be04b807ea99859e4791e60af7573fdc8f73 /libjava/include | |
parent | 574c313bcbb0ba5ed28baba79d7612be528ee36b (diff) | |
download | ppe42-gcc-926c0687e17f88461653727c229d21bf292eb85c.tar.gz ppe42-gcc-926c0687e17f88461653727c229d21bf292eb85c.zip |
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/include')
-rw-r--r-- | libjava/include/jvm.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 38f675a1fef..9395feb09c4 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -352,7 +352,20 @@ extern "C" jlong _Jv_remJ (jlong, jlong); } -/* Get the name of the running executable. */ +/* Get the number of arguments (cf. argc) or 0 if our argument + list was never initialized. */ +extern int _Jv_GetNbArgs (void); + +/* Get the specified argument (cf. argv[index]) or "" if either + our argument list was never initialized or the specified index + is out of bounds. */ +extern const char * _Jv_GetSafeArg (int index); + +/* Sets our argument list. Can be used by programs with non-standard + entry points. */ +extern void _Jv_SetArgs (int argc, const char **argv); + +/* Get the name of the running executable. */ extern const char *_Jv_ThisExecutable (void); /* Return a pointer to a symbol in executable or loaded library. */ |