Interface to error handler:
The error handler is passed the error descriptor and a pointer to a variable argument list
containing additional 'printf paramaters, if any. The application-specific error handler can use
the macros provided in error.h to analyze the error descriptor and take a p p r o p r i a t e action;
it's also free to ignore additional 'printf' arguments, if any exist. It is called with this interface:
application_error handler(unsigned errdes, void *argp)
where,
errdes : the error descriptor
argp : a pointer to a printf-style variable argument list
The Intermetrics C cross compiler supports neither the ANSI-standard nor the original UNIX-
style "variable argument" lists. A proprietary scheme is used instead; the declarations and macros
are found in the file "rt.h". They are:
ARGPTYPE: Data type of a variable-argument-list pointer A R G O : Fetches an
argument from a variable argument list A R G I N C ( ) : Increments pointer to point to next
argument in list
PUBLIC FUNCTIONS:
execerror()
:
Executive error handler
set_error_handler() : Set application-specific error handler
PRIVATE FUNCTIONS:
Strictly speaking, these functions should be declared 'static'. However, they have been declared
global in case the application-specific error handler wishes to make use of them.
error_ handler() : Default VT1 error handler
error_msg_lookupO : Lookup error message string given error descriptor
SEE ALSO:
error.h: VXI Tech. error include file.
rt.h : Intermetrics "run-time", contains non-standard 'var-args' package
REFERENCES:
"The C Programming Language", 2nd ed., by K&R.
p 155: Example usage of variable argument lists
p 202: Argument promotion rules for variable argument lists
p 254: Specification of ANSI <stdarg.h> package
C-2
Summary of Contents for 7064
Page 2: ...Racal Instruments...
Page 6: ...I 1 1 1 1 1...
Page 21: ...I 1 I I I I I I I I I 1 1 I I I I I I...
Page 29: ...I I I I I I I I I I I I I I I I I I I...
Page 57: ...1 I I I I I I I I I I I I I I I I I I...
Page 77: ...1...
Page 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...
Page 112: ......
Page 113: ...7 30 I I I 1 I I I I I I I I I I I I I I I...
Page 115: ...7 32...
Page 148: ......
Page 164: ...I I I I I I I I I I 1 I I I I I I I I...
Page 176: ...extern char error_msg_lookup unsigned errdes endif ERROR_INCLUDE C 8...