home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / GNU / MAK358AS.ZIP / DEP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-22  |  2.1 KB  |  72 lines

  1. /* Copyright (C) 1988, 1989 Free Software Foundation, Inc.
  2. This file is part of GNU Make.
  3.  
  4. GNU Make is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 1, or (at your option)
  7. any later version.
  8.  
  9. GNU Make is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with GNU Make; see the file COPYING.  If not, write to
  16. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. /*
  19.  * MS-DOS port (c) 1990 by Thorsten Ohl <ohl@gnu.ai.mit.edu>
  20.  *
  21.  * To this port, the same copying conditions apply as to the
  22.  * original release.
  23.  *
  24.  * IMPORTANT:
  25.  * This file is not identical to the original GNU release!
  26.  * You should have received this code as patch to the official
  27.  * GNU release.
  28.  *
  29.  * MORE IMPORTANT:
  30.  * This port comes with ABSOLUTELY NO WARRANTY.
  31.  *
  32.  * $Header: e:/gnu/make/RCS/dep.h'v 3.58.0.1 90/07/17 01:00:01 tho Exp $
  33.  */
  34.  
  35. /* Structure representing one dependency of a file.
  36.    Each struct file's `deps' points to a chain of these,
  37.    chained through the `next'.
  38.  
  39.    Note that the first three words of this match a struct nameseq.  */
  40.  
  41. struct dep
  42.   {
  43.     struct dep *next;
  44.     char *name;
  45.     struct file *file;
  46.     int changed;
  47.   };
  48.  
  49.  
  50. /* Structure used in chains of names, for parsing and globbing */
  51.  
  52. struct nameseq
  53.   {
  54.     struct nameseq *next;
  55.     char *name;
  56.   };
  57.  
  58. /* read.c */
  59. #ifdef  MSDOS
  60. extern  struct nameseq *multi_glob (struct nameseq *chain, unsigned int size);
  61. extern  struct nameseq *parse_file_seq (char **stringp, char stopchar, unsigned int size);
  62. #else /* not MSDOS */
  63. extern struct nameseq *multi_glob (), *parse_file_seq ();
  64. #endif /* not MSDOS */
  65.  
  66. #ifndef    iAPX286
  67. #define dep_name(d) ((d)->name == 0 ? (d)->file->name : (d)->name)
  68. #else
  69. /* Buggy compiler can't hack this.  */
  70. extern char *dep_name ();
  71. #endif
  72.