Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/bin/defines.h
38769 views
/*1* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#ifndef _DEFINES_H26#define _DEFINES_H2728#include "java.h"2930/*31* This file contains commonly defined constants used only by main.c32* and should not be included by another file.33*/34#ifndef FULL_VERSION35/* make sure the compilation fails */36#error "FULL_VERSION must be defined"37#endif3839#if defined(JDK_MAJOR_VERSION) && defined(JDK_MINOR_VERSION)40#define DOT_VERSION JDK_MAJOR_VERSION "." JDK_MINOR_VERSION41#else42/* make sure the compilation fails */43#error "JDK_MAJOR_VERSION and JDK_MINOR_VERSION must be defined"44#endif454647#ifdef JAVA_ARGS48static const char* const_progname = "java";49static const char* const_jargs[] = JAVA_ARGS;50/*51* ApplicationHome is prepended to each of these entries; the resulting52* strings are concatenated (separated by PATH_SEPARATOR) and used as the53* value of -cp option to the launcher.54*/55#ifndef APP_CLASSPATH56#define APP_CLASSPATH { "/lib/tools.jar", "/classes" }57#endif /* APP_CLASSPATH */58static const char* const_appclasspath[] = APP_CLASSPATH;59#else /* !JAVA_ARGS */60#ifdef PROGNAME61static const char* const_progname = PROGNAME;62#else63static char* const_progname = NULL;64#endif65static const char** const_jargs = NULL;66static const char** const_appclasspath = NULL;67#endif /* JAVA_ARGS */6869#ifdef LAUNCHER_NAME70static const char* const_launcher = LAUNCHER_NAME;71#else /* LAUNCHER_NAME */72static char* const_launcher = NULL;73#endif /* LAUNCHER_NAME */7475#ifdef EXPAND_CLASSPATH_WILDCARDS76static const jboolean const_cpwildcard = JNI_TRUE;77#else78static const jboolean const_cpwildcard = JNI_FALSE;79#endif /* EXPAND_CLASSPATH_WILDCARDS */8081#if defined(NEVER_ACT_AS_SERVER_CLASS_MACHINE)82static const jint const_ergo_class = NEVER_SERVER_CLASS;83#elif defined(ALWAYS_ACT_AS_SERVER_CLASS_MACHINE)84static const jint const_ergo_class = ALWAYS_SERVER_CLASS;85#else86static const jint const_ergo_class = DEFAULT_POLICY;87#endif /* NEVER_ACT_AS_SERVER_CLASS_MACHINE */8889#endif /*_DEFINES_H */909192