📄 global.c
字号:
/*0001*//*
/*0002./ * Copyright (c) 1998-2001 Sun Microsystems, Inc. All Rights Reserved.
/*0003./ *
/*0004./ * This software is the confidential and proprietary information of Sun
/*0005./ * Microsystems, Inc. ("Confidential Information"). You shall not
/*0006./ * disclose such Confidential Information and shall use it only in
/*0007./ * accordance with the terms of the license agreement you entered into
/*0008./ * with Sun.
/*0009./ *
/*0010./ * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
/*0011./ * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
/*0012./ * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
/*0013./ * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
/*0014./ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
/*0015./ * THIS SOFTWARE OR ITS DERIVATIVES.
/*0016./ *
/*0017./ */
/*0018*/
/*0019*//*=========================================================================
/*0020./ * SYSTEM: KVM
/*0021./ * SUBSYSTEM: Global definitions
/*0022./ * FILE: global.c
/*0023./ * OVERVIEW: Global system-wide definitions.
/*0024./ * AUTHOR: Antero Taivalsaari, Sun Labs
/*0025./ * Many others since then...
/*0026./ *=======================================================================*/
/*0027*/
/*0028*//*=========================================================================
/*0029./ * COMMENT:
/*0030./ * This file contains declarations that do not belong to any
/*0031./ * particular structure or subsystem of the VM. There are additional
/*0032./ * global variable declarations in other files.
/*0033./ *=======================================================================*/
/*0034*/
/*0035*//*=========================================================================
/*0036./ * Local include files
/*0037./ *=======================================================================*/
/*0038*/
/*0039*/#include <global.h>
/*0040*/
/*0041*//*=========================================================================
/*0042./ * Miscellaneous global variables
/*0043./ *=======================================================================*/
/*0044*/
/*0045*//* Shared string buffer that is used internally by the VM */
/*0046*//* NOTE: STRINGBUFFERSIZE is defined in main.h */
/*0047*/char str_buffer[STRINGBUFFERSIZE];
/*0048*/
/*0049*//* Requested heap size when starting the VM from the command line */
/*0050*/long RequestedHeapSize;
/*0051*/
/*0052*//*=========================================================================
/*0053./ * Global execution modes
/*0054./ *=======================================================================*/
/*0055*/
/*0056*//* Flags for toggling certain global modes on and off */
/*0057*/bool_t JamEnabled;
/*0058*/bool_t JamRepeat;
/*0059*/
/*0060*//*========================================================================
/*0061./ * Runtime flags for choosing different tracing/debugging options.
/*0062./ * All these options make the system very verbose. Turn them all off
/*0063./ * for normal VM operation.
/*0064./ *=======================================================================*/
/*0065*/
/*0066*/#define DEFINE_TRACE_VAR_AND_ZERO(varName, userName) int varName = 0;
/*0068*/
/*0069*//*=========================================================================
/*0070./ * Error handling definitions
/*0071./ *=======================================================================*/
/*0072*/
/*0073*/#if NEED_GLOBAL_JUMPBUFFER
/*0074*/jmp_buf *topJumpBuffer;
/*0075*/int *topJumpBuffer_value;
/*0076*/#endif
/*0077*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -