line number in line directive is for the *next* line.

This commit is contained in:
steve 2001-10-30 21:46:56 +00:00
parent a9aaca1ffa
commit 40e7bc2450
1 changed files with 3 additions and 1 deletions

View File

@ -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;