Module Name: src Committed By: christos Date: Sat Oct 13 18:26:03 UTC 2012
Modified Files: src/usr.bin/unifdef: unifdef.c Log Message: PR/47068: unifdef(1) with cpp directive on last line without newline Remove bogus test; if there is no newline, the state does not change. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/usr.bin/unifdef/unifdef.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/unifdef/unifdef.c diff -u src/usr.bin/unifdef/unifdef.c:1.21 src/usr.bin/unifdef/unifdef.c:1.22 --- src/usr.bin/unifdef/unifdef.c:1.21 Wed Feb 29 18:35:10 2012 +++ src/usr.bin/unifdef/unifdef.c Sat Oct 13 14:26:03 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: unifdef.c,v 1.21 2012/02/29 23:35:10 joerg Exp $ */ +/* $NetBSD: unifdef.c,v 1.22 2012/10/13 18:26:03 christos Exp $ */ /* * Copyright (c) 1985, 1993 @@ -77,7 +77,7 @@ static const char copyright[] = #endif #ifdef __IDSTRING __IDSTRING(Berkeley, "@(#)unifdef.c 8.1 (Berkeley) 6/6/93"); -__IDSTRING(NetBSD, "$NetBSD: unifdef.c,v 1.21 2012/02/29 23:35:10 joerg Exp $"); +__IDSTRING(NetBSD, "$NetBSD: unifdef.c,v 1.22 2012/10/13 18:26:03 christos Exp $"); __IDSTRING(dotat, "$dotat: things/unifdef.c,v 1.161 2003/07/01 15:32:48 fanf2 Exp $"); #endif #endif /* not lint */ @@ -655,9 +655,6 @@ get_line(void) if (incomment) linestate = LS_DIRTY; } - /* skipcomment should have changed the state */ - if (linestate == LS_HASH) - abort(); /* bug */ } if (linestate == LS_DIRTY) { while (*cp != '\0')