Tue, 05 Nov 2019 21:07:41 -0500
Add some NULL checks to silence scan-build.
| 2086 | 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 | */ | |
| 10 | ||
|
39819
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
15435
diff
changeset
|
11 | #ifndef PURPLE_ZEPHYR_COM_ERR_H |
|
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
15435
diff
changeset
|
12 | #define PURPLE_ZEPHYR_COM_ERR_H |
| 2086 | 13 | |
| 14 | #define COM_ERR_BUF_LEN 25 | |
| 15 | ||
|
39829
ce056c64e426
zephyr: Remove support for compilers without __STDC__.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39819
diff
changeset
|
16 | #include <stdarg.h> |
| 2086 | 17 | |
|
39829
ce056c64e426
zephyr: Remove support for compilers without __STDC__.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39819
diff
changeset
|
18 | typedef void (*error_handler_t)(const char *, long, const char *, va_list); |
| 2086 | 19 | extern error_handler_t com_err_hook; |
|
39829
ce056c64e426
zephyr: Remove support for compilers without __STDC__.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39819
diff
changeset
|
20 | void com_err(const char *, long, const char *, ...); |
|
ce056c64e426
zephyr: Remove support for compilers without __STDC__.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39819
diff
changeset
|
21 | const char *error_message(long); |
|
ce056c64e426
zephyr: Remove support for compilers without __STDC__.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39819
diff
changeset
|
22 | const char *error_message_r(long, char *); |
|
ce056c64e426
zephyr: Remove support for compilers without __STDC__.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39819
diff
changeset
|
23 | error_handler_t set_com_err_hook(error_handler_t); |
|
ce056c64e426
zephyr: Remove support for compilers without __STDC__.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39819
diff
changeset
|
24 | error_handler_t reset_com_err_hook(void); |
| 2086 | 25 | |
|
39819
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
15435
diff
changeset
|
26 | #endif /* PURPLE_ZEPHYR_COM_ERR_H */ |