Changes between Version 5 and Version 6 of doc/tec/developerrules/palmstandard
- Timestamp:
- Nov 5, 2018 4:50:35 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
doc/tec/developerrules/palmstandard
v5 v6 7 7 8 8 == Indenting, spaces & line breaks == 9 === General module/subroutine structure === 9 '''__General module/subroutine structure''' 10 (see Fig. 1) 10 11 {{{ 11 12 #!div style="align:'left'; width: 450px; border: 0px solid; float:right" … … 23 24 * '''2 whitespace''' after ''':''' and '''::'''\\ 24 25 25 * '''1 blank line''' between enclosed instructions, assignments, clauses, statements, etc.26 * "&" minimum at 80, max at12026 * '''1 blank line''' between enclosed blocks of instructions, assignments, clauses, statements, etc. 27 * "&" character for line continuation at position 80 (minimum), max at position 120 27 28 28 === Whitespaces between brackets === 29 '''__Whitespaces between brackets''' 30 (see Fig. 1) 29 31 * '''0 whitespace''' between string and '''(''' 30 32 * '''1 whitespace''' after '''(''' and before ''')'''\\(only exception: '''0 whitespace''' in dimensions) 31 33 32 === Whitespaces in DO, IF blocks === 34 \\\\\\\\\\\\\\\\\\\\\\\\\\ 35 '''__Whitespaces in DO, IF blocks''' 36 (see Fig. 2) 37 {{{ 38 #!div style="align:'left'; width: 450px; border: 0px solid; float:right" 39 [[Image(rules_indent_loops.png, 450px, right, margin-right=2, margin-top=0, border=0)]]\\ 40 Fig. 2 Indention & whitespaces in loops. Click to enlarge. 41 }}} 33 42 34 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 43 44 35 45 == Alignment == 36 46 * Linebreaks … … 53 63 * .AND., .OR., .NOT. 54 64 65 == Preprocessor directives == 66 55 67 == File header == 56 68 * Files always start with a doxygen-readable comment line including the FORTRAN file name.