Module Name: src
Committed By: christos
Date: Fri Apr 18 00:20:37 UTC 2014
Modified Files:
src/usr.bin/xlint/lint1: decl.c
Log Message:
handle LDOUBLE
To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/usr.bin/xlint/lint1/decl.c
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/decl.c
diff -u src/usr.bin/xlint/lint1/decl.c:1.58 src/usr.bin/xlint/lint1/decl.c:1.59
--- src/usr.bin/xlint/lint1/decl.c:1.58 Sat Dec 14 22:43:37 2013
+++ src/usr.bin/xlint/lint1/decl.c Thu Apr 17 20:20:37 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.58 2013/12/15 03:43:37 christos Exp $ */
+/* $NetBSD: decl.c,v 1.59 2014/04/18 00:20:37 christos Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.58 2013/12/15 03:43:37 christos Exp $");
+__RCSID("$NetBSD: decl.c,v 1.59 2014/04/18 00:20:37 christos Exp $");
#endif
#include <sys/param.h>
@@ -757,6 +757,7 @@ deftyp(void)
break;
case DOUBLE:
if (l == LONG) {
+ case LDOUBLE:
l = NOTSPEC;
t = LDOUBLE;
if (tflag)
@@ -778,7 +779,7 @@ deftyp(void)
case LCOMPLEX:
break;
default:
- LERROR("deftyp()");
+ LERROR("deftyp(%s)", basictyname(t));
}
if (t != INT && t != CHAR && (s != NOTSPEC || l != NOTSPEC)) {
dcs->d_terr = 1;