![background image](http://html2.mh-extra.com/html/racal-instruments/7064/7064_instruction-manual_3127022170.webp)
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
Содержание 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...