]>
Commit | Line | Data |
---|---|---|
e728c1a2 | 1 | /* |
2 | * Header file for common error description library. | |
3 | * | |
4 | * Copyright 1988, Student Information Processing Board of the | |
5 | * Massachusetts Institute of Technology. | |
6 | * | |
7 | * For copyright and distribution info, see the documentation supplied | |
8 | * with this package. | |
9 | */ | |
6e6374cb | 10 | |
e728c1a2 | 11 | #ifndef __COM_ERR_H |
12 | ||
13 | #ifdef __STDC__ | |
14 | #ifndef __HIGHC__ /* gives us STDC but not stdarg */ | |
15 | #include <stdarg.h> | |
16 | #else | |
17 | #include <varargs.h> | |
18 | #endif | |
19 | /* ANSI C -- use prototypes etc */ | |
20 | void com_err (const char *, long, const char *, ...); | |
21 | char const *error_message (long); | |
22 | void (*com_err_hook) (const char *, long, const char *, va_list); | |
23 | void (*set_com_err_hook (void (*) (const char *, long, const char *, va_list))) | |
24 | (const char *, long, const char *, va_list); | |
25 | void (*reset_com_err_hook ()) (const char *, long, const char *, va_list); | |
6e6374cb | 26 | #else |
e728c1a2 | 27 | /* no prototypes */ |
28 | void com_err (); | |
29 | char *error_message (); | |
30 | void (*com_err_hook) (); | |
31 | void (*set_com_err_hook ()) (); | |
32 | void (*reset_com_err_hook ()) (); | |
33 | ||
34 | #define const | |
35 | #endif | |
36 | ||
37 | #define __COM_ERR_H | |
38 | #endif /* ! defined(__COM_ERR_H) */ |