6 * Copyright 1986, 1987, 1988 by MIT Information Systems and
7 * the MIT Student Information Processing Board.
9 * For copyright info, see mit-sipb-copyright.h.
15 #include "error_table.h"
16 #include "mit-sipb-copyright.h"
18 static const char rcsid[] = "$Id$";
22 struct error_table et;
25 extern struct et_list *_et_list;
27 int init_error_table(const char *const *msgs, int base, int count)
29 struct foobar * new_et;
31 if (!base || !count || !msgs)
34 new_et = malloc(sizeof(struct foobar));
36 return errno; /* oops */
37 new_et->etl.table = &new_et->et;
38 new_et->et.msgs = msgs;
39 new_et->et.base = base;
40 new_et->et.n_msgs= count;
42 new_et->etl.next = _et_list;
43 _et_list = &new_et->etl;