diff options
author | Jim Meyering <meyering@redhat.com> | 2010-04-08 18:39:24 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-04-08 19:29:42 +0200 |
commit | 699bcc4bd8166abb6ee26a37d9e1189817741277 (patch) | |
tree | b57f4c9bc3bf24c6b565f78966dc20ff98a4c36a /src/dosbuf.c | |
parent | e4f69c178ee9e68ecdbd743de669ec8c1388e40f (diff) | |
download | grep-699bcc4bd8166abb6ee26a37d9e1189817741277.tar.gz |
convert all TABs to equivalent spaces in indentation
Using this file,
cat > leading-blank.exempt <<\EOF
(?:^|\/)ChangeLog[^/]*$
(?:^|\/)(?:GNU)?[Mm]akefile[^/]*$
\.(?:am|mk)$
EOF
run this command to convert all non-conforming leading white
space to be all spaces:
git ls-files \
| pcregrep -vf leading-blank.exempt \
| xargs pcregrep -l '^ *\t' \
| xargs perl -MText::Tabs -ni -le \
'$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
Diffstat (limited to 'src/dosbuf.c')
-rw-r--r-- | src/dosbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dosbuf.c b/src/dosbuf.c index dc22682f..a4fbc574 100644 --- a/src/dosbuf.c +++ b/src/dosbuf.c @@ -125,8 +125,8 @@ undossify_input (char *buf, size_t buflen) { dos_pos_map_size = inp_map_idx ? inp_map_idx * 2 : 1000; dos_pos_map = xrealloc((char *)dos_pos_map, - dos_pos_map_size * - sizeof(struct dos_map)); + dos_pos_map_size * + sizeof(struct dos_map)); } if (!inp_map_idx) |