add a Ignore directive

This commit is contained in:
perry 2002-10-23 00:10:30 +00:00
parent 3634d1510d
commit 3f95da0362
1 changed files with 9 additions and 1 deletions

View File

@ -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 @@ BEGIN {
printf "\n\n";
}
/^\/\* LINTSTUB: Empty.*\*\/[ \t]*$/ {
printf "/* LINTED (empty translation unit) */\n";
next;
}
/^\/\* LINTSTUB: Func:.*\)[ \t]*[;]?[ \t]+\*\/[ \t]*$/ {
if (($4 == "int") || ($4 == "long"))