From 2badc32d6ca3c7eb6560b4cbb1dd5785b6059a66 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Tue, 6 Mar 2012 13:03:08 +0000 Subject: [PATCH] sdl: added code style guidelines --- STYLE-GUIDELINES-SDL.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 STYLE-GUIDELINES-SDL.md diff --git a/STYLE-GUIDELINES-SDL.md b/STYLE-GUIDELINES-SDL.md new file mode 100644 index 00000000..74932d3f --- /dev/null +++ b/STYLE-GUIDELINES-SDL.md @@ -0,0 +1,14 @@ +FceuX-SDL Style Guidelines +========================= +Background +---------- +While you may think having style guidelines specific to a directory in a sourcetree is outrageous, fceuX has a unique elaborate history of the code. I (prg318) have ressurected the majority of the SDL port code and tried to keep some aspects of the style consistant (although not many aspects were that consistent to begin with due to the amount of different people who have contributed to this codebase). The SDL port alone consists of over 8,000 lines of C++ code, much of which is compliant to these guidelines so please use this guidelines when going forth and writing code in src/drivers/sdl. *Following these simple rules will make it a lot easeier for the developers to accept your patch.* + +Tabs +---- +Hard tabs only! Please! src/drivers/sdl/* entirely consists of hard tabbed code. Please continue to use this contention. Consult the documentation of your text editor documentation for instructions on how to this with your editor. + +Return Statements +----------------- +Please use the "return 0;" style return statements instead of the "return(0)" style return statements. +