Module Name: src
Committed By: christos
Date: Sun Oct 2 19:45:10 UTC 2011
Modified Files:
src/usr.bin/xlint/lint1: scan.l
Log Message:
eat the last d in double constants.
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/usr.bin/xlint/lint1/scan.l
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint1/scan.l
diff -u src/usr.bin/xlint/lint1/scan.l:1.48 src/usr.bin/xlint/lint1/scan.l:1.49
--- src/usr.bin/xlint/lint1/scan.l:1.48 Thu Dec 16 12:42:29 2010
+++ src/usr.bin/xlint/lint1/scan.l Sun Oct 2 15:45:10 2011
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scan.l,v 1.48 2010/12/16 17:42:29 wiz Exp $ */
+/* $NetBSD: scan.l,v 1.49 2011/10/02 19:45:10 christos Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: scan.l,v 1.48 2010/12/16 17:42:29 wiz Exp $");
+__RCSID("$NetBSD: scan.l,v 1.49 2011/10/02 19:45:10 christos Exp $");
#endif
#include <stdlib.h>
@@ -716,6 +716,8 @@ fcon(void)
typ = LDOUBLE;
len--;
} else {
+ if (c == 'd' || c == 'D')
+ len--;
typ = DOUBLE;
}
@@ -741,7 +743,7 @@ fcon(void)
errno = 0;
break;
default:
- LERROR("fcon()");
+ LERROR("fcon(%s->%s)", cp, eptr);
}
}
if (errno != 0)