Prepare for automatic code formatting using Artistic Style.
authorGuus Sliepen <guus@sliepen.org>
Tue, 3 Oct 2017 19:22:39 +0000 (21:22 +0200)
committerGuus Sliepen <guus@sliepen.org>
Tue, 3 Oct 2017 19:22:39 +0000 (21:22 +0200)
.astylerc [new file with mode: 0644]
.gitignore
Makefile.am

diff --git a/.astylerc b/.astylerc
new file mode 100644 (file)
index 0000000..ba38946
--- /dev/null
+++ b/.astylerc
@@ -0,0 +1,10 @@
+--indent=tab=8
+--convert-tabs
+-j
+-f
+-A2
+-U
+-p
+-xg
+-k3
+-w
index da1d2ac..41d240d 100644 (file)
@@ -1,4 +1,6 @@
-.*.swp
+.*
+!.gitignore
+!.astylerc
 Makefile
 Makefile.in
 *.o
@@ -13,7 +15,6 @@ Makefile.in
 /install-sh
 /missing
 INSTALL
-.deps
 stamp-h1
 /src/device.c
 *.tar.gz*
@@ -27,4 +28,3 @@ stamp-h1
 /doc/*.t2p
 /ChangeLog
 core*
-.dirstamp
index 735f6d5..bfaf557 100644 (file)
@@ -10,3 +10,6 @@ EXTRA_DIST = COPYING.README README.android
 
 ChangeLog:
        git log > ChangeLog
+
+astyle:
+       astyle --options=.astylerc -nQ src/*.[ch] src/*/*.[ch]