Lines 1-12
Link Here
|
1 |
--- src/args.c.orig Tue Jun 25 14:00:57 2002 |
1 |
--- src/args.c.orig Mon Nov 11 06:02:48 2002 |
2 |
+++ src/args.c Tue Jun 25 14:16:00 2002 |
2 |
+++ src/args.c Mon Mar 1 20:21:53 2004 |
3 |
@@ -1,3 +1,5 @@ |
3 |
@@ -122,6 +122,7 @@ |
4 |
+#define BERKELEY_DEFAULTS 1 |
|
|
5 |
+ |
6 |
/* Copyright (c) 1999, 2000 Carlo Wood. All rights reserved. |
7 |
* Copyright (c) 1994 Joseph Arceneaux. All rights reserved. |
8 |
* Copyright (c) 1992 Free Software Foundation, Inc. All rights reserved. |
9 |
@@ -113,6 +115,7 @@ |
10 |
static int exp_hnl = 0; |
4 |
static int exp_hnl = 0; |
11 |
static int exp_i = 0; |
5 |
static int exp_i = 0; |
12 |
static int exp_ip = 0; |
6 |
static int exp_ip = 0; |
Lines 14-20
Link Here
|
14 |
static int exp_kr = 0; |
8 |
static int exp_kr = 0; |
15 |
static int exp_l = 0; |
9 |
static int exp_l = 0; |
16 |
static int exp_lc = 0; |
10 |
static int exp_lc = 0; |
17 |
@@ -179,6 +182,30 @@ |
11 |
@@ -189,6 +190,30 @@ |
18 |
* variable must share the explicit flag. */ |
12 |
* variable must share the explicit flag. */ |
19 |
} pro_ty; |
13 |
} pro_ty; |
20 |
|
14 |
|
Lines 45-51
Link Here
|
45 |
#ifdef BERKELEY_DEFAULTS |
39 |
#ifdef BERKELEY_DEFAULTS |
46 |
/* Settings for original defaults */ |
40 |
/* Settings for original defaults */ |
47 |
const pro_ty pro[] = |
41 |
const pro_ty pro[] = |
48 |
@@ -202,60 +229,63 @@ |
42 |
@@ -212,61 +237,64 @@ |
49 |
#endif |
43 |
#endif |
50 |
{"pi", PRO_INT, -1, ONOFF_NA, &settings.paren_indent, &exp_pi}, |
44 |
{"pi", PRO_INT, -1, ONOFF_NA, &settings.paren_indent, &exp_pi}, |
51 |
{"pcs", PRO_BOOL, false, ON, &settings.proc_calls_space, &exp_pcs}, |
45 |
{"pcs", PRO_BOOL, false, ON, &settings.proc_calls_space, &exp_pcs}, |
Lines 95-100
Link Here
|
95 |
+ {"ncdb", PRO_BOOL, false, OFF, &settings.comment_delimiter_on_blankline, &exp_cdb}, |
89 |
+ {"ncdb", PRO_BOOL, false, OFF, &settings.comment_delimiter_on_blankline, &exp_cdb}, |
96 |
{"nbs", PRO_BOOL, false, OFF, &settings.blank_after_sizeof, &exp_bs}, |
90 |
{"nbs", PRO_BOOL, false, OFF, &settings.blank_after_sizeof, &exp_bs}, |
97 |
{"nbfda", PRO_BOOL, false, OFF, &settings.break_function_decl_args, &exp_bfda}, |
91 |
{"nbfda", PRO_BOOL, false, OFF, &settings.break_function_decl_args, &exp_bfda}, |
|
|
92 |
{"nbfde", PRO_BOOL, false, OFF, &settings.break_function_decl_args_end, &exp_bfde}, |
98 |
{"nbc", PRO_BOOL, true, ON, &settings.leave_comma, &exp_bc}, |
93 |
{"nbc", PRO_BOOL, true, ON, &settings.leave_comma, &exp_bc}, |
99 |
- {"nbbo", PRO_BOOL, true, OFF, &settings.break_before_boolean_operator, &exp_bbo}, |
94 |
- {"nbbo", PRO_BOOL, true, OFF, &settings.break_before_boolean_operator, &exp_bbo}, |
100 |
- {"nbbb", PRO_BOOL, false, OFF, &settings.blanklines_before_blockcomments, &exp_bbb}, |
95 |
- {"nbbb", PRO_BOOL, false, OFF, &settings.blanklines_before_blockcomments, &exp_bbb}, |
Lines 135-144
Link Here
|
135 |
{"cp", PRO_INT, 33, ONOFF_NA, &settings.else_endif_col, &exp_cp}, |
130 |
{"cp", PRO_INT, 33, ONOFF_NA, &settings.else_endif_col, &exp_cp}, |
136 |
{"cli", PRO_INT, 0, ONOFF_NA, &settings.case_indent, &exp_cli}, |
131 |
{"cli", PRO_INT, 0, ONOFF_NA, &settings.case_indent, &exp_cli}, |
137 |
{"ci", PRO_INT, 4, ONOFF_NA, &settings.continuation_indent, &exp_ci}, |
132 |
{"ci", PRO_INT, 4, ONOFF_NA, &settings.continuation_indent, &exp_ci}, |
138 |
@@ -273,12 +303,12 @@ |
133 |
@@ -287,12 +315,12 @@ |
139 |
{"bli", PRO_INT, 0, ONOFF_NA, &settings.brace_indent, &exp_bli}, |
|
|
140 |
{"bl", PRO_BOOL, true, OFF, &settings.btype_2, &exp_bl}, |
134 |
{"bl", PRO_BOOL, true, OFF, &settings.btype_2, &exp_bl}, |
141 |
{"bfda", PRO_BOOL, false, ON, &settings.break_function_decl_args, &exp_bfda}, |
135 |
{"bfda", PRO_BOOL, false, ON, &settings.break_function_decl_args, &exp_bfda}, |
|
|
136 |
{"bfde", PRO_BOOL, false, ON, &settings.break_function_decl_args_end, &exp_bfde}, |
142 |
- {"bc", PRO_BOOL, true, OFF, &settings.leave_comma, &exp_bc}, |
137 |
- {"bc", PRO_BOOL, true, OFF, &settings.leave_comma, &exp_bc}, |
143 |
+ {"bc", PRO_BOOL, false, OFF, &settings.leave_comma, &exp_bc}, |
138 |
+ {"bc", PRO_BOOL, false, OFF, &settings.leave_comma, &exp_bc}, |
144 |
{"bbo", PRO_BOOL, true, ON, &settings.break_before_boolean_operator, &exp_bbo}, |
139 |
{"bbo", PRO_BOOL, true, ON, &settings.break_before_boolean_operator, &exp_bbo}, |
Lines 151-158
Link Here
|
151 |
+ {"bad", PRO_BOOL, true, ON, &settings.blanklines_after_declarations, &exp_bad}, |
146 |
+ {"bad", PRO_BOOL, true, ON, &settings.blanklines_after_declarations, &exp_bad}, |
152 |
{"bacc", PRO_BOOL, false, ON, &settings.blanklines_around_conditional_compilation, &exp_bacc}, |
147 |
{"bacc", PRO_BOOL, false, ON, &settings.blanklines_around_conditional_compilation, &exp_bacc}, |
153 |
{"T", PRO_KEY, 0, ONOFF_NA, 0, &exp_T}, |
148 |
{"T", PRO_KEY, 0, ONOFF_NA, 0, &exp_T}, |
154 |
/* Signify end of structure. */ |
149 |
{"ppi", PRO_INT, 0, ONOFF_NA, &settings.force_preproc_width, &exp_ppi}, |
155 |
@@ -309,7 +339,7 @@ |
150 |
@@ -324,7 +352,7 @@ |
156 |
#endif |
151 |
#endif |
157 |
{"pi", PRO_INT, -1, ONOFF_NA, &settings.paren_indent, &exp_pi}, |
152 |
{"pi", PRO_INT, -1, ONOFF_NA, &settings.paren_indent, &exp_pi}, |
158 |
{"pcs", PRO_BOOL, true, ON, &settings.proc_calls_space, &exp_pcs}, |
153 |
{"pcs", PRO_BOOL, true, ON, &settings.proc_calls_space, &exp_pcs}, |
Lines 161-167
Link Here
|
161 |
{"o", PRO_BOOL, false, ON, &settings.expect_output_file, &exp_o}, |
156 |
{"o", PRO_BOOL, false, ON, &settings.expect_output_file, &exp_o}, |
162 |
{"nv", PRO_BOOL, false, OFF, &settings.verbose, &exp_v}, |
157 |
{"nv", PRO_BOOL, false, OFF, &settings.verbose, &exp_v}, |
163 |
{"nut", PRO_BOOL, true, OFF, &settings.use_tabs, &exp_ut}, |
158 |
{"nut", PRO_BOOL, true, OFF, &settings.use_tabs, &exp_ut}, |
164 |
@@ -351,13 +381,14 @@ |
159 |
@@ -367,13 +395,14 @@ |
165 |
{"lp", PRO_BOOL, true, ON, &settings.lineup_to_parens, &exp_lp}, |
160 |
{"lp", PRO_BOOL, true, ON, &settings.lineup_to_parens, &exp_lp}, |
166 |
{"lc", PRO_INT, DEFAULT_RIGHT_COMMENT_MARGIN, ONOFF_NA, &settings.comment_max_col, &exp_lc}, |
161 |
{"lc", PRO_INT, DEFAULT_RIGHT_COMMENT_MARGIN, ONOFF_NA, &settings.comment_max_col, &exp_lc}, |
167 |
{"l", PRO_INT, DEFAULT_RIGHT_MARGIN, ONOFF_NA, &settings.max_col, &exp_l}, |
162 |
{"l", PRO_INT, DEFAULT_RIGHT_MARGIN, ONOFF_NA, &settings.max_col, &exp_l}, |
Lines 178-184
Link Here
|
178 |
{"fca", PRO_BOOL, false, ON, &settings.format_comments, &exp_fca}, |
173 |
{"fca", PRO_BOOL, false, ON, &settings.format_comments, &exp_fca}, |
179 |
{"fc1", PRO_BOOL, false, ON, &settings.format_col1_comments, &exp_fc1}, |
174 |
{"fc1", PRO_BOOL, false, ON, &settings.format_col1_comments, &exp_fc1}, |
180 |
{"eei", PRO_BOOL, false, ON, &settings.extra_expression_indent, &exp_eei}, |
175 |
{"eei", PRO_BOOL, false, ON, &settings.extra_expression_indent, &exp_eei}, |
181 |
@@ -507,6 +538,9 @@ |
176 |
@@ -531,6 +560,9 @@ |
182 |
{"blank-lines-after-declarations", "bad"}, |
177 |
{"blank-lines-after-declarations", "bad"}, |
183 |
{"blank-lines-after-commas", "bc"}, |
178 |
{"blank-lines-after-commas", "bc"}, |
184 |
{"blank-before-sizeof", "bs"}, |
179 |
{"blank-before-sizeof", "bs"}, |