Path: blob/master/src/java.base/share/native/launcher/defines.h
41149 views
/*1* Copyright (c) 2005, 2017, 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#define STR_HELPER(x) #x31#define STR(x) STR_HELPER(x)3233/*34* This file contains commonly defined constants used only by main.c35* and should not be included by another file.36*/37#ifndef VERSION_STRING38/* make sure the compilation fails */39#error "VERSION_STRING must be defined"40#endif4142/* Unused, but retained for JLI_Launch compatibility*/43#define DOT_VERSION "0.0"4445#ifdef JAVA_ARGS46#ifdef PROGNAME47static const char* const_progname = PROGNAME;48#else49static char* const_progname = NULL;50#endif51static const char* const_jargs[] = JAVA_ARGS;52#ifdef EXTRA_JAVA_ARGS53static const char* const_extra_jargs[] = EXTRA_JAVA_ARGS;54#else55static const char** const_extra_jargs = NULL;56#endif57#else /* !JAVA_ARGS */58#ifdef EXTRA_JAVA_ARGS59#error "EXTRA_JAVA_ARGS defined without JAVA_ARGS"60#endif61static const char* const_progname = "java";62static const char** const_jargs = NULL;63static const char** const_extra_jargs = NULL;64static const char* const_appclasspath[] = { NULL };65#endif /* JAVA_ARGS */6667#ifdef LAUNCHER_NAME68static const char* const_launcher = LAUNCHER_NAME;69#else /* LAUNCHER_NAME */70static char* const_launcher = NULL;71#endif /* LAUNCHER_NAME */7273#ifdef EXPAND_CLASSPATH_WILDCARDS74static const jboolean const_cpwildcard = JNI_TRUE;75#else76static const jboolean const_cpwildcard = JNI_FALSE;77#endif /* EXPAND_CLASSPATH_WILDCARDS */7879#ifdef ENABLE_ARG_FILES80static const jboolean const_disable_argfile = JNI_FALSE;81#else82static const jboolean const_disable_argfile = JNI_TRUE;83#endif84#endif /*_DEFINES_H */858687