Whamcloud - gitweb
31971f03d237827f697e1cd3dc7766c0ae2eeabb
[tools/e2fsprogs.git] / lib / et / error_table.h
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
8 #ifndef _ET_H
9 /* Are we using ANSI C? */
10 #ifndef __STDC__
11 #define const
12 #endif
13
14 struct error_table {
15     char const * const * msgs;
16     long base;
17     int n_msgs;
18 };
19 struct et_list {
20     struct et_list *next;
21     const struct error_table *table;
22 };
23 extern struct et_list * _et_list;
24
25 #define ERRCODE_RANGE   8       /* # of bits to shift table number */
26 #define BITS_PER_CHAR   6       /* # bits to shift per character in name */
27
28 #ifdef __STDC__
29 extern const char *error_table_name(int num);
30 #else
31 extern const char *error_table_name();
32 #endif
33
34 #define _ET_H
35 #endif