Changes between Version 29 and Version 30 of Hacking
- Timestamp:
- 05/09/19 12:27:43 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hacking
v29 v30 117 117 118 118 Do not unnecessarily use braces where a single statement will do. 119 If lines is more than one to use braces.120 119 121 120 '''This is right:''' … … 126 125 ... 127 126 } 128 129 for (j = 0; j < 10; j++)130 {131 for (i = 0; str_options[i].opt_name != NULL; i++)132 g_free (*str_options[i].opt_addr);133 }134 }}}135 136 '''This is wrong:'''137 {{{138 if (xterm_flag && xterm_title) {139 path = strip_home_and_password (current_panel->cwd);140 ...141 }142 143 if (xterm_flag && xterm_title)144 {145 path = strip_home_and_password (current_panel->cwd); }146 127 147 128 for (k = 0; k < 10; k++) … … 149 130 for (i = 0; str_options[i].opt_name != NULL; i++) 150 131 g_free (*str_options[i].opt_addr); 132 } 133 }}} 134 135 '''This is wrong:''' 136 {{{ 137 if (xterm_flag && xterm_title) { 138 path = strip_home_and_password (current_panel->cwd); 139 ... 140 } 141 142 if (xterm_flag && xterm_title) 143 { 144 path = strip_home_and_password (current_panel->cwd); } 151 145 }}} 152 146