Changeset 609 for branches/GNU/src/binutils/gas/depend.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/gas/depend.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* depend.c - Handle dependency tracking. 2 Copyright 1997, 1998, 2000 Free Software Foundation, Inc.2 Copyright 1997, 1998, 2000, 2001 Free Software Foundation, Inc. 3 3 4 4 This file is part of GAS, the GNU Assembler. … … 22 22 23 23 /* The file to write to, or NULL if no dependencies being kept. */ 24 static char *dep_file = NULL; 25 26 struct dependency { 27 char *file; 28 struct dependency *next; 29 }; 24 static char * dep_file = NULL; 25 26 struct dependency 27 { 28 char * file; 29 struct dependency * next; 30 }; 30 31 31 32 /* All the files we depend on. */ 32 static struct dependency * dep_chain = NULL;33 static struct dependency * dep_chain = NULL; 33 34 34 35 /* Current column in output file. */ … … 88 89 char *p = src; 89 90 int i = 0; 91 90 92 for (;;) 91 93 { 92 94 char c = *p++; 95 93 96 switch (c) 94 97 { … … 104 107 contexts should not be doubled. */ 105 108 char *q; 109 106 110 for (q = p - 1; src < q && q[-1] == '\\'; q--) 107 111 { … … 192 196 return; 193 197 194 f = fopen (dep_file, "w");198 f = fopen (dep_file, FOPEN_WT); 195 199 if (f == NULL) 196 200 { 197 as_warn (_(" Can't open `%s' for writing"), dep_file);201 as_warn (_("can't open `%s' for writing"), dep_file); 198 202 return; 199 203 } … … 207 211 208 212 if (fclose (f)) 209 as_warn (_(" Can't close `%s'"), dep_file);210 } 213 as_warn (_("can't close `%s'"), dep_file); 214 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.