Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/lint1 more descriptive aborts



details:   https://anonhg.NetBSD.org/src/rev/c2320750c2ae
branches:  trunk
changeset: 811132:c2320750c2ae
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 13 16:09:33 2015 +0000

description:
more descriptive aborts

diffstat:

 usr.bin/xlint/lint1/cgram.y |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r fd7b52da0319 -r c2320750c2ae usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Tue Oct 13 12:33:07 2015 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Tue Oct 13 16:09:33 2015 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.71 2015/07/28 17:56:56 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.72 2015/10/13 16:09:33 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: cgram.y,v 1.71 2015/07/28 17:56:56 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.72 2015/10/13 16:09:33 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -1972,7 +1972,7 @@
        case EXTERN:
                if (renaming != NULL) {
                        if (decl->s_rename != NULL)
-                               LERROR("idecl()");
+                               LERROR("idecl(rename)");
 
                        s = getlblk(1, renaming->sb_len + 1);
                        (void)memcpy(s, renaming->sb_name, renaming->sb_len + 1);
@@ -2000,7 +2000,7 @@
                decl1loc(decl, initflg);
                break;
        default:
-               LERROR("idecl()");
+               LERROR("idecl(%d)", dcs->d_ctx);
        }
 
        if (initflg && !initerr)



Home | Main Index | Thread Index | Old Index