This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cpplib bunch of minor fixes


On Thu, 04 Feb 1999 14:49:01 -0500, Dave Brolley wrote:
>OK.....I was able to build this with in a clean build directory. I didn't see 
>any other problems,
>so I installed it.

Cool... and here's another one.  It fixes an ugly formatting bug in
the error code, fallout from the merge.

I can commit this stuff now, so if you're busy just send me a yes/no.

zw

1999-02-04 15:52 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>

	* cpperror.c (cpp_print_containing_files): Fix formatting bugs
	induced by the merge.

============================================================
Index: cpperror.c
--- cpperror.c	1999/01/30 18:58:05	1.14
+++ cpperror.c	1999/02/04 20:50:21
@@ -63,16 +63,16 @@
 	  if (first)
 	    {
 	      first = 0;
-	      cpp_notice ("In file included from ");
+	      cpp_notice ("In file included from %s:%ld",
+			  ip->nominal_fname, line);
 	    }
 	  else
-	    cpp_notice (",\n                 from ");
+	    cpp_message (pfile, -1, ",\n                 from %s:%ld",
+			 ip->nominal_fname, line);
 	}
-
-      fprintf (stderr, " from %s:%ld", ip->nominal_fname, line);
     }
   if (! first)
-    fprintf (stderr, ":\n");
+    fputs (":\n", stderr);
 
   /* Record we have printed the status as of this time.  */
   pfile->input_stack_listing_current = 1;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]