summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent/indent_globs.h
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2001-10-28 18:35:32 +0000
committerschweikh <schweikh@FreeBSD.org>2001-10-28 18:35:32 +0000
commitff38fb0e7374ef63944abf0515667857eaa6d61d (patch)
tree6313506ef1f3566b1b2f1a39f9d191e935e0f8bf /usr.bin/indent/indent_globs.h
parent9b2eb27d345f3db1323f41df8b2ca6995de7e001 (diff)
downloadFreeBSD-src-ff38fb0e7374ef63944abf0515667857eaa6d61d.zip
FreeBSD-src-ff38fb0e7374ef63944abf0515667857eaa6d61d.tar.gz
Make this compile cleanly when warnings are enabled:
- ANSIfy function declarations - braces around initializers structs within structs - add parens in complicated expressions - disambiguate dangling elses - no more implicit int - make functions static where possible - use prototypes - don't use varargs hack for diag() Requested by: joerg MFC after: 2 weeks
Diffstat (limited to 'usr.bin/indent/indent_globs.h')
-rw-r--r--usr.bin/indent/indent_globs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/indent/indent_globs.h b/usr.bin/indent/indent_globs.h
index 5f49f9c..f366560 100644
--- a/usr.bin/indent/indent_globs.h
+++ b/usr.bin/indent/indent_globs.h
@@ -157,7 +157,7 @@ int procnames_start_line; /* if true, the names of procedures
int proc_calls_space; /* If true, procedure calls look like:
* foo(bar) rather than foo (bar) */
int format_block_comments; /* true if comments beginning with
- * `/*\n' are to be reformatted */
+ * `/ * \n' are to be reformatted */
int format_col1_comments; /* If comments which start in column 1
* are to be magically reformatted
* (just like comments that begin in
@@ -220,7 +220,7 @@ struct parser_state {
float cstk[STACKSIZE];/* used to store case stmt indentation levels */
int box_com; /* set to true when we are in a "boxed"
* comment. In that case, the first non-blank
- * char should be lined up with the / in /* */
+ * char should be lined up with the / in / followed by * */
int comment_delta,
n_comment_delta;
int cast_mask; /* indicates which close parens close off
OpenPOWER on IntegriCloud