ZEDA  1.6.18
zeda_errmsg.h
Go to the documentation of this file.
1 /* ZEDA - Elementary Data and Algorithms
2  * Copyright (C) 1998 Tomomichi Sugihara (Zhidao)
3  */
9 #ifndef __ZEDA_ERRMSG_H__
10 #define __ZEDA_ERRMSG_H__
11 
12 /* NOTE: never include this header file in user programs. */
13 
14 /* warning message */
15 
16 #define ZEDA_WARN_ENDIAN_NOT_SUPPORTED "middle endian not supported."
17 #define ZEDA_WARN_INVALID_INTSIZ "invalid (or unsupported) size of int %d."
18 #define ZEDA_WARN_INVALID_LNGSIZ "invalid (or unsupported) size of long int %d."
19 #define ZEDA_WARN_INT_SHRTSIZ "size of int in ZBD file = %d, while sizeof(int) = %ld; might lose information."
20 #define ZEDA_WARN_LNG_SHRTSIZ "size of long in ZBD file = %d, while sizeof(long) = %ld; might lose information."
21 
22 #define ZEDA_WARN_INVHEX "invalid hexadecimal notation: %c"
23 
24 #define ZEDA_WARN_TOOLNG_BITWIDTH "too large bit width. the result might be wrong."
25 
26 #define ZEDA_WARN_BUF_EXHAUSTED "exhausted buffer for string"
27 
28 #define ZEDA_WARN_TOOLNG_STR "too long string"
29 #define ZEDA_WARN_TOOLNG_TKN "too long string to tokenize"
30 #define ZEDA_WARN_TOOLNG_NUM "too long number"
31 
32 #define ZEDA_WARN_INDEX_SIZMIS "index has only %d components, while specified size is %d"
33 
34 #define ZEDA_WARN_CSV_FIELD_EMPTY "field empty"
35 
36 #define ZEDA_WARN_ZTK_INCLUDE_DUP "%s: duplicate file inclusion, skipped."
37 #define ZEDA_WARN_ZTK_NOT_TAGGED "not in a tagged field, skipped."
38 #define ZEDA_WARN_ZTK_DUPDEF "duplicate entry of tag [%s], skipped."
39 
40 #define ZEDA_WARN_ZTK_TOOMANY_TAGS "too many tag %s specified, skipped."
41 #define ZEDA_WARN_ZTK_TOOMANY_KEYS "too many key %s specified, skipped."
42 
43 #define ZEDA_WARN_UNKNOWNOPT "unknown option: %s"
44 
45 /* error messages */
46 
47 #define ZEDA_ERR_NOT_ZBD "not a ZBD file."
48 #define ZEDA_ERR_ENDIAN_CHK_NOT_FOUND "endian checker not found."
49 #define ZEDA_ERR_VERSION_NOT_FOUND "version info not found."
50 #define ZEDA_ERR_INTSIZ_NOT_FOUND "size of int not found."
51 #define ZEDA_ERR_LNGSIZ_NOT_FOUND "size of long not found."
52 #define ZEDA_ERR_UNKNOWN_ENDIAN "unknown endian."
53 
54 #define ZEDA_ERR_EMPTY_STRING "empty string"
55 
56 #define ZEDA_ERR_SIZUNFOUND_INDEX "index size not specified"
57 
58 #define ZEDA_ERR_LIST2INDEX_FAILED "cannot create an integer vector from an empty list"
59 
60 #define ZEDA_ERR_CSV_INVALID "invalid CSV file"
61 #define ZEDA_ERR_CSV_INVALID_LINE "out-of-range line number %d specified"
62 
63 #define ZEDA_ERR_FATAL "fatal error! - please report to the author"
64 
65 #endif /* __ZEDA_ERRMSG_H__ */