diff options
author | Richard Stallman <rms@gnu.org> | 1993-09-28 22:51:54 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-09-28 22:51:54 +0000 |
commit | 334eb1429838a9e89acbc0080f90097a66c9b51f (patch) | |
tree | 88222773016ada314538f6f2dca9cf3e7bf824df | |
parent | 42102505b4172e492419fe193041dbcfa2b0bbd9 (diff) | |
download | gcc-334eb1429838a9e89acbc0080f90097a66c9b51f.zip gcc-334eb1429838a9e89acbc0080f90097a66c9b51f.tar.gz gcc-334eb1429838a9e89acbc0080f90097a66c9b51f.tar.bz2 |
(output_dots): New function.
(do_include): Call it (to indent output for print_include_names).
From-SVN: r5512
-rw-r--r-- | gcc/cccp.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -312,6 +312,7 @@ static U_CHAR *skip_paren_group (); static char *check_precompiled (); /* static struct macrodef create_definition (); [moved below] */ static void dump_single_macro (); +static void output_dots (); #ifndef FAILURE_EXIT_CODE #define FAILURE_EXIT_CODE 33 /* gnu cc command understands this */ @@ -4095,8 +4096,10 @@ get_filename: } /* Handle -H option. */ - if (print_include_names) + if (print_include_names) { + output_dots (stderr, indepth); fprintf (stderr, "%s\n", fname); + } if (angle_brackets) system_include_depth++; @@ -8943,6 +8946,18 @@ file_size_and_mode (fd, mode_pointer, size_pointer) if (size_pointer) *size_pointer = sbuf.st_size; return 0; } + +static void +output_dots (fd, depth) + FILE* fd; + int depth; +{ + while (depth > 0) { + putc ('.', fd); + depth--; + } +} + #ifdef VMS |