home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre4.z / postgre4 / src / main / main.c
Encoding:
C/C++ Source or Header  |  1992-08-27  |  694 b   |  34 lines

  1. /*---------------------------------------------------------------
  2.  *
  3.  * FILE: main.c
  4.  *
  5.  * $Header: /private/postgres/src/main/RCS/main.c,v 1.2 1991/05/13 01:49:14 kemnitz Exp $
  6.  *
  7.  * The reason that `main()' is defined in a separate file in a
  8.  * separate directory is to be able to easily link all the postgres
  9.  * code (as opposed to just cinterface.a) with test programs (which
  10.  * have their own `main').
  11.  *
  12.  */
  13.  
  14. main(argc, argv)
  15. int argc;
  16. char *argv[];
  17. {
  18.     if (argc > 1)
  19.     {
  20.         if (!strcmp(argv[1], "-boot"))
  21.     {
  22.         BootstrapMain(argc, argv);
  23.         }
  24.         else
  25.         {
  26.             PostgresMain(argc, argv);
  27.         }
  28.     }
  29.     else
  30.     {
  31.         PostgresMain(argc, argv);
  32.     }
  33. }
  34.