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.
18 #include "error_table.h"
19 #include "mit-sipb-copyright.h"
27 struct error_table et;
30 extern struct et_list * _et_list;
33 int init_error_table(const char * const *msgs, int base, int count)
35 int init_error_table(msgs, base, count)
36 const char * const * msgs;
41 struct foobar * new_et;
43 if (!base || !count || !msgs)
46 new_et = (struct foobar *) malloc(sizeof(struct foobar));
48 return ENOMEM; /* oops */
49 new_et->etl.table = &new_et->et;
50 new_et->et.msgs = msgs;
51 new_et->et.base = base;
52 new_et->et.n_msgs= count;
54 new_et->etl.next = _et_list;
55 _et_list = &new_et->etl;