Browse Source

Prepare for automatic code formatting using Artistic Style.

Guus Sliepen 2 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 View File

@@ -0,0 +1,10 @@
1
+--indent=tab=8
2
+--convert-tabs
3
+-j
4
+-f
5
+-A2
6
+-U
7
+-p
8
+-xg
9
+-k3
10
+-w

+ 3
- 3
.gitignore View File

@@ -1,4 +1,6 @@
1
-.*.swp
1
+.*
2
+!.gitignore
3
+!.astylerc
2 4
 Makefile
3 5
 Makefile.in
4 6
 *.o
@@ -13,7 +15,6 @@ Makefile.in
13 15
 /install-sh
14 16
 /missing
15 17
 INSTALL
16
-.deps
17 18
 stamp-h1
18 19
 /src/device.c
19 20
 *.tar.gz*
@@ -27,4 +28,3 @@ stamp-h1
27 28
 /doc/*.t2p
28 29
 /ChangeLog
29 30
 core*
30
-.dirstamp

+ 3
- 0
Makefile.am View File

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

Loading…
Cancel
Save