jdk/src/share/bin/main.c
(この関数は #ifdef JAVAW ではない場合用. #ifdef JAVAW 時には代わりに WinMain() が定義される.)
/*
* Entry point.
*/
#ifdef JAVAW
...
#else /* JAVAW */
int
main(int argc, char ** argv)
{
{- -------------------------------------------
(1) (変数宣言など)
---------------------------------------- -}
int margc;
char** margv;
const jboolean const_javaw = JNI_FALSE;
margc = argc;
margv = argv;
#endif /* JAVAW */
{- -------------------------------------------
(1) JLI_Launch() を呼び出すだけ.
---------------------------------------- -}
return JLI_Launch(margc, margv,
sizeof(const_jargs) / sizeof(char *), const_jargs,
sizeof(const_appclasspath) / sizeof(char *), const_appclasspath,
FULL_VERSION,
DOT_VERSION,
(const_progname != NULL) ? const_progname : *margv,
(const_launcher != NULL) ? const_launcher : *margv,
(const_jargs != NULL) ? JNI_TRUE : JNI_FALSE,
const_cpwildcard, const_javaw, const_ergo_class);
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.