pass -X <id>[,<id>]... and -w to lint1
This commit is contained in:
parent
ab89a2b0b0
commit
17ac48f4b1
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: xlint.c,v 1.19 2000/06/29 02:56:47 wrstuden Exp $ */
|
/* $NetBSD: xlint.c,v 1.20 2000/07/06 01:12:24 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
|
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
|
||||||
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__RCSID("$NetBSD: xlint.c,v 1.19 2000/06/29 02:56:47 wrstuden Exp $");
|
__RCSID("$NetBSD: xlint.c,v 1.20 2000/07/06 01:12:24 christos Exp $");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -286,13 +286,16 @@ usage()
|
|||||||
{
|
{
|
||||||
extern char *__progname;
|
extern char *__progname;
|
||||||
(void)fprintf(stderr,
|
(void)fprintf(stderr,
|
||||||
"Usage: %s [-abceghprvxzHF] [-s|-t] [-i|-nu] [-Dname[=def]] [-Uname]\n",
|
"Usage: %s [-abceghprvwxzHF] [-s|-t] [-i|-nu] [-Dname[=def]]"
|
||||||
__progname);
|
" [-Uname] [-X <id>[,<id>]...\n", __progname);
|
||||||
(void)fprintf(stderr,
|
(void)fprintf(stderr,
|
||||||
"\t[-Idirectory] [-Ldirectory] [-llibrary] [-ooutputfile] file ...\n");
|
"\t[-Idirectory] [-Ldirectory] [-llibrary] [-ooutputfile]"
|
||||||
|
" file...\n");
|
||||||
(void)fprintf(stderr,
|
(void)fprintf(stderr,
|
||||||
" %s [-abceghprvzHF] [-s|-t] -Clibrary [-Dname[=def]]\n", __progname);
|
" %s [-abceghprvwzHF] [-s|-t] -Clibrary [-Dname[=def]]\n"
|
||||||
(void)fprintf(stderr, "\t[-Idirectory] [-Uname] [-Bpath] file ...\n");
|
" [-X <id>[,<id>]...\n", __progname);
|
||||||
|
(void)fprintf(stderr, "\t[-Idirectory] [-Uname] [-Bpath] file"
|
||||||
|
" ...\n");
|
||||||
terminate(-1);
|
terminate(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -366,7 +369,7 @@ main(argc, argv)
|
|||||||
argv += optind;
|
argv += optind;
|
||||||
optind = 0;
|
optind = 0;
|
||||||
|
|
||||||
c = getopt(argc, argv, "abcd:eghil:no:prstuvxzB:C:D:FHI:L:U:V");
|
c = getopt(argc, argv, "abcd:eghil:no:prstuvwxzB:C:D:FHI:L:U:VX:");
|
||||||
|
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
|
||||||
@ -377,6 +380,7 @@ main(argc, argv)
|
|||||||
case 'g':
|
case 'g':
|
||||||
case 'r':
|
case 'r':
|
||||||
case 'v':
|
case 'v':
|
||||||
|
case 'w':
|
||||||
case 'z':
|
case 'z':
|
||||||
(void)sprintf(flgbuf, "-%c", c);
|
(void)sprintf(flgbuf, "-%c", c);
|
||||||
appcstrg(&l1flags, flgbuf);
|
appcstrg(&l1flags, flgbuf);
|
||||||
@ -392,6 +396,12 @@ main(argc, argv)
|
|||||||
appcstrg(&l2flags, flgbuf);
|
appcstrg(&l2flags, flgbuf);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'X':
|
||||||
|
(void)sprintf(flgbuf, "-%c", c);
|
||||||
|
appcstrg(&l1flags, flgbuf);
|
||||||
|
appcstrg(&l1flags, optarg);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'i':
|
case 'i':
|
||||||
if (Cflag)
|
if (Cflag)
|
||||||
usage();
|
usage();
|
||||||
|
Loading…
Reference in New Issue
Block a user