Formerly read.c.~57~
[make.git] / dep.h
blob1021c3aaf418eeb9a24dcc9779001e84bf6e8171
1 /* Copyright (C) 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
2 This file is part of GNU Make.
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 2, or (at your option)
7 any later version.
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.
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. */
18 /* Structure representing one dependency of a file.
19 Each struct file's `deps' points to a chain of these,
20 chained through the `next'.
22 Note that the first two words of this match a struct nameseq. */
24 struct dep
26 struct dep *next;
27 char *name;
28 struct file *file;
29 int changed;
33 /* Structure used in chains of names, for parsing and globbing. */
35 struct nameseq
37 struct nameseq *next;
38 char *name;
42 extern struct nameseq *multi_glob (), *parse_file_seq ();
45 #ifndef iAPX286
46 #define dep_name(d) ((d)->name == 0 ? (d)->file->name : (d)->name)
47 #else
48 /* Buggy compiler can't hack this. */
49 extern char *dep_name ();
50 #endif