svn commit: r205988 - head/usr.bin/indent
Andriy Gapon
avg at FreeBSD.org
Wed Mar 31 16:55:47 UTC 2010
Author: avg
Date: Wed Mar 31 16:55:47 2010
New Revision: 205988
URL: http://svn.freebsd.org/changeset/base/205988
Log:
indent(1): correctly handle case/label at the very start of a function
Obtained from: NetBSD (rev. 1.11 of indent.c)
MFC after: 1 week
Modified:
head/usr.bin/indent/indent.c
Modified: head/usr.bin/indent/indent.c
==============================================================================
--- head/usr.bin/indent/indent.c Wed Mar 31 16:42:22 2010 (r205987)
+++ head/usr.bin/indent/indent.c Wed Mar 31 16:55:47 2010 (r205988)
@@ -675,7 +675,7 @@ check_type:
ps.want_blank = true;
break;
}
- if (ps.in_decl) {
+ if (ps.in_or_st) {
*e_code++ = ':';
ps.want_blank = false;
break;
More information about the svn-src-all
mailing list