indent(1): remove undocumented and rather useless option (-ps)
It's used to treat the "->" access operator as a binary operator and put space characters around it.
This commit is contained in:
parent
6bae6b2538
commit
5bdd850968
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334556
@ -154,7 +154,6 @@ struct pro {
|
||||
{"npcs", PRO_BOOL, false, OFF, &proc_calls_space},
|
||||
{"npro", PRO_SPECIAL, 0, IGN, 0},
|
||||
{"npsl", PRO_BOOL, true, OFF, &procnames_start_line},
|
||||
{"nps", PRO_BOOL, false, OFF, &pointer_as_binop},
|
||||
{"nsac", PRO_BOOL, false, OFF, &space_after_cast},
|
||||
{"nsc", PRO_BOOL, true, OFF, &star_comment_cont},
|
||||
{"nsob", PRO_BOOL, false, OFF, &swallow_optional_blanklines},
|
||||
@ -162,7 +161,6 @@ struct pro {
|
||||
{"nv", PRO_BOOL, false, OFF, &verbose},
|
||||
{"pcs", PRO_BOOL, false, ON, &proc_calls_space},
|
||||
{"psl", PRO_BOOL, true, ON, &procnames_start_line},
|
||||
{"ps", PRO_BOOL, false, ON, &pointer_as_binop},
|
||||
{"sac", PRO_BOOL, false, ON, &space_after_cast},
|
||||
{"sc", PRO_BOOL, true, ON, &star_comment_cont},
|
||||
{"sob", PRO_BOOL, false, ON, &swallow_optional_blanklines},
|
||||
|
@ -136,7 +136,6 @@ char *be_save; /* similarly saved value of buf_end */
|
||||
|
||||
|
||||
int found_err;
|
||||
int pointer_as_binop;
|
||||
int blanklines_after_declarations;
|
||||
int blanklines_before_blockcomments;
|
||||
int blanklines_after_procs;
|
||||
|
@ -546,11 +546,9 @@ lexi(void)
|
||||
else if (*buf_ptr == '>') {
|
||||
/* check for operator -> */
|
||||
*e_token++ = *buf_ptr++;
|
||||
if (!pointer_as_binop) {
|
||||
unary_delim = false;
|
||||
code = unary_op;
|
||||
ps.want_blank = false;
|
||||
}
|
||||
unary_delim = false;
|
||||
code = unary_op;
|
||||
ps.want_blank = false;
|
||||
}
|
||||
break; /* buffer overflow will be checked at end of
|
||||
* switch */
|
||||
|
Loading…
Reference in New Issue
Block a user