I'm running indent
with arguments -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1
, all is good except two obstacles:
1) It tends to put an extra space after *
in statements like mytype_t * my;
, i.e.
void my_function(my_type *ptr)
turns into
void my_function(my_type * ptr)
2) It places extra space after &
symbol in expressions like (uint16_t *) & q->drops
i.e.
stats->drops = (uint16_t *) &q->drops
turns into
stats->drops = (uint16_t *) & q->drops
Running indent
with -nss
or without -ss
does not solve the problem.
Is there a way to tell indent
not to do this? If not, what are the alternatives to indent
?
Thanks.
SOLUTION
% indent -T my_type -T uint16_t