We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent decd279 commit a414b20Copy full SHA for a414b20
tools/CodeStyle/am32-astyle.sh
@@ -0,0 +1,16 @@
1
+#!/usr/bin/env bash
2
+# script for recormatting C code
3
+# see https://astyle.sourceforge.net/astyle.html
4
+
5
+if [ -z "$1" ]; then
6
+ printf "\nArguments missing, Usage: '$0 <files to style>'\n\n"
7
+ exit 1
8
+fi
9
10
+if [ $(uname) = "Darwin" ]; then
11
+ DIR=$(dirname $(greadlink -f $0))
12
+else
13
+ DIR=$(dirname $(readlink -f $0))
14
15
16
+astyle --options="${DIR}"/astylerc $*
tools/CodeStyle/astylerc
@@ -0,0 +1,9 @@
+style=linux
+keep-one-line-statements
+add-braces
+indent=spaces=2
+indent-col1-comments
+min-conditional-indent=0
+suffix=none
+lineend=linux
+pad-header
0 commit comments