📄 eri.c
字号:
/*************************************************************************/
/* */
/* Copyright Mentor Graphics Corporation 2004 */
/* All Rights Reserved. */
/* */
/* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS */
/* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS */
/* SUBJECT TO LICENSE TERMS. */
/* */
/*************************************************************************/
/*************************************************************************/
/* */
/* FILE NAME VERSION */
/* */
/* eri.c Nucleus PLUS 1.15 */
/* */
/* COMPONENT */
/* */
/* ER - Error Management */
/* */
/* DESCRIPTION */
/* */
/* This file contains the initialization routine for the Error */
/* Management component. */
/* */
/* DATA STRUCTURES */
/* */
/* None */
/* */
/* FUNCTIONS */
/* */
/* ERI_Initialize Error Management Initialize */
/* */
/* DEPENDENCIES */
/* */
/* er_extr.h Error management interfaces */
/* */
/*************************************************************************/
#define NU_SOURCE_FILE
#include "plus/inc/er_extr.h" /* Error management interfaces */
#include "plus/inc/er_defs.h"
/* Define inter-component global data references. */
extern INT ERD_Error_Code;
#ifdef NU_DEBUG
extern UNSIGNED ERD_Assert_Count;
#endif
#ifdef NU_ERROR_STRING
extern CHAR ERD_Error_String[];
#endif
/*************************************************************************/
/* */
/* FUNCTION */
/* */
/* ERI_Initialize */
/* */
/* DESCRIPTION */
/* */
/* This function initializes the data structures of the Error */
/* management component (ER). */
/* */
/* CALLED BY */
/* */
/* INC_Initialize System initialization */
/* */
/* CALLS */
/* */
/* None */
/* */
/* INPUTS */
/* */
/* None */
/* */
/* OUTPUTS */
/* */
/* ERD_Error_Code Contains system error code */
/* ERD_Error_String ASCII error code string */
/* */
/*************************************************************************/
VOID ERI_Initialize(VOID)
{
/* Clear the system error code flag. */
ERD_Error_Code = 0;
#ifdef NU_DEBUG
/* Clear count of failed assertions. */
ERD_Assert_Count = 0;
#endif
#ifdef NU_ERROR_STRING
/* Make the error string null. */
ERD_Error_String[0] = 0;
#endif
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -