diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-12-10 21:13:08 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-12-10 21:13:08 +0000 |
commit | d9613ea3837925885145ecab86d9945be73cb303 (patch) | |
tree | 1442452df82ec8f2c59ad6b71923e5a41a2c26fa /usr.bin/ctags | |
parent | 41ac2526112f730a179b27f89b169ad414cd947b (diff) | |
download | FreeBSD-src-d9613ea3837925885145ecab86d9945be73cb303.zip FreeBSD-src-d9613ea3837925885145ecab86d9945be73cb303.tar.gz |
Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:
1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.
Diffstat (limited to 'usr.bin/ctags')
-rw-r--r-- | usr.bin/ctags/C.c | 9 | ||||
-rw-r--r-- | usr.bin/ctags/ctags.c | 11 | ||||
-rw-r--r-- | usr.bin/ctags/fortran.c | 11 | ||||
-rw-r--r-- | usr.bin/ctags/lisp.c | 11 | ||||
-rw-r--r-- | usr.bin/ctags/print.c | 11 | ||||
-rw-r--r-- | usr.bin/ctags/tree.c | 11 | ||||
-rw-r--r-- | usr.bin/ctags/yacc.c | 11 |
7 files changed, 41 insertions, 34 deletions
diff --git a/usr.bin/ctags/C.c b/usr.bin/ctags/C.c index fcc037a..f7394c5 100644 --- a/usr.bin/ctags/C.c +++ b/usr.bin/ctags/C.c @@ -31,13 +31,14 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static char sccsid[] = "@(#)C.c 8.4 (Berkeley) 4/2/94"; #endif +#endif + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <limits.h> #include <stdio.h> diff --git a/usr.bin/ctags/ctags.c b/usr.bin/ctags/ctags.c index 3f74332..199ffb6 100644 --- a/usr.bin/ctags/ctags.c +++ b/usr.bin/ctags/ctags.c @@ -31,19 +31,20 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - #ifndef lint static const char copyright[] = "@(#) Copyright (c) 1987, 1993, 1994, 1995\n\ The Regents of the University of California. All rights reserved.\n"; #endif +#if 0 #ifndef lint -static const char sccsid[] = "@(#)ctags.c 8.4 (Berkeley) 2/7/95"; +static char sccsid[] = "@(#)ctags.c 8.4 (Berkeley) 2/7/95"; #endif +#endif + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <err.h> #include <limits.h> diff --git a/usr.bin/ctags/fortran.c b/usr.bin/ctags/fortran.c index 16845e5..2195606 100644 --- a/usr.bin/ctags/fortran.c +++ b/usr.bin/ctags/fortran.c @@ -31,13 +31,14 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint -static const char sccsid[] = "@(#)fortran.c 8.3 (Berkeley) 4/2/94"; +static char sccsid[] = "@(#)fortran.c 8.3 (Berkeley) 4/2/94"; #endif +#endif + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <ctype.h> #include <limits.h> diff --git a/usr.bin/ctags/lisp.c b/usr.bin/ctags/lisp.c index 293149a..b00a2a8 100644 --- a/usr.bin/ctags/lisp.c +++ b/usr.bin/ctags/lisp.c @@ -31,13 +31,14 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint -static const char sccsid[] = "@(#)lisp.c 8.3 (Berkeley) 4/2/94"; +static char sccsid[] = "@(#)lisp.c 8.3 (Berkeley) 4/2/94"; #endif +#endif + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <ctype.h> #include <limits.h> diff --git a/usr.bin/ctags/print.c b/usr.bin/ctags/print.c index b27ca54..36c790b 100644 --- a/usr.bin/ctags/print.c +++ b/usr.bin/ctags/print.c @@ -31,13 +31,14 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint -static const char sccsid[] = "@(#)print.c 8.3 (Berkeley) 4/2/94"; +static char sccsid[] = "@(#)print.c 8.3 (Berkeley) 4/2/94"; #endif +#endif + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <limits.h> #include <stdio.h> diff --git a/usr.bin/ctags/tree.c b/usr.bin/ctags/tree.c index 2be32a4..ac99639 100644 --- a/usr.bin/ctags/tree.c +++ b/usr.bin/ctags/tree.c @@ -31,13 +31,14 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint -static const char sccsid[] = "@(#)tree.c 8.3 (Berkeley) 4/2/94"; +static char sccsid[] = "@(#)tree.c 8.3 (Berkeley) 4/2/94"; #endif +#endif + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <err.h> #include <limits.h> diff --git a/usr.bin/ctags/yacc.c b/usr.bin/ctags/yacc.c index 4a0020b..f6f2c3f 100644 --- a/usr.bin/ctags/yacc.c +++ b/usr.bin/ctags/yacc.c @@ -31,13 +31,14 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint -static const char sccsid[] = "@(#)yacc.c 8.3 (Berkeley) 4/2/94"; +static char sccsid[] = "@(#)yacc.c 8.3 (Berkeley) 4/2/94"; #endif +#endif + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <ctype.h> #include <limits.h> |