Skip to content

Commit

Permalink
Merge prog_std.txt into coding_style.md
Browse files Browse the repository at this point in the history
  • Loading branch information
proski committed Oct 17, 2016
1 parent c910824 commit acdfc94
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 44 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS = -I m4
AM_DISTCHECK_CONFIGURE_FLAGS = --without-systemdsystemunitdir

EXTRA_DIST = bootstrap COPYING coding_style.md design.txt faq-compile.txt \
faq-general.txt file-loc.txt install.txt m4 prog_std.txt readme.txt
faq-general.txt file-loc.txt install.txt m4 readme.txt

if XRDP_NEUTRINORDP
NEUTRINORDPDIR = neutrinordp
Expand Down
17 changes: 16 additions & 1 deletion coding_style.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ Here is how we run the astyle command:
This coding style is a work in progress and is still evolving.


Language Standard
-----------------

Try to make all code compile with both C and C++ compiler. C++ is more
strict, which makes the code safer.


Indentation
-----------

Expand All @@ -32,7 +39,7 @@ Indentation
Line wrapping
-------------

* Keep lines shorter than 80 chars
* Keep lines not longer than 80 chars
* Align wrapped argument to the first argument

Expand All @@ -46,9 +53,11 @@ Variable names

* Use lowercase with underscores as needed
* Don't use camelCase
* Preprocessor constants should be uppercase


#define BUF_SIZE 1024
int fd;
int bytes_in_stream;

Expand Down Expand Up @@ -193,3 +202,9 @@ Braces
default:
printf("bad cmd\n");
}

Comments
--------

Use /* */ for comments
Don't use //
41 changes: 0 additions & 41 deletions prog_std.txt

This file was deleted.

2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ xup is a module used to connect to an rdp specific X11 server
Xserver is the files needed to build an rdp specific X11 server
COPYING is the license file
design.txt is an attempt to explain the project design
prog_std.txt is an attempt to explain the programming standard used
coding_style.md describes the coding style for the project

since version 0.5.0 we switch to autotools to build xrdp

Expand Down

0 comments on commit acdfc94

Please sign in to comment.