]>
Commit | Line | Data |
---|---|---|
d1b2a10e | 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 | ||
a91a6d50 | 8 | #ifndef ET__H |
9 | #define ET__H | |
10 | ||
d1b2a10e | 11 | struct error_table { |
a91a6d50 | 12 | const char *const *msgs; |
d1b2a10e | 13 | long base; |
14 | int n_msgs; | |
15 | }; | |
16 | struct et_list { | |
17 | struct et_list *next; | |
18 | const struct error_table *table; | |
19 | }; | |
a91a6d50 | 20 | extern struct et_list *_et_list; |
d1b2a10e | 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 | ||
a91a6d50 | 25 | extern const char *error_table_name(int num); |
d1b2a10e | 26 | #endif |