Annotation of 43BSDReno/contrib/isode-beta/others/quipu/uips/pod/main.c, revision 1.1.1.1

1.1       root        1: 
                      2: #ifndef lint
                      3: static char *rcsid = "$Header: /f/osi/others/quipu/uips/pod/RCS/main.c,v 7.0 90/06/12 13:15:50 mrose Exp $";
                      4: #endif
                      5: 
                      6: /*
                      7:  * $Header: /f/osi/others/quipu/uips/pod/RCS/main.c,v 7.0 90/06/12 13:15:50 mrose Exp $
                      8:  */
                      9: 
                     10: /*
                     11:  * $Log:       main.c,v $
                     12:  * Revision 7.0  90/06/12  13:15:50  mrose
                     13:  * *** empty log message ***
                     14:  * 
                     15:  * Revision 1.5  90/04/26  10:21:19  emsrdsm
                     16:  * *** empty log message ***
                     17:  * 
                     18:  * Revision 1.4  90/04/25  13:47:29  emsrdsm
                     19:  * i) lint'ed
                     20:  * 
                     21:  * Revision 1.3  90/04/20  10:28:23  emsrdsm
                     22:  * (i) fixed form bug
                     23:  * 
                     24:  * Revision 1.2  90/04/18  18:48:16  emsrdsm
                     25:  * i) added logging
                     26:  * 
                     27:  * Revision 1.1  90/04/10  16:44:12  emsrdsm
                     28:  * Initial revision
                     29:  * 
                     30:  */
                     31: 
                     32: #include "quipu/util.h"
                     33: #include "quipu/photo.h"
                     34: #include "quipu/common.h"
                     35: #include "quipu/entry.h"
                     36: #include "quipu/dua.h"
                     37: #include "pod.h"
                     38: 
                     39: #include <varargs.h>
                     40: 
                     41: extern int print_parse_errors;
                     42: extern podphoto();
                     43: 
                     44: extern Widget toplevel;
                     45: 
                     46: quipu_pe_cmp();
                     47: 
                     48: void
                     49: main (argc, argv)
                     50: int argc;
                     51: char **argv;
                     52: {
                     53:   char *name;
                     54:   print_parse_errors = FALSE;
                     55:   quipu_syntaxes();
                     56: 
                     57:   name = argv[0];
                     58: 
                     59:   argv[0] = "X-Directory";
                     60: 
                     61:   toplevel = XtInitialize("X-Directory", "Pod", NULL, 0,
                     62:                                &argc, argv);
                     63: 
                     64:   argv[0] = name;
                     65: 
                     66:   dsap_init(&argc, &argv);
                     67:   user_tailor();
                     68:   (void) fprintf (stderr,"Connecting to directory, please wait ...\n");
                     69:   cnnct_bind();
                     70:   set_attribute_syntax (str2syntax("photo"),
                     71:                        (IFP)pe_cpy,    NULLIFP,
                     72:                        NULLIFP,        podphoto,
                     73:                        (IFP)pe_cpy,    quipu_pe_cmp,
                     74:                        pe_free,        NULLCP,
                     75:                        NULLIFP,        TRUE );
                     76:   init_widgets();
                     77:   Loop();
                     78: }
                     79: 
                     80: die(sig, str)
                     81: int     sig;
                     82: char    *str;
                     83: {
                     84:   (void) fprintf(stderr, str);
                     85:   (void) fprintf(stderr, "\n");
                     86:   quit (sig);
                     87: }
                     88: 
                     89: quit(sig)
                     90: int     sig;
                     91: {
                     92:   (void) ds_unbind();
                     93:   exit(sig);
                     94: }
                     95: 
                     96: 
                     97: void    advise (va_alist)
                     98: va_dcl
                     99: {
                    100:   int     code;
                    101:   va_list ap;
                    102:   extern LLog * log_dsap;
                    103: 
                    104:   va_start (ap);
                    105: 
                    106:   code = va_arg (ap, int);
                    107:   (void) _ll_log (log_dsap, code, ap);
                    108: 
                    109:   va_end (ap);
                    110: }

unix.superglobalmegacorp.com

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