diff options
author | Pixel <Pixel> | 2002-09-21 18:47:46 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-09-21 18:47:46 +0000 |
commit | 60c1003845035ad4cd0e9ea50862bad7626faf0e (patch) | |
tree | cf3f6e0015ede7b11112de87914734c02616dfa4 /PcsxSrc/Docs/CodingStyle.txt | |
parent | 259110b90336240ce6cdde0201d05ce03a1f73fe (diff) |
Added the Pcsx source.
Diffstat (limited to 'PcsxSrc/Docs/CodingStyle.txt')
-rw-r--r-- | PcsxSrc/Docs/CodingStyle.txt | 29 |
1 files changed, 29 insertions, 0 deletions
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
+
|