summaryrefslogtreecommitdiff
path: root/CodingStyle.mdwn
diff options
context:
space:
mode:
authorAlanCoopersmith <AlanCoopersmith@web>2013-08-25 13:51:19 -0700
committerxorg <iki-xorg@freedesktop.org>2013-08-25 13:51:19 -0700
commit99a099d929adc299642ccd3920b7387a275ccc8a (patch)
treec31e516ac002d74ad46f19010ba19ae271adbbef /CodingStyle.mdwn
parent520f2c3a85db33698ba3d73995c42cfc5e361006 (diff)
fix formatting after moin->iki conversion
Diffstat (limited to 'CodingStyle.mdwn')
-rw-r--r--CodingStyle.mdwn8
1 files changed, 4 insertions, 4 deletions
diff --git a/CodingStyle.mdwn b/CodingStyle.mdwn
index 7d351c39..3ba0bbe6 100644
--- a/CodingStyle.mdwn
+++ b/CodingStyle.mdwn
@@ -1,4 +1,3 @@
-
This page describes the X server's current coding style. While the server was recently reformatted to fit this style, most modules have varied and disparate coding styles. Above all, the cardinal rule is to fit in: make sure your changes reflect the coding style of the surrounding code.
We use the `indent` command line in this script here: [[http://cgit.freedesktop.org/xorg/util/modular/tree/x-indent.sh|http://cgit.freedesktop.org/xorg/util/modular/tree/x-indent.sh]] with manual editing afterwards to fix the cases where indent gets hopelessly confused.
@@ -15,8 +14,9 @@ We use the `indent` command line in this script here: [[http://cgit.freedesktop.
* `case` aligned in the same column as the `switch`
* If wrapping is required, function arguments to be aligned to the opening parenthesis of that column
* Wrap structs in typedefs
-* C-style <span style="display:none">foo</span> comments, rather than C++/C99-style // foo
-* C89 + some extensions, see [[http://cgit.freedesktop.org/xorg/xserver/tree/doc/c-extensions|http://cgit.freedesktop.org/xorg/xserver/tree/doc/c-extensions]]
+* C-style <span style="display:none">foo</span> comments, rather than C++/C99-style `// foo`
+* C89 + some extensions, see [[http://cgit.freedesktop.org/xorg/xserver/tree/doc/c-extensions|http://cgit.freedesktop.org/xorg/xserver/tree/doc/c-extensions]]
+
Notable objectionable things in the current coding style:
-* Most structs have a typedef both for the struct and for a pointer to the struct. \ No newline at end of file
+* Most structs have a typedef both for the struct and for a pointer to the struct.