From 40e7bc245077dc16c6ec5f6cc54039b1e6fda1d5 Mon Sep 17 00:00:00 2001 From: steve Date: Tue, 30 Oct 2001 21:46:56 +0000 Subject: [PATCH] line number in line directive is for the *next* line. --- lexor.lex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lexor.lex b/lexor.lex index de4e737a2..2699235cd 100644 --- a/lexor.lex +++ b/lexor.lex @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: lexor.lex,v 1.64 2001/10/20 23:02:40 steve Exp $" +#ident "$Id: lexor.lex,v 1.65 2001/10/30 21:46:56 steve Exp $" #endif # include "config.h" @@ -1048,6 +1048,8 @@ static void line_directive2() cp += strspn(cp, " "); yylloc.first_line = strtoul(cp,&cp,10); + yylloc.first_line -= 1; + cp += strspn(cp, " "); if (*cp == 0) return;