1 /* |
1 /* |
2 * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
42 |
42 |
43 /* Unused, but retained for JLI_Launch compatibility*/ |
43 /* Unused, but retained for JLI_Launch compatibility*/ |
44 #define DOT_VERSION "0.0" |
44 #define DOT_VERSION "0.0" |
45 |
45 |
46 #ifdef JAVA_ARGS |
46 #ifdef JAVA_ARGS |
47 #define HAS_JAVA_ARGS JNI_TRUE |
|
48 #ifdef PROGNAME |
47 #ifdef PROGNAME |
49 static const char* const_progname = PROGNAME; |
48 static const char* const_progname = PROGNAME; |
50 #else |
49 #else |
51 static char* const_progname = NULL; |
50 static char* const_progname = NULL; |
52 #endif |
51 #endif |
53 static const char* const_jargs[] = JAVA_ARGS; |
52 static const char* const_jargs[] = JAVA_ARGS; |
|
53 #ifdef EXTRA_JAVA_ARGS |
|
54 static const char* const_extra_jargs[] = EXTRA_JAVA_ARGS; |
|
55 #else |
|
56 static const char** const_extra_jargs = NULL; |
|
57 #endif |
54 #else /* !JAVA_ARGS */ |
58 #else /* !JAVA_ARGS */ |
55 #define HAS_JAVA_ARGS JNI_FALSE |
59 #ifdef EXTRA_JAVA_ARGS |
|
60 #error "EXTRA_JAVA_ARGS defined without JAVA_ARGS" |
|
61 #endif |
56 static const char* const_progname = "java"; |
62 static const char* const_progname = "java"; |
57 static const char** const_jargs = NULL; |
63 static const char** const_jargs = NULL; |
|
64 static const char** const_extra_jargs = NULL; |
58 static const char* const_appclasspath[] = { NULL }; |
65 static const char* const_appclasspath[] = { NULL }; |
59 #endif /* JAVA_ARGS */ |
66 #endif /* JAVA_ARGS */ |
60 |
67 |
61 #ifdef LAUNCHER_NAME |
68 #ifdef LAUNCHER_NAME |
62 static const char* const_launcher = LAUNCHER_NAME; |
69 static const char* const_launcher = LAUNCHER_NAME; |