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

  1. /* RCS      -- $Header: /u2/dvadura/src/generic/dmake/src/mac/arlib.c,v 1.1 1992/01/24 03:29:41 dvadura Exp $
  2. -- SYNOPSIS -- Library access code.
  3. -- 
  4. -- DESCRIPTION
  5. --  This implementation uses the library timestamp inplace of the
  6. --  library member timestamp.
  7. --
  8. -- AUTHOR
  9. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  10. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  11. --
  12. -- COPYRIGHT
  13. --      Copyright (c) 1990 by Dennis Vadura.  All rights reserved.
  14. -- 
  15. --      This program is free software; you can redistribute it and/or
  16. --      modify it under the terms of the GNU General Public License
  17. --      (version 1), as published by the Free Software Foundation, and
  18. --      found in the file 'LICENSE' included with this distribution.
  19. -- 
  20. --      This program is distributed in the hope that it will be useful,
  21. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  22. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  23. --      GNU General Public License for more details.
  24. -- 
  25. --      You should have received a copy of the GNU General Public License
  26. --      along with this program;  if not, write to the Free Software
  27. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  28. --
  29. -- LOG
  30. --     $Log: arlib.c,v $
  31.  * Revision 1.1  1992/01/24  03:29:41  dvadura
  32.  * dmake Version 3.8, Initial revision
  33.  *
  34. */
  35.  
  36. #include "extern.h"
  37.  
  38. PUBLIC time_t
  39. seek_arch(char * /* name */, char *lib) {
  40.    static   int warned = FALSE;
  41.  
  42.    if (!warned && !(Glob_attr&A_SILENT))
  43.     warned = TRUE,
  44.     Warning("Can't extract library member timestamp;\n\
  45.     using library timestamp instead.");
  46.    return (Do_stat(lib, NULL, NULL));
  47. }
  48.  
  49. PUBLIC int
  50. touch_arch(char * /* name */, char *lib) {
  51.    static   int warned = FALSE;
  52.  
  53.    if (!warned && !(Glob_attr&A_SILENT))
  54.     warned = TRUE,
  55.     Warning("Can't update library member timestamp;\n\
  56.     touching library instead.");
  57.    return (Do_touch(lib, NULL, NULL));
  58. }
  59.