File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / others / quipu / uips / pod / main.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno


#ifndef lint
static char *rcsid = "$Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/others/quipu/uips/pod/main.c,v 1.1.1.1 2018/04/24 16:12:56 root Exp $";
#endif

/*
 * $Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/others/quipu/uips/pod/main.c,v 1.1.1.1 2018/04/24 16:12:56 root Exp $
 */

/*
 * $Log: main.c,v $
 * Revision 1.1.1.1  2018/04/24 16:12:56  root
 * BSD 4.3reno
 *
 * Revision 7.0  90/06/12  13:15:50  mrose
 * *** empty log message ***
 * 
 * Revision 1.5  90/04/26  10:21:19  emsrdsm
 * *** empty log message ***
 * 
 * Revision 1.4  90/04/25  13:47:29  emsrdsm
 * i) lint'ed
 * 
 * Revision 1.3  90/04/20  10:28:23  emsrdsm
 * (i) fixed form bug
 * 
 * Revision 1.2  90/04/18  18:48:16  emsrdsm
 * i) added logging
 * 
 * Revision 1.1  90/04/10  16:44:12  emsrdsm
 * Initial revision
 * 
 */

#include "quipu/util.h"
#include "quipu/photo.h"
#include "quipu/common.h"
#include "quipu/entry.h"
#include "quipu/dua.h"
#include "pod.h"

#include <varargs.h>

extern int print_parse_errors;
extern podphoto();

extern Widget toplevel;

quipu_pe_cmp();

void
main (argc, argv)
int argc;
char **argv;
{
  char *name;
  print_parse_errors = FALSE;
  quipu_syntaxes();

  name = argv[0];

  argv[0] = "X-Directory";

  toplevel = XtInitialize("X-Directory", "Pod", NULL, 0,
                               &argc, argv);

  argv[0] = name;

  dsap_init(&argc, &argv);
  user_tailor();
  (void) fprintf (stderr,"Connecting to directory, please wait ...\n");
  cnnct_bind();
  set_attribute_syntax (str2syntax("photo"),
			(IFP)pe_cpy,    NULLIFP,
			NULLIFP,        podphoto,
			(IFP)pe_cpy,    quipu_pe_cmp,
			pe_free,        NULLCP,
			NULLIFP,        TRUE );
  init_widgets();
  Loop();
}

die(sig, str)
int     sig;
char    *str;
{
  (void) fprintf(stderr, str);
  (void) fprintf(stderr, "\n");
  quit (sig);
}

quit(sig)
int     sig;
{
  (void) ds_unbind();
  exit(sig);
}


void    advise (va_alist)
va_dcl
{
  int     code;
  va_list ap;
  extern LLog * log_dsap;

  va_start (ap);

  code = va_arg (ap, int);
  (void) _ll_log (log_dsap, code, ap);

  va_end (ap);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.