-/*
- * $Source$
- * $Author$
- * $Header$
+/* $Id$
*
- * Copyright (C) 1987, 1990 by the Massachusetts Institute of Technology
- * For copying and distribution information, please see the file
- * <mit-copyright.h>.
+ * Initialize libmoira
+ *
+ * Copyright (C) 1987-1990 by the Massachusetts Institute of Technology
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
*/
-#ifndef lint
-static char *rcsid_sms_init_c = "$Header$";
-#endif
-
#include <mit-copyright.h>
+#include <moira.h>
#include "mr_private.h"
+RCSID("$Header$");
+
int mr_inited = 0;
-/* the reference to link_against_the_moira_version_of_gdb is to make
- * sure that this is built with the proper libraries.
- */
-mr_init()
+void mr_init(void)
{
- extern int link_against_the_moira_version_of_gdb;
- if (mr_inited) return;
-
- gdb_init();
- initialize_sms_error_table();
- initialize_krb_error_table();
- link_against_the_moira_version_of_gdb = 0;
- mr_inited=1;
+ if (mr_inited)
+ return;
+
+ initialize_sms_error_table();
+ initialize_krb_error_table();
+ initialize_ureg_error_table();
+ mr_inited = 1;
}