~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to gas/depend.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-03-18 13:07:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050318130752-j4i37zgqclj53b94
Tags: 2.15-5ubuntu2
debian/rules: Call pkgstriptranslations if present (the package does not
use debhelper, thus it does not happen automatically).

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
/* Current column in output file.  */
36
36
static int column = 0;
37
37
 
38
 
static int quote_string_for_make PARAMS ((FILE *, char *));
39
 
static void wrap_output PARAMS ((FILE *, char *, int));
 
38
static int quote_string_for_make (FILE *, char *);
 
39
static void wrap_output (FILE *, char *, int);
40
40
 
41
41
/* Number of columns allowable.  */
42
42
#define MAX_COLUMNS 72
45
45
   never called, then dependency tracking is simply skipped.  */
46
46
 
47
47
void
48
 
start_dependencies (filename)
49
 
     char *filename;
 
48
start_dependencies (char *filename)
50
49
{
51
50
  dep_file = filename;
52
51
}
54
53
/* Noticed a new filename, so try to register it.  */
55
54
 
56
55
void
57
 
register_dependency (filename)
58
 
     char *filename;
 
56
register_dependency (char *filename)
59
57
{
60
58
  struct dependency *dep;
61
59
 
81
79
   This code is taken from gcc with only minor changes.  */
82
80
 
83
81
static int
84
 
quote_string_for_make (file, src)
85
 
     FILE *file;
86
 
     char *src;
 
82
quote_string_for_make (FILE *file, char *src)
87
83
{
88
84
  char *p = src;
89
85
  int i = 0;
145
141
   wrapping as necessary.  */
146
142
 
147
143
static void
148
 
wrap_output (f, string, spacer)
149
 
     FILE *f;
150
 
     char *string;
151
 
     int spacer;
 
144
wrap_output (FILE *f, char *string, int spacer)
152
145
{
153
146
  int len = quote_string_for_make (NULL, string);
154
147
 
186
179
/* Print dependency file.  */
187
180
 
188
181
void
189
 
print_dependencies ()
 
182
print_dependencies (void)
190
183
{
191
184
  FILE *f;
192
185
  struct dependency *dep;