6 * Copyright 1986, 1987, 1988 by MIT Information Systems and
7 * the MIT Student Information Processing Board.
9 * This file may be copied under the terms of the GNU Public License.
18 #include "error_table.h"
26 struct error_table et;
29 extern struct et_list * _et_list;
32 int init_error_table(const char * const *msgs, int base, int count)
34 int init_error_table(msgs, base, count)
35 const char * const * msgs;
40 struct foobar * new_et;
42 if (!base || !count || !msgs)
45 new_et = (struct foobar *) malloc(sizeof(struct foobar));
47 return ENOMEM; /* oops */
48 new_et->etl.table = &new_et->et;
49 new_et->et.msgs = msgs;
50 new_et->et.base = base;
51 new_et->et.n_msgs= count;
53 new_et->etl.next = _et_list;
54 _et_list = &new_et->etl;