summaryrefslogtreecommitdiff
path: root/reformat-code
blob: 6f39fbd7305b9f52fd85ed94ec0b179a882eb79b (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

for i in *.c src/*.c utils/*.c ; do
  if test -f $i; then
    echo Reformatting $i
    indent -bap -br -ce -ci4 -cli2 -cs -di1 -i2 -l140 -lp -lps -nbc -npcs -nss -nsob -psl $i
  fi
done

perl -p -i.bak -e 's/(\w+)_t (\*+)\s+/$1_t ($2)/g;' */*.[ch]