
/***************************************************************************
**
**    $Header:   D:/EPSLDV1/SRC/LOG/ERROR/MKERRS.H__   1.8   20 Jun 1996 09:33:54   ZJRD  $
**
**    $Log:   D:/EPSLDV1/SRC/LOG/ERROR/MKERRS.H__  $
** 
**    Rev 1.8   20 Jun 1996 09:33:54   ZJRD
** EasyPack/SLD Version 1.20a
** 
**    Rev 1.6   10 Jun 1996 10:28:20   ZJRD
** EasyPack/SLD Version 1.20
** 
**    Rev 1.4   29 May 1996 09:42:10   ZJRD
** No change.
** 
**    Rev 1.3   16 May 1996 09:11:46   ZJRD
** No change.
** 
**    Rev 1.2   10 May 1996 09:19:54   ZJRD
** No change.
** 
**    Rev 1.1   02 May 1996 10:34:14   ZJRD
** EasyPack/SLD Versio 1.92
** 
****************************************************************************/

/****************************************************************************
**
**  Name:  mkerrs.h
**
**  Description:
**     Contains declarations for MKERRORS.EXE
**
**  Date:	3/26/96		by: Jamoon
**
**  Copyright (C) 1996 Microtek International.  All rights reserved.
**
*****************************************************************************/
#ifndef _MKERRS_
#define _MKERRS_

                       /****************************
                        *                          *
                        *       INCLUDE FILES      *
                        *                          *
                        ****************************/
#include <stdio.h>

#include "basictyp.h"


                       /****************************
                        *                          *
                        *        DEFINITIONS       *
                        *                          *
                        ****************************/

#define ER_ICE_OK		0x3000
#define ER_EMU_BASE		0x3100
#define ER_PRE_BASE  	0x3200
#define ER_MEM_BASE		0x3500
#define ER_SYN_BASE		0x3550
#define ER_TRC_BASE		0x3600
#define ER_SPA_BASE 	0x3700
#define ER_TST_BASE		0x3800
#define ER_ADDR_BASE	0x3900
#define ER_LDR_BASE		0x4000
#define ER_SEG_BASE		0x5000 
/*
 * LOCKED means that you can't change the error code, even if changeCodes
 * is true.
 */
#define LOCKED       1
#define UNLOCKED     2

#define ER_RC_BASE   500
#define ER_HELP_BASE 3000
#define BAD          (GOOD + 666)
#define MAX_ERRORS   2048

typedef struct {
   CHAR *name;
   U32  code;
   CHAR *text;
//   CHAR *helpentry;
//   U8   flags; /* only LOCKED/UNLOCKED so far */
} ErrorDef;

typedef ErrorDef * ErrorDefPtr;

                       /****************************
                        *                          *
                        *        PROTOTYPES        *
                        *                          *
                        ****************************/

RETCODE Regen_mkerrs_h(VOID);
RETCODE CopyHeader(FILE *fp, char *HeaderFile);
RETCODE Regen_errcodec_h(VOID);
RETCODE Regen_errcodea_h(VOID);
RETCODE Regen_errerr_h(VOID);
RETCODE Regen_errtext_rc(VOID);

U32 SizeErrArray(VOID);
U32 SizeErrArray1(VOID);
U32 SizeErrArray2(VOID);


#endif /* _MKERRS_ */
/******************************** E O F *************************************/
