diff options
Diffstat (limited to 'libjava/include/jvm.h')
-rw-r--r-- | libjava/include/jvm.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index e02901de824..507c4c0b8a9 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -352,9 +352,21 @@ extern "C" jlong _Jv_remJ (jlong, jlong); } -/* get/set the name of the running executable. */ -extern char *_Jv_ThisExecutable (void); -extern void _Jv_ThisExecutable (const char *); +/* 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. */ void *_Jv_FindSymbolInExecutable (const char *); |