Source-Changes-HG archive

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

[src/trunk]: src/sys/kern add a Ignore directive



details:   https://anonhg.NetBSD.org/src/rev/ed8c256b6063
branches:  trunk
changeset: 538578:ed8c256b6063
user:      perry <perry%NetBSD.org@localhost>
date:      Wed Oct 23 00:10:30 2002 +0000

description:
add a Ignore directive

diffstat:

 sys/kern/genlintstub.awk |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r caded89604be -r ed8c256b6063 sys/kern/genlintstub.awk
--- a/sys/kern/genlintstub.awk  Tue Oct 22 23:47:40 2002 +0000
+++ b/sys/kern/genlintstub.awk  Wed Oct 23 00:10:30 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: genlintstub.awk,v 1.4 2001/05/16 04:17:04 perry Exp $
+#      $NetBSD: genlintstub.awk,v 1.5 2002/10/23 00:10:30 perry Exp $
 #
 # Copyright 2001 Wasabi Systems, Inc.
 # All rights reserved.
@@ -39,6 +39,10 @@
 # general, a .S file should have a special comment for anything with
 # something like an ENTRY designation. The special formats are:
 #
+# /* LINTSTUB: Ignore */
+# This is used as an indicator that the file contains no stubs at
+# all. It generates a /* LINTED */ comment to quiet lint.
+#
 # /* LINTSTUB: Func: type function(args) */
 # type must be void, int or long. A return is faked up for ints and longs.
 #
@@ -71,6 +75,10 @@
                printf "\n\n";
        }
 
+/^\/\* LINTSTUB: Empty.*\*\/[ \t]*$/ { 
+               printf "/* LINTED (empty translation unit) */\n";
+               next;
+       }
 
 /^\/\* LINTSTUB: Func:.*\)[ \t]*[;]?[ \t]+\*\/[ \t]*$/ { 
                if (($4 == "int") || ($4 == "long"))



Home | Main Index | Thread Index | Old Index