DESCRIPTION: Package interface to run-time error module
An error descriptor is an unsigned integer composed of 4 bit fields:
field 1) Error severity field, 1 bit
field 2) Error type field, 2 bits
field 3) Line dump field, 1 bit
field 4) Error number, all remaining bits (2^12 for 16-bit unsigned ints)
The value of '0' is a reserved descriptor that denotes 'SUCCESS', i.e. no error condition.
In defining bit fields and macros associated with error descriptors, care must be taken to ensure
portability between host an target environments, since the size of an integer may not be the same.
NOTE! For backwards compatibility with old versions of VTX firmware:
1) Never delete an existing error descriptor.
2) Never redefine an existing error descriptor.
3) Always add new error descriptors to the end of the list.
4) Never define a 0-valued descriptor. 0 is a reserved descriptor.
PUBLIC MACROS:
errortype(ed) : returns error type
isfatal(ed) : TRUE i f error descriptor denotes a fatal error
iswarning(ed) : TRUE if error descriptor denotes a warning
issyntax(ed) : TRUE if error descriptor denotes a syntax error
isruntime(ed) : TRUE if error descriptor denotes a run-time error
isinternal(ed) : TRUE if error descriptor denotes an internal error
issuccess(ed) : TRUE if error descriptor denotes successful operation
iserror(ed) : TRUE if error descriptor denotes any kind of error
dolinedump(ed) : i f TRUE, dump current input line along/w error message
#ifndef ERROR_INCLUDE
#define ERROR_INCLUDE
#define E_NBITS (sizeof(unsigned)*8)
Error severity:
Error severity is considered either fatal or non-fatal. This
information is encoded into a 1-bit field.
C-3
Содержание 7064
Страница 2: ...Racal Instruments...
Страница 6: ...I 1 1 1 1 1...
Страница 21: ...I 1 I I I I I I I I I 1 1 I I I I I I...
Страница 29: ...I I I I I I I I I I I I I I I I I I I...
Страница 57: ...1 I I I I I I I I I I I I I I I I I I...
Страница 77: ...1...
Страница 111: ...0 00 0 00 tI I 4 0 0 I7 r i 6 4 7 4 7 0 T 6 0 0 7 28...
Страница 112: ......
Страница 113: ...7 30 I I I 1 I I I I I I I I I I I I I I I...
Страница 115: ...7 32...
Страница 124: ...CO 0 L5 F 4 BEAD 2 A C8 1 0 1 uF C9 01 uF T 0 1 uF 01 uF E12 0 IIIIII M I 11111 V I E M I 111111 I I I I I I N M I I...
Страница 148: ......
Страница 164: ...I I I I I I I I I I 1 I I I I I I I I...
Страница 176: ...extern char error_msg_lookup unsigned errdes endif ERROR_INCLUDE C 8...