home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / DMAKE38C.ZIP / MAC / BOGUS.C < prev    next >
C/C++ Source or Header  |  1992-01-23  |  3KB  |  93 lines

  1. /* RCS      -- $Header: /u2/dvadura/src/generic/dmake/src/mac/bogus.c,v 1.1 1992/01/24 03:29:42 dvadura Exp $
  2. -- SYNOPSIS -- Write the shell of subroutines we can't or don't
  3. --             need to implement
  4. --
  5. -- DESCRIPTION
  6. --  dmake uses a couple of functions which I am either unable to figure out
  7. --  how to implement or which are not needed.  The shells of these routines
  8. --  are in this file.
  9. --
  10. -- AUTHOR
  11. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  12. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  13. --
  14. --
  15. -- COPYRIGHT
  16. --      Copyright (c) 1990 by Dennis Vadura.  All rights reserved.
  17. -- 
  18. --      This program is free software; you can redistribute it and/or
  19. --      modify it under the terms of the GNU General Public License
  20. --      (version 1), as published by the Free Software Foundation, and
  21. --      found in the file 'LICENSE' included with this distribution.
  22. -- 
  23. --      This program is distributed in the hope that it will be useful,
  24. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  25. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  26. --      GNU General Public License for more details.
  27. -- 
  28. --      You should have received a copy of the GNU General Public License
  29. --      along with this program;  if not, write to the Free Software
  30. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  31. --
  32. -- LOG
  33. --     $Log: bogus.c,v $
  34.  * Revision 1.1  1992/01/24  03:29:42  dvadura
  35.  * dmake Version 3.8, Initial revision
  36.  *
  37. */
  38.  
  39. #include "extern.h"
  40.  
  41.  
  42.  
  43. /*
  44.  * tzset() is a Microsoft "extension" to ANSI C.  It sets global
  45.  * variables telling if we are in dayling savings time, the time
  46.  * zone, and difference between the current time and GMT.
  47.  * None of these globals are used by dmake, so this routine is
  48.  * not needed
  49.  */
  50. PUBLIC void tzset () {}
  51.  
  52.  
  53.  
  54. /*
  55.  * Add an environmental variable that child processes can use.
  56.  * Since MPW currently doesn't allow child processes, this isn't
  57.  * needed.
  58.  */
  59. PUBLIC int putenv (char * /* pEnvString */) {return (0);}
  60.  
  61.  
  62.  
  63. /*
  64.  * Execute a child process.  This may be able to be done with
  65.  * the MPW system() call someday, but cannot be done currently.
  66.  */
  67. PUBLIC int runargv (CELLPTR /* target */, int /* ignore */, int /* group */,
  68.                     int /* last */, int /* shell */, char * /* pCmd */) {
  69.     static int warned = FALSE;
  70.  
  71.     if (!warned && !(Glob_attr & A_SILENT)) {
  72.         warned = TRUE;
  73.         Fatal ("Can't execute any targets:  use '-n' option.");
  74.     } /* if */
  75.  
  76.     return (0);
  77. } /* int runargv () */
  78.  
  79.  
  80.  
  81. /*
  82.  * Wait for the child process to complete.  Only needed to be implemented
  83.  * if we could executing multiple processes at once.
  84.  */
  85. PUBLIC int Wait_for_child(int /* abort_flg */, int /* pid */) {return (1);}
  86.  
  87.  
  88.  
  89. /*
  90.  * Do any cleanup for any processes when we quit.
  91.  */
  92. PUBLIC void Clean_up_processes() {}
  93.