File: error_table.h

package info (click to toggle)
zephyr 2.0.4-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,792 kB
  • ctags: 2,989
  • sloc: ansic: 29,327; sh: 1,431; makefile: 955; yacc: 498; lex: 137; lisp: 127
file content (25 lines) | stat: -rwxr-xr-x 580 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright 1988 by the Student Information Processing Board of the
 * Massachusetts Institute of Technology.
 *
 * For copyright info, see mit-sipb-copyright.h.
 */

#ifndef _ET_H
struct error_table {
    char const * const * msgs;
    long base;
    int n_msgs;
};
struct et_list {
    struct et_list *next;
    const struct error_table *table;
};
extern struct et_list * _et_list;

#define	ERRCODE_RANGE	8	/* # of bits to shift table number */
#define	BITS_PER_CHAR	6	/* # bits to shift per character in name */

extern const char *error_table_name();
#define _ET_H
#endif