diff --git a/CodingStyle b/CodingStyle index 986417cb54b764e0331847b482ee9804fa391ae3..13dc27285a16047a7dac3e0408a01767d9c70794 100644 --- a/CodingStyle +++ b/CodingStyle @@ -5,7 +5,7 @@ Coding style * Max line width: 80 chars * Pointer asterisk attached to the name of the variable * Own structures/types: _t suffix (f.e. nameserver_t) -* Header guard format: _KNOTD__HEADER_H_ +* Header guard format: _KNOTD_HEADER_H_ * Spaces around binary operators * Space between keyword and bracket (f.e. "if (predicate)") * No space between variable and typecast (f.e. "return (int)val;") diff --git a/astylerc b/astylerc new file mode 100644 index 0000000000000000000000000000000000000000..95703db500cf1ebda2ad8aad65ec2397d3335111 --- /dev/null +++ b/astylerc @@ -0,0 +1,12 @@ +--style=1tbs +--indent=tab=8 +--indent-preprocessor +--pad-oper +--pad-header +--unpad-paren +--add-brackets +--convert-tabs +--align-pointer=name +--mode=c +--lineend=linux +