home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / mac / main.c < prev    next >
C/C++ Source or Header  |  1994-10-23  |  2KB  |  53 lines

  1. /* RCS      -- $Header: /u5/dvadura/src/public/dmake/src/mac/RCS/main.c,v 1.1 1994/10/06 17:42:59 dvadura Exp $
  2. -- SYNOPSIS -- The real main function
  3. --
  4. -- DESCRIPTION
  5. --  In order to get the third argument to main(), which is a list of
  6. --  environmental variables, we have #defined main to dmakemain,
  7. --  and put the real main here.
  8. --
  9. --  The environmental variables are placed in the environ global variable
  10. --  and set up for processing by dmake in make_env().
  11. --
  12. -- AUTHOR
  13. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  14. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  15. --
  16. --
  17. -- COPYRIGHT
  18. --      Copyright (c) 1992,1994 by Dennis Vadura.  All rights reserved.
  19. -- 
  20. --      This program is free software; you can redistribute it and/or
  21. --      modify it under the terms of the GNU General Public License
  22. --      (version 1), as published by the Free Software Foundation, and
  23. --      found in the file 'LICENSE' included with this distribution.
  24. -- 
  25. --      This program is distributed in the hope that it will be useful,
  26. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  27. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  28. --      GNU General Public License for more details.
  29. -- 
  30. --      You should have received a copy of the GNU General Public License
  31. --      along with this program;  if not, write to the Free Software
  32. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  33. --
  34. -- LOG
  35. --     $Log: main.c,v $
  36.  * Revision 1.1  1994/10/06  17:42:59  dvadura
  37.  * dmake Release Version 4.0, Initial revision
  38.  *
  39. */
  40.  
  41. #include "extern.h"
  42.  
  43.  
  44.  
  45. /*
  46.  * Put envp in environ and call dmake's main().
  47.  */
  48. #undef main
  49. void main (int argc, char *argv[], char *envp[]) {
  50.     environ = envp;
  51.     dmakemain (argc, argv);
  52. } /* void main () */
  53.