Commit 8ef2bf23 by Richard Kenner

(do_include): Prefix -H output lines with spaces, not dots.

(output_dots): Remove.

From-SVN: r10150
parent 3d130605
...@@ -1200,7 +1200,6 @@ static GENERIC_PTR xcalloc PROTO((size_t, size_t)); ...@@ -1200,7 +1200,6 @@ static GENERIC_PTR xcalloc PROTO((size_t, size_t));
static char *savestring PROTO((char *)); static char *savestring PROTO((char *));
static int file_size_and_mode PROTO((int, int *, long int *)); static int file_size_and_mode PROTO((int, int *, long int *));
static void output_dots PROTO((FILE *, int));
/* Read LEN bytes at PTR from descriptor DESC, for file FILENAME, /* Read LEN bytes at PTR from descriptor DESC, for file FILENAME,
retrying if necessary. Return a negative value if an error occurs, retrying if necessary. Return a negative value if an error occurs,
...@@ -4633,10 +4632,8 @@ get_filename: ...@@ -4633,10 +4632,8 @@ get_filename:
} }
/* Handle -H option. */ /* Handle -H option. */
if (print_include_names) { if (print_include_names)
output_dots (stderr, indepth); fprintf (stderr, "%*s%s\n", indepth, "", fname);
fprintf (stderr, "%s\n", fname);
}
if (angle_brackets) if (angle_brackets)
system_include_depth++; system_include_depth++;
...@@ -10030,18 +10027,6 @@ file_size_and_mode (fd, mode_pointer, size_pointer) ...@@ -10030,18 +10027,6 @@ file_size_and_mode (fd, mode_pointer, size_pointer)
if (size_pointer) *size_pointer = sbuf.st_size; if (size_pointer) *size_pointer = sbuf.st_size;
return 0; return 0;
} }
static void
output_dots (fd, depth)
FILE* fd;
int depth;
{
while (depth > 0) {
putc ('.', fd);
depth--;
}
}
#ifdef VMS #ifdef VMS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment