de:develop:guidelines

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
de:develop:guidelines [2013/03/11 19:41] – created valeriusde:develop:guidelines [2018/06/07 20:30] (current) – external edit 127.0.0.1
Line 29: Line 29:
  
 Each levels/part of the os should have a specific prefix that allows a developer to easily find what part of the os a header/library file belongs to. For example code shared by the whole tree should be included with: Each levels/part of the os should have a specific prefix that allows a developer to easily find what part of the os a header/library file belongs to. For example code shared by the whole tree should be included with:
-#include <all_shared.h>+ 
 +<code>  #include <all_shared.h></code>
  
 and code shared by all commandline tools should include: and code shared by all commandline tools should include:
-#include <cmd_shared.h>+ 
 +<code>#include <cmd_shared.h></code>
  
 Try to create as few shared code headers as possible. Each “shared” directory should contain one (1) library (.lib) file (xxx_shared.lib) with all shared code and each “include” directory should contain one main header file including all other (xxx_shared.h). Try to create as few shared code headers as possible. Each “shared” directory should contain one (1) library (.lib) file (xxx_shared.lib) with all shared code and each “include” directory should contain one main header file including all other (xxx_shared.h).
Line 43: Line 45:
  
 // Do NOT include os2.h, use osfree.h instead // Do NOT include os2.h, use osfree.h instead
-#include <osfree.h>+ 
 +<code>  #include <osfree.h></code>
  
 // Include any needed normal C library // Include any needed normal C library
 +
 +<code>
 #include <malloc.h> #include <malloc.h>
 #include <string.h> #include <string.h>
 +</code>
  
 // Include all shared code and shared code for command line tools // Include all shared code and shared code for command line tools
 +
 +<code>
 #include <all_shared.h> #include <all_shared.h>
 #include <cmd_shared.h> #include <cmd_shared.h>
 +</code>
  
 ==== Dokumentation ==== ==== Dokumentation ====
Line 90: Line 99:
   * Maintainers will often reply in response to your patch, pointing out things to fix up, etc. before a patch can be checked in. Please always follow the maintainer suggestions closely and respond by sending a new corrected patch. Please do not expect the maintainers to rework your changes, you want to be able to claim all the credit for your great patches!   * Maintainers will often reply in response to your patch, pointing out things to fix up, etc. before a patch can be checked in. Please always follow the maintainer suggestions closely and respond by sending a new corrected patch. Please do not expect the maintainers to rework your changes, you want to be able to claim all the credit for your great patches!
  
- +~~DISCUSSION~~
-=== Discussion ===+