Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/common Deal with void * types. Approved by Ch...



details:   https://anonhg.NetBSD.org/src/rev/340e3cbc8f51
branches:  trunk
changeset: 582030:340e3cbc8f51
user:      skd <skd%NetBSD.org@localhost>
date:      Tue Jun 14 03:40:31 2005 +0000

description:
Deal with void * types.  Approved by Christos.

diffstat:

 usr.bin/xlint/common/tyname.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r cd98a3534a1e -r 340e3cbc8f51 usr.bin/xlint/common/tyname.c
--- a/usr.bin/xlint/common/tyname.c     Tue Jun 14 01:07:36 2005 +0000
+++ b/usr.bin/xlint/common/tyname.c     Tue Jun 14 03:40:31 2005 +0000
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tyname.c,v 1.1 2005/04/07 16:28:40 christos Exp $");
+__RCSID("$NetBSD: tyname.c,v 1.2 2005/06/14 03:40:31 skd Exp $");
 #endif
 
 #include <ctype.h>
@@ -76,6 +76,7 @@
        case FLOAT:     return "float";
        case DOUBLE:    return "double";
        case LDOUBLE:   return "long double";
+       case VOID:      return "void";
        case PTR:       return "pointer";
        case ENUM:      return "enum";
        case STRUCT:    return "struct";
@@ -117,6 +118,7 @@
        case FLOAT:
        case DOUBLE:
        case LDOUBLE:
+       case VOID:
        case FUNC:
                (void)snprintf(buf, bufsiz, "%s", s);
                break;



Home | Main Index | Thread Index | Old Index