From 60c1003845035ad4cd0e9ea50862bad7626faf0e Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 21 Sep 2002 18:47:46 +0000 Subject: Added the Pcsx source. --- PcsxSrc/Docs/CodingStyle.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 PcsxSrc/Docs/CodingStyle.txt (limited to 'PcsxSrc/Docs/CodingStyle.txt') diff --git a/PcsxSrc/Docs/CodingStyle.txt b/PcsxSrc/Docs/CodingStyle.txt new file mode 100644 index 0000000..4b44c97 --- /dev/null +++ b/PcsxSrc/Docs/CodingStyle.txt @@ -0,0 +1,29 @@ +## PCSX CODING STYLE + +typedef struct { // { within struct + int i; +} name; + +void func(int i) { // { within func declaration + if () { // same + switch () { // same + default: + printf(); // 1 tab per level (considering the default and the code in it + // as diferent ones + } + } + + for (;;) { // same for while + } +} + +Also try to align the code: + Something = x; + AnotherThing = x; +but not always: + i = x; + Something = x; + +tab = 4 +indent = 4 + -- cgit v1.2.3