]> gcc.gnu.org Git - gcc.git/commitdiff
(output_dots): New function.
authorRichard Stallman <rms@gnu.org>
Tue, 28 Sep 1993 22:51:54 +0000 (22:51 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 28 Sep 1993 22:51:54 +0000 (22:51 +0000)
(do_include): Call it (to indent output for print_include_names).

From-SVN: r5512

gcc/cccp.c

index 7233ed7587a0ea136f3080e8dad4c3c162ac80b8..f8001c4f82521c269f4bf7e362b6eaf57feae5d3 100644 (file)
@@ -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 ();
 \f
 #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--;
+  }
+}
+  
 \f
 #ifdef VMS
 
This page took 0.070348 seconds and 5 git commands to generate.