Tue, 05 Nov 2019 21:07:41 -0500
Add some NULL checks to silence scan-build.
| 2086 | 1 | /* |
| 2 | * Copyright 1988 by the Student Information Processing Board of the | |
| 3 | * Massachusetts Institute of Technology. | |
| 4 | * | |
| 5 | * For copyright info, see mit-sipb-copyright.h. | |
| 6 | */ | |
| 7 | ||
|
39819
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
15435
diff
changeset
|
8 | #ifndef PURPLE_ZEPHYR_ERROR_TABLE_H |
|
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
15435
diff
changeset
|
9 | #define PURPLE_ZEPHYR_ERROR_TABLE_H |
|
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
15435
diff
changeset
|
10 | |
| 2086 | 11 | struct error_table { |
| 12 | char const * const * msgs; | |
| 13 | long base; | |
| 14 | int n_msgs; | |
| 15 | }; | |
| 16 | struct et_list { | |
| 17 | struct et_list *next; | |
| 18 | const struct error_table *table; | |
| 19 | }; | |
| 20 | extern struct et_list * _et_list; | |
| 21 | ||
| 22 | #define ERRCODE_RANGE 8 /* # of bits to shift table number */ | |
| 23 | #define BITS_PER_CHAR 6 /* # bits to shift per character in name */ | |
| 24 | ||
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
12323
diff
changeset
|
25 | const char *error_table_name(void); |
|
39819
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
15435
diff
changeset
|
26 | |
|
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
15435
diff
changeset
|
27 | #endif /* PURPLE_ZEPHYR_ERROR_TABLE_H */ |