aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2021-05-28 21:37:13 -0500
committerCalvin Rose <calsrose@gmail.com>2021-05-29 11:43:18 -0500
commit4d983e54b51276f21a6740f36ca6c438dced8c2f (patch)
treee2d6fd7b020d268dc8348b7c6a704d92693b1392 /tools
parentMake jpm configurable for environments like MinGW. (diff)
Initial struct prototype code.
Also add a number of cfunctions for manipulating structs with prototypes.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/format.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/format.sh b/tools/format.sh
index f5b4a88c..37e03f26 100755
--- a/tools/format.sh
+++ b/tools/format.sh
@@ -3,8 +3,11 @@
# Format all code with astyle
STYLEOPTS="--style=attach --indent-switches --convert-tabs \
- --align-pointer=name --pad-header --pad-oper --unpad-paren --indent-labels"
+ --align-pointer=name --pad-header --pad-oper --unpad-paren --indent-labels --formatted"
astyle $STYLEOPTS */*.c
astyle $STYLEOPTS */*/*.c
astyle $STYLEOPTS */*/*.h
+rm -f */*.c.orig
+rm -f */*/*.c.orig
+rm -f */*/*.h.orig