Browse Source

Prepare for automatic code formatting using Artistic Style.

Guus Sliepen 6 years ago
parent
commit
afcc90a501
3 changed files with 16 additions and 3 deletions
  1. 10 0
      .astylerc
  2. 3 3
      .gitignore
  3. 3 0
      Makefile.am

+ 10 - 0
.astylerc

@@ -0,0 +1,10 @@
+--indent=tab=8
+--convert-tabs
+-j
+-f
+-A2
+-U
+-p
+-xg
+-k3
+-w

+ 3 - 3
.gitignore

@@ -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

+ 3 - 0
Makefile.am

@@ -10,3 +10,6 @@ EXTRA_DIST = COPYING.README README.android
 
 ChangeLog:
 	git log > ChangeLog
+
+astyle:
+	astyle --options=.astylerc -nQ src/*.[ch] src/*/*.[ch]