/*
 * setup routine for xdsc
 */

#include <stdio.h>
#include <string.h>
#include <com_err.h>
#include <X11/Intrinsic.h>
#include "stuff.h"

int screen, argc;

setup()
{
    char *getenv();
    int code;

    whoami = argv[0];
    {
	register char *cp;
	cp = strrchr (whoami, '/');
	if (cp)
	    whoami = cp+1;
    }
    init_dsc_err_tbl();
    code = find_rc_filename();
    if (code) {
	com_err(whoami, code, " can't locate .meetings file");
	exit(1);
    }
    toplevel = XtInitialize("main", "DIscuss",
			    (XrmOptionDescRec *)NULL, 0,
			    &argc, argv);
    XSynchronize (XtDisplay (toplevel), 1);
}
