0N/A/*
2362N/A * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A#ifndef _DEFINES_H
0N/A#define _DEFINES_H
0N/A
0N/A#include "java.h"
0N/A
0N/A/*
0N/A * This file contains commonly defined constants used only by main.c
0N/A * and should not be included by another file.
0N/A */
0N/A#ifndef FULL_VERSION
0N/A/* make sure the compilation fails */
0N/A#error "FULL_VERSION must be defined"
0N/A#endif
0N/A
0N/A#if defined(JDK_MAJOR_VERSION) && defined(JDK_MINOR_VERSION)
0N/A#define DOT_VERSION JDK_MAJOR_VERSION "." JDK_MINOR_VERSION
0N/A#else
0N/A/* make sure the compilation fails */
0N/A#error "JDK_MAJOR_VERSION and JDK_MINOR_VERSION must be defined"
0N/A#endif
0N/A
0N/A
0N/A#ifdef JAVA_ARGS
0N/Astatic const char* const_progname = "java";
0N/Astatic const char* const_jargs[] = JAVA_ARGS;
0N/A/*
0N/A * ApplicationHome is prepended to each of these entries; the resulting
0N/A * strings are concatenated (separated by PATH_SEPARATOR) and used as the
0N/A * value of -cp option to the launcher.
0N/A */
0N/A#ifndef APP_CLASSPATH
0N/A#define APP_CLASSPATH { "/lib/tools.jar", "/classes" }
0N/A#endif /* APP_CLASSPATH */
0N/Astatic const char* const_appclasspath[] = APP_CLASSPATH;
0N/A#else /* !JAVA_ARGS */
0N/A#ifdef PROGNAME
0N/Astatic const char* const_progname = PROGNAME;
0N/A#else
0N/Astatic char* const_progname = NULL;
0N/A#endif
0N/Astatic const char** const_jargs = NULL;
0N/Astatic const char** const_appclasspath = NULL;
0N/A#endif /* JAVA_ARGS */
0N/A
0N/A#ifdef LAUNCHER_NAME
0N/Astatic const char* const_launcher = LAUNCHER_NAME;
0N/A#else /* LAUNCHER_NAME */
0N/Astatic char* const_launcher = NULL;
0N/A#endif /* LAUNCHER_NAME */
0N/A
0N/A#ifdef EXPAND_CLASSPATH_WILDCARDS
0N/Astatic const jboolean const_cpwildcard = JNI_TRUE;
0N/A#else
0N/Astatic const jboolean const_cpwildcard = JNI_FALSE;
0N/A#endif /* EXPAND_CLASSPATH_WILDCARDS */
0N/A
0N/A#if defined(NEVER_ACT_AS_SERVER_CLASS_MACHINE)
0N/Astatic const jint const_ergo_class = NEVER_SERVER_CLASS;
0N/A#elif defined(ALWAYS_ACT_AS_SERVER_CLASS_MACHINE)
0N/Astatic const jint const_ergo_class = ALWAYS_SERVER_CLASS;
0N/A#else
0N/Astatic const jint const_ergo_class = DEFAULT_POLICY;
0N/A#endif /* NEVER_ACT_AS_SERVER_CLASS_MACHINE */
0N/A
0N/A#endif /*_DEFINES_H */