User Tools

Site Tools


coding-guide-en

Differences

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

Link to this comparison view

coding-guide-en [2018/11/12 08:56] (current)
Line 1: Line 1:
 +====== Code Style ======
 +[[english|{{ rocrail-logo-35.png}}]]
 +[[:​develop-corner-en|Developer corner]] ​
 +  *  [[build-en|Build from source]] | **[[coding-guide-en|Code Style]]** | [[gui-code-en|Rocgui Dialogs]]\\
 + \\
 +
 +===== File names =====
 +Avoid using underscores in file names, use dashes instead.\\
 +^ Right  ^ Wrong  ^
 +| ''​mylong-filename.txt''​ | ''​mylong_filename.txt''​ |\\
 +Lower case chars only.\\
 + \\
 +
 +===== Formatting rules =====
 +
 + \\
 +==== C/C++ Source ====
 +^ Setting ^ Value ^
 +| style           | K&R |
 +| tab policy ​     | spaces only |
 +| identation size | 2 |
 +| tab size        | 2 spaces |
 +| new line        | line feed only; unix style |
 +| encoding ​       | UTF-8 |
 +
 + \\
 +==== Java Source ====
 +^ Setting ^ Value ^
 +| tab policy ​     | spaces only |
 +| identation size | 2 |
 +| tab size        | 2 spaces |
 +| new line        | line feed only; unix style |
 +| encoding ​       | UTF-8 |
 +
 + \\
 +==== XML Source ====
 +^ Setting ^ Value ^
 +| tab policy ​     | spaces only |
 +| identation size | 2 |
 +| tab size        | 2 spaces |
 +| new line        | line feed only; unix style |
 +| encoding ​       | UTF-8 |
 +
  
coding-guide-en.txt ยท Last modified: 2018/11/12 08:56 (external edit)