Deleted Added
full compact
args.c (127256) args.c (131184)
1/*
2 * Copyright (c) 1985 Sun Microsystems, Inc.
3 * Copyright (c) 1980, 1993
4 * The Regents of the University of California. All rights reserved.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 26 unchanged lines hidden (view full) ---

35
36#if 0
37#ifndef lint
38static char sccsid[] = "@(#)args.c 8.1 (Berkeley) 6/6/93";
39#endif /* not lint */
40#endif
41
42#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1985 Sun Microsystems, Inc.
3 * Copyright (c) 1980, 1993
4 * The Regents of the University of California. All rights reserved.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 26 unchanged lines hidden (view full) ---

35
36#if 0
37#ifndef lint
38static char sccsid[] = "@(#)args.c 8.1 (Berkeley) 6/6/93";
39#endif /* not lint */
40#endif
41
42#include <sys/cdefs.h>
43__FBSDID("$FreeBSD: head/usr.bin/indent/args.c 127256 2004-03-21 04:47:54Z des $");
43__FBSDID("$FreeBSD: head/usr.bin/indent/args.c 131184 2004-06-27 10:58:37Z schweikh $");
44
45/*
46 * Argument scanning and profile reading code. Default parameters are set
47 * here as well.
48 */
49
50#include <ctype.h>
51#include <err.h>

--- 54 unchanged lines hidden (view full) ---

106 {"cli", PRO_SPECIAL, 0, CLI, 0},
107 {"c", PRO_INT, 33, 0, &ps.com_ind},
108 {"di", PRO_INT, 16, 0, &ps.decl_indent},
109 {"dj", PRO_BOOL, false, ON, &ps.ljust_decl},
110 {"d", PRO_INT, 0, 0, &ps.unindent_displace},
111 {"eei", PRO_BOOL, false, ON, &extra_expression_indent},
112 {"ei", PRO_BOOL, true, ON, &ps.else_if},
113 {"fbc", PRO_FONT, 0, 0, (int *) &blkcomf},
44
45/*
46 * Argument scanning and profile reading code. Default parameters are set
47 * here as well.
48 */
49
50#include <ctype.h>
51#include <err.h>

--- 54 unchanged lines hidden (view full) ---

106 {"cli", PRO_SPECIAL, 0, CLI, 0},
107 {"c", PRO_INT, 33, 0, &ps.com_ind},
108 {"di", PRO_INT, 16, 0, &ps.decl_indent},
109 {"dj", PRO_BOOL, false, ON, &ps.ljust_decl},
110 {"d", PRO_INT, 0, 0, &ps.unindent_displace},
111 {"eei", PRO_BOOL, false, ON, &extra_expression_indent},
112 {"ei", PRO_BOOL, true, ON, &ps.else_if},
113 {"fbc", PRO_FONT, 0, 0, (int *) &blkcomf},
114 {"fbs", PRO_BOOL, true, ON, &function_brace_split},
114 {"fbx", PRO_FONT, 0, 0, (int *) &boxcomf},
115 {"fb", PRO_FONT, 0, 0, (int *) &bodyf},
116 {"fc1", PRO_BOOL, true, ON, &format_col1_comments},
117 {"fcb", PRO_BOOL, true, ON, &format_block_comments},
118 {"fc", PRO_FONT, 0, 0, (int *) &scomf},
119 {"fk", PRO_FONT, 0, 0, (int *) &keywordf},
120 {"fs", PRO_FONT, 0, 0, (int *) &stringf},
121 {"ip", PRO_BOOL, true, ON, &ps.indent_parameters},

--- 9 unchanged lines hidden (view full) ---

131 {"nbbb", PRO_BOOL, false, OFF, &blanklines_before_blockcomments},
132 {"nbc", PRO_BOOL, true, ON, &ps.leave_comma},
133 {"nbs", PRO_BOOL, false, OFF, &Bill_Shannon},
134 {"ncdb", PRO_BOOL, true, OFF, &comment_delimiter_on_blankline},
135 {"nce", PRO_BOOL, true, OFF, &cuddle_else},
136 {"ndj", PRO_BOOL, false, OFF, &ps.ljust_decl},
137 {"neei", PRO_BOOL, false, OFF, &extra_expression_indent},
138 {"nei", PRO_BOOL, true, OFF, &ps.else_if},
115 {"fbx", PRO_FONT, 0, 0, (int *) &boxcomf},
116 {"fb", PRO_FONT, 0, 0, (int *) &bodyf},
117 {"fc1", PRO_BOOL, true, ON, &format_col1_comments},
118 {"fcb", PRO_BOOL, true, ON, &format_block_comments},
119 {"fc", PRO_FONT, 0, 0, (int *) &scomf},
120 {"fk", PRO_FONT, 0, 0, (int *) &keywordf},
121 {"fs", PRO_FONT, 0, 0, (int *) &stringf},
122 {"ip", PRO_BOOL, true, ON, &ps.indent_parameters},

