From: robertlipe Date: Sat, 8 Dec 2012 17:01:28 +0000 (+0000) Subject: Steve and I volley improvements README.contrib. Moves astyle settings out X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~741 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9ef75e99620486a222758c253c078145d7cb22da;p=gpsbabel.git Steve and I volley improvements README.contrib. Moves astyle settings out of doc and into astylerc. --- diff --git a/gpsbabel/README.contrib b/gpsbabel/README.contrib index cc706cb8d..fda753114 100644 --- a/gpsbabel/README.contrib +++ b/gpsbabel/README.contrib @@ -33,35 +33,19 @@ prefer: <2spaces>} } -The corresponding astyle settings for this are: - - # One True Brace Style - function curlies are in column zero for easy - # selection in vi. - --style=1tbs - - # Two column indents. - -s2 - - # Even single line ifs and elses get braces. - --add-brackets - - # Insert space after 'if', 'for', 'while'. - --pad-header - - # Remove extraneous spaces in parens. - --unpad-paren - - # Prefer char* foo to char *foo. - --align-pointer=type - --align-reference=type +Formatting can be done with astyle using the included style file +astylerc with the command "astyle --options=astylerc {source files}". +astyle is available at http://astyle.sourceforge.net/ +The corresponding astyle settings for this are provided in our source +tree in the file named 'astylerc' Submitting Patches ------------------ If you are creating a new target you should submit patches (use -"cvs diff -uN" to create patches) to the following files: +"svn diff" to create patches) to the following files: * Yourcode.c and/or Yourcode.h - this is the code required to do your conversions and any support files that your code requires. * vecs.c - an updated vecs.c file implementing your conversion code into diff --git a/gpsbabel/astylerc b/gpsbabel/astylerc new file mode 100644 index 000000000..e9f038c78 --- /dev/null +++ b/gpsbabel/astylerc @@ -0,0 +1,19 @@ +# One True Brace Style - function curlies are in column zero for easy +# selection in vi. +--style=1tbs + +# Two column indents. +-s2 + +# Even single line ifs and elses get braces. +--add-brackets + +# Insert space after 'if', 'for', 'while'. +--pad-header + +# Remove extraneous spaces in parens. +--unpad-paren + +# Prefer char* foo to char *foo. +--align-pointer=type +--align-reference=type