bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: line number mixup


From: Paul D. Smith
Subject: Re: line number mixup
Date: Fri, 19 Mar 2004 00:32:15 -0500

You're right; that's a bug.  Here's a patch.  It'll be fixed in GNUmake
3.81.


--- read.c      21 Jan 2004 06:33:00 -0000      1.130
+++ read.c      19 Mar 2004 05:31:51 -0000
@@ -1277,8 +1277,8 @@
       unsigned int len;
       char *line;
 
-      ebuf->floc.lineno += nlines;
       nlines = readline (ebuf);
+      ebuf->floc.lineno += nlines;
 
       /* If there is nothing left to eval, we're done. */
       if (nlines < 0)

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]