FreeBSD/usr.bin/xlint/lint1/err.c
/*
 * XXX I think the logic is possibly somewhat screwed up here. The
 * question is, how do we want to interpret the -s and -S flags going
 * forward? We need to answer that and then we can fix this to be
 * "right"... [perry, 2 Nov 2002]
*/
XXX I think the logic is possibly somewhat screwed up here. The
question is, how do we want to interpret the -s and -S flags going
forward. We need to answer that and then we can fix this to be
"right"...
XXX I think the logic is possibly somewhat screwed up here . The question is how do we want to interpret the - s and - S flags going forward . We need to answer that and then we can fix this to be " right " ...
int
c99ism(int n, ...)
{
	va_list	ap;
	int	msg;
	va_start(ap, n);
	if (sflag && !(Sflag || gflag)) {
		verror(n, ap);
		msg = 1;
	} else if (!sflag && (Sflag || gflag)) {
		msg = 0;
	} else {
		vwarning(n, ap);
		msg = 1;
	}
	va_end(ap);
	return (msg);
}
int c99ism ( int n , ... ) { va_list ap ; int msg ; va_start ( ap , n ) ; if ( sflag && ! ( Sflag || gflag ) ) { verror ( n , ap ) ; msg = 1 ; } else if ( ! sflag && ( Sflag || gflag ) ) { msg = 0 ; } else { vwarning ( n , ap ) ; msg = 1 ; } va_end ( ap ) ; return ( msg ) ; }
XXX I think the logic is possibly somewhat screwed up here.
XXX I think the logic is possibly somewhat screwed up here .