1 /****************************************************************************** 2 * * 3 * File: taberr .h Version 1.20 Date: 1997-07-27 * 4 * * 5 * Copyright (c) 1993-1997 by kosta@kostis.net (Kosta Kostis) * 6 * * 7 ****************************************************************************** 8 * * 9 * History: * 10 * 1997-07-27: KK V1.20 * 11 * - see transtab.c * 12 * * 13 *****************************************************************************/ 14 15 /****************************************************************************** 16 17 Program Return Codes 18 19 *****************************************************************************/ 20 21 #define ERR_NONE 0 /* everything seemed to work */ 22 23 #define ERR_BAD 1 /* unconv. characters in input */ 24 #define ERR_SYNTAX 2 /* syntax error */ 25 #define ERR_SRC 3 /* unable to open input file */ 26 #define ERR_DST 4 /* unable to create output file */ 27 #define ERR_TAB 5 /* unable to load binary table */ 28 #define ERR_OPEN 11 /* unable to open file */ 29 #define ERR_READ 12 /* unable to read file */ 30 #define ERR_CODE 21 /* code file has bad syntax */ 31 #define ERR_REDEFINED 22 /* code redefined */ 32 #define ERR_MEMORY 42 /* out of memory */ 33 34 /****************************************************************************** 35 36 Program Error Messages 37 38 *****************************************************************************/ 39 40 #define ERR_MSG_SRC "%s: unable to open input file %s!\n" 41 #define ERR_MSG_DST "%s: unable to create output file %s\n" 42 #define ERR_MSG_TAB "%s: unable to load table file %s\n" 43 #define ERR_MSG_OPEN "%s: unable to open file %s\n" 44 #define ERR_MSG_CODE "%s: code file %s has bad syntax in line %u\n" 45 #define ERR_MSG_REDEFINED "%s: code file %s: code %u redefined line %u\n" 46 #define ERR_MSG_MEMORY "%s: out of memory reading code file %s, line %u\n" 47