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

1.1     ! root        1: /* $Header: /f/osi/others/quipu/uips/xd/RCS/main.c,v 7.0 90/06/12 13:10:51 mrose Exp $ */
        !             2: #ifndef lint
        !             3:        static char *rcsid = "$Id: main.c,v 7.0 90/06/12 13:10:51 mrose Exp $";
        !             4: #endif
        !             5: /*
        !             6:  $Log: main.c,v $
        !             7:  * Revision 7.0  90/06/12  13:10:51  mrose
        !             8:  * *** empty log message ***
        !             9:  * 
        !            10:  * Revision 1.5  90/04/26  10:22:42  emsrssn
        !            11:  * Installation fixed
        !            12:  * 
        !            13:  * 
        !            14:  * Revision 1.4  90/04/25  17:28:12  emsrssn
        !            15:  * Lint tidy up
        !            16:  * 
        !            17:  * 
        !            18:  * Revision 1.3  90/04/19  13:54:14  emsrssn
        !            19:  * keyboard accelerator now activates button highlight.
        !            20:  * 
        !            21:  * search types available is dependent on current position
        !            22:  * to prevent unreasonable searches.
        !            23:  * 
        !            24:  * the help popup changes automatically depending on the 
        !            25:  * position of the cursor
        !            26:  * 
        !            27:  * buttons remain a fixed size when the application is
        !            28:  * resized
        !            29:  * 
        !            30:  * command line options are now handled properly
        !            31:  * 
        !            32:  * logging added
        !            33:  * 
        !            34:  * "reads" are now sorted to show mail address at top etc.
        !            35:  * 
        !            36:  * 
        !            37:  * Revision 1.2  90/03/09  15:57:32  emsrssn
        !            38:  * First public distribution
        !            39:  * 
        !            40:  * 
        !            41:  * Revision 1.1  90/03/08  13:18:40  emsrssn
        !            42:  * Initial revision
        !            43:  * 
        !            44:  * 
        !            45: */
        !            46: 
        !            47: #include "quipu/util.h"
        !            48: #include <varargs.h>
        !            49: #include <X11/Intrinsic.h>
        !            50: 
        !            51: extern void Loop(), xprint(), init_widgets();
        !            52: extern int print_parse_errors;
        !            53: extern XtAppContext app_con;
        !            54: extern Widget toplevel;
        !            55: 
        !            56: char *local_dit;
        !            57: 
        !            58: void
        !            59: main (argc, argv)
        !            60: int argc;
        !            61: char **argv;
        !            62: {
        !            63:   print_parse_errors = FALSE;
        !            64:   
        !            65:   toplevel = XtAppInitialize(&app_con, "Xd", NULL, 0,
        !            66:                              &argc, argv, NULL , NULL, 0);
        !            67: 
        !            68:   quipu_syntaxes();
        !            69:   dsap_init(&argc, &argv);
        !            70:   user_tailor();
        !            71:   init_widgets();
        !            72:   cnnct_bind();
        !            73:   Set_Search_Area(local_dit);
        !            74:   Loop();
        !            75:   free_memory();     /* frees up memory used for result_list & lookback_list */
        !            76: }
        !            77: 
        !            78: 
        !            79: die(sig, str)
        !            80: int     sig;
        !            81: char    *str;
        !            82: {
        !            83:   xprint(str);
        !            84:   quit (sig);
        !            85: }
        !            86: 
        !            87: quit(sig)
        !            88: int     sig;
        !            89: {
        !            90:   free_all();
        !            91:   (void) ds_unbind();
        !            92:   exit(sig);
        !            93: }
        !            94: 
        !            95: 
        !            96: void    advise (va_alist)
        !            97: va_dcl
        !            98: {
        !            99:   va_list ap;
        !           100:   extern LLog * log_dsap;
        !           101: 
        !           102:   va_start (ap);
        !           103:   (void) va_arg (ap, int);
        !           104:   va_end (ap);
        !           105: }

unix.superglobalmegacorp.com

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