diff options
author | jsorg71 <jsorg71> | 2005-04-29 02:40:24 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-04-29 02:40:24 +0000 |
commit | 069634e498dd075f63c4c29753b179492392e9a2 (patch) | |
tree | 71b2252ef89e6a96e6fb5356cd79c89432ccde72 /prog_std.txt | |
parent | 55b980af095bbdc41d5c4b9f37e52a9d9259bd1f (diff) | |
download | xrdp-proprietary-069634e498dd075f63c4c29753b179492392e9a2.tar.gz xrdp-proprietary-069634e498dd075f63c4c29753b179492392e9a2.zip |
update some txt files
Diffstat (limited to 'prog_std.txt')
-rw-r--r-- | prog_std.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/prog_std.txt b/prog_std.txt new file mode 100644 index 00000000..c358a470 --- /dev/null +++ b/prog_std.txt @@ -0,0 +1,40 @@ + +This is an atempt to explain my odd programming standard used for this project. +Not to defend any of these but its my default standard and make it easy +for me to read. +Some files break these rules, they will be updated eventually. + +try to make any file compile with c++ compilers + +always put one var on a line by itself + char* pvar; + char text[256]; +not + char *pvar, text[256]; + +function calls look like this + foo(a, b, c); +not + foo ( a, b, c ); + +while, if, and case statements look like + while (i != 0) +not + while(i != 0) + +for comments, always use /* */, not // + +defines should always be uppercase + +don't use tabs, use spaces + +no line should exceed 80 chars + +always use {} in if and while, even if its only one line + while (p != 0) + { + p = p->next; + } +not + while (p != 0) + p = p->next; |