summaryrefslogtreecommitdiff
path: root/reformat-code
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2002-06-03 00:24:22 +0000
committerMichael Jennings <mej@kainx.org>2002-06-03 00:24:22 +0000
commit981b29c8950aa25559cca3f65dcbc293bae94e4f (patch)
tree6713b67d2300583467acca78bf17315223c22030 /reformat-code
parent6df3396a5d8b8d5426693a789ebd2042688dd7a0 (diff)
downloadeterm-981b29c8950aa25559cca3f65dcbc293bae94e4f.tar.gz
Sun Jun 2 20:23:07 2002 Michael Jennings (mej)
Latest Escreen patch along with twin support from Azundris. SVN revision: 6297
Diffstat (limited to 'reformat-code')
-rwxr-xr-xreformat-code15
1 files changed, 11 insertions, 4 deletions
diff --git a/reformat-code b/reformat-code
index 1de1c1e..d50b5d8 100755
--- a/reformat-code
+++ b/reformat-code
@@ -1,10 +1,17 @@
#!/bin/sh
+TYPENAMES=""
+
+for i in button_t buttonbar_t menu_t menuitem_t ; do
+ TYPENAMES="$TYPENAMES -T $i"
+done
+
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 -i4 -l140 -lp -lps -nbc -npcs -nss -nsob -psl $i
- fi
+ if test -f $i; then
+ echo Reformatting $i
+ indent -bad -bap -bbo -br -brs -cdw -ce -ci4 -cli2 -cs -di1 -i4 -l180 \
+ -lp -lps -nbc -nbfda -npcs -nprs -nsob -nss -nut -psl -saf -sai -saw $TYPENAMES $i
+ fi
done
perl -p -i.bak -e 's/(\w+)_t (\*+)\s+/$1_t $2/g;' */*.[ch]