--- 9 unchanged lines hidden (view full) ---

132 {"nbbb", PRO_BOOL, false, OFF, &blanklines_before_blockcomments},
133 {"nbc", PRO_BOOL, true, ON, &ps.leave_comma},
134 {"nbs", PRO_BOOL, false, OFF, &Bill_Shannon},
135 {"ncdb", PRO_BOOL, true, OFF, &comment_delimiter_on_blankline},
136 {"nce", PRO_BOOL, true, OFF, &cuddle_else},
137 {"ndj", PRO_BOOL, false, OFF, &ps.ljust_decl},
138 {"neei", PRO_BOOL, false, OFF, &extra_expression_indent},
139 {"nei", PRO_BOOL, true, OFF, &ps.else_if},
140 {"nfbs", PRO_BOOL, true, OFF, &function_brace_split},
139 {"nfc1", PRO_BOOL, true, OFF, &format_col1_comments},
140 {"nfcb", PRO_BOOL, true, OFF, &format_block_comments},
141 {"nip", PRO_BOOL, true, OFF, &ps.indent_parameters},
142 {"nlp", PRO_BOOL, true, OFF, &lineup_to_parens},
143 {"npcs", PRO_BOOL, false, OFF, &proc_calls_space},
144 {"npro", PRO_SPECIAL, 0, IGN, 0},
145 {"npsl", PRO_BOOL, true, OFF, &procnames_start_line},
146 {"nps", PRO_BOOL, false, OFF, &pointer_as_binop},
147 {"nsc", PRO_BOOL, true, OFF, &star_comment_cont},
148 {"nsob", PRO_BOOL, false, OFF, &swallow_optional_blanklines},
141 {"nfc1", PRO_BOOL, true, OFF, &format_col1_comments},
142 {"nfcb", PRO_BOOL, true, OFF, &format_block_comments},
143 {"nip", PRO_BOOL, true, OFF, &ps.indent_parameters},
144 {"nlp", PRO_BOOL, true, OFF, &lineup_to_parens},
145 {"npcs", PRO_BOOL, false, OFF, &proc_calls_space},
146 {"npro", PRO_SPECIAL, 0, IGN, 0},
147 {"npsl", PRO_BOOL, true, OFF, &procnames_start_line},
148 {"nps", PRO_BOOL, false, OFF, &pointer_as_binop},
149 {"nsc", PRO_BOOL, true, OFF, &star_comment_cont},
150 {"nsob", PRO_BOOL, false, OFF, &swallow_optional_blanklines},
151 {"nut", PRO_BOOL, true, OFF, &use_tabs},
149 {"nv", PRO_BOOL, false, OFF, &verbose},
150 {"pcs", PRO_BOOL, false, ON, &proc_calls_space},
151 {"psl", PRO_BOOL, true, ON, &procnames_start_line},
152 {"ps", PRO_BOOL, false, ON, &pointer_as_binop},
153 {"sc", PRO_BOOL, true, ON, &star_comment_cont},
154 {"sob", PRO_BOOL, false, ON, &swallow_optional_blanklines},
155 {"st", PRO_SPECIAL, 0, STDIN, 0},
156 {"troff", PRO_BOOL, false, ON, &troff},
152 {"nv", PRO_BOOL, false, OFF, &verbose},
153 {"pcs", PRO_BOOL, false, ON, &proc_calls_space},
154 {"psl", PRO_BOOL, true, ON, &procnames_start_line},
155 {"ps", PRO_BOOL, false, ON, &pointer_as_binop},
156 {"sc", PRO_BOOL, true, ON, &star_comment_cont},
157 {"sob", PRO_BOOL, false, ON, &swallow_optional_blanklines},
158 {"st", PRO_SPECIAL, 0, STDIN, 0},
159 {"troff", PRO_BOOL, false, ON, &troff},
160 {"ut", PRO_BOOL, true, ON, &use_tabs},
157 {"v", PRO_BOOL, false, ON, &verbose},
158 /* whew! */
159 {0, 0, 0, 0, 0}
160};
161
162/*
163 * set_profile reads $HOME/.indent.pro and ./.indent.pro and handles arguments
164 * given in these files.

--- 158 unchanged lines hidden ---
161 {"v", PRO_BOOL, false, ON, &verbose},
162 /* whew! */
163 {0, 0, 0, 0, 0}
164};
165
166/*
167 * set_profile reads $HOME/.indent.pro and ./.indent.pro and handles arguments
168 * given in these files.

--- 158 unchanged lines hidden ---