Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/gas/depend.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* depend.c - Handle dependency tracking.
    2    Copyright 1997, 1998, 2000 Free Software Foundation, Inc.
     2   Copyright 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
    33
    44   This file is part of GAS, the GNU Assembler.
     
    2222
    2323/* 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 };
     24static char * dep_file = NULL;
     25
     26struct dependency
     27  {
     28    char * file;
     29    struct dependency * next;
     30  };
    3031
    3132/* All the files we depend on.  */
    32 static struct dependency *dep_chain = NULL;
     33static struct dependency * dep_chain = NULL;
    3334
    3435/* Current column in output file.  */
     
    8889  char *p = src;
    8990  int i = 0;
     91
    9092  for (;;)
    9193    {
    9294      char c = *p++;
     95
    9396      switch (c)
    9497        {
     
    104107               contexts should not be doubled.  */
    105108            char *q;
     109
    106110            for (q = p - 1; src < q && q[-1] == '\\'; q--)
    107111              {
     
    192196    return;
    193197
    194   f = fopen (dep_file, "w");
     198  f = fopen (dep_file, FOPEN_WT);
    195199  if (f == NULL)
    196200    {
    197       as_warn (_("Can't open `%s' for writing"), dep_file);
     201      as_warn (_("can't open `%s' for writing"), dep_file);
    198202      return;
    199203    }
     
    207211
    208212  if (fclose (f))
    209     as_warn (_("Can't close `%s'"), dep_file);
    210 }
     213    as_warn (_("can't close `%s'"), dep_file);
     214}
Note: See TracChangeset for help on using the changeset viewer.