Racal Instruments 7064 Instruction Manual page 170

Table of Contents

Advertisement

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
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
: Fetches an

Advertisement

Table of Contents
loading

Related Products for Racal Instruments 7064

Table of Contents