diff options
| author | Rong-En Fan <rafan@FreeBSD.org> | 2008-11-09 14:08:54 +0000 |
|---|---|---|
| committer | Rong-En Fan <rafan@FreeBSD.org> | 2008-11-09 14:08:54 +0000 |
| commit | 6181f4622a00a9de81df01cecb5fa73ffdb697bc (patch) | |
| tree | c963ba08ac935d7f048b78517309fe6fc2f496e6 /misc/ncu-indent | |
| parent | c0e48ca1322e978a8f9795a5ddb251df2479f930 (diff) | |
Notes
Diffstat (limited to 'misc/ncu-indent')
| -rwxr-xr-x | misc/ncu-indent | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/ncu-indent b/misc/ncu-indent index 1e1c7fffaeb2..862a108a3b31 100755 --- a/misc/ncu-indent +++ b/misc/ncu-indent @@ -1,6 +1,6 @@ #!/bin/sh #**************************************************************************** -#* Copyright (c) 2001-2005,2006 Thomas E. Dickey * +#* Copyright (c) 2001-2006,2008 Thomas E. Dickey * #* * #* Permission is hereby granted, free of charge, to any person obtaining a * #* copy of this software and associated documentation files (the * @@ -26,7 +26,7 @@ #* sale, use or other dealings in this Software without prior written * #* authorization. * #****************************************************************************/ -# $Id: ncu-indent,v 1.16 2006/02/18 17:02:22 tom Exp $ +# $Id: ncu-indent,v 1.17 2008/08/03 15:46:44 tom Exp $ NOOP=no OPTS=' --blank-lines-after-procedures @@ -87,6 +87,7 @@ do rm -f "$save" "$test" mv "$name" "$save" sed \ + -e '/EMPTY_MODULE(/s/)$/);/' \ -e '/MODULE_ID(/s/)$/);/' \ -e 's,\<GCC_NORETURN;,;//GCC_NORETURN;,' \ -e 's,\<GCC_PRINTFLIKE(,;//GCC_PRINTFLIKE(,' \ @@ -98,6 +99,7 @@ do # ${INDENT_PROG-indent} --version ${INDENT_PROG-indent} -npro $OPTS "$name" sed \ + -e '/EMPTY_MODULE(/s/);$/)/' \ -e '/MODULE_ID(/s/);$/)/' \ -e 's,;[ ]*//GCC_NORETURN;, GCC_NORETURN;,' \ -e 's,;[ ]*//GCC_PRINTFLIKE(, GCC_PRINTFLIKE(,' \ |
