Changes between Version 19 and Version 20 of Hacking
- Timestamp:
- 12/29/11 09:06:00 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hacking
v19 v20 58 58 */ 59 59 int example (int param1, int *result1); 60 61 60 }}} 62 61 … … 69 68 /* This is a multi line comment, 70 69 with some more words...*/ 71 72 70 }}} 73 71 … … 80 78 {{{ 81 79 if (i == 0) 82 83 }}} 80 }}} 81 84 82 '''This is wrong:''' 85 83 {{{ … … 87 85 88 86 if (0 == i) 89 90 87 }}} 91 88 … … 97 94 {{{ 98 95 do_example (int param1, int *result1); 99 100 }}} 96 }}} 97 101 98 '''This is wrong:''' 102 99 {{{ 103 100 do_example(int param1, int *result1); 104 105 101 }}} 106 102 … … 126 122 g_free (*str_options[i].opt_addr); 127 123 } 128 129 }}} 124 }}} 125 130 126 '''This is wrong:''' 131 127 {{{ … … 139 135 path = strip_home_and_password (current_panel->cwd); } 140 136 141 for (k = 0; k < 10; k++) 142 for (j = 0; j < 10; j++) 143 for (i = 0; str_options[i].opt_name != NULL; i++) 144 g_free (*str_options[i].opt_addr); 145 137 for (k = 0; k < 10; k++) 138 for (j = 0; j < 10; j++) 139 for (i = 0; str_options[i].opt_name != NULL; i++) 140 g_free (*str_options[i].opt_addr); 146 141 }}} 147 142 … … 170 165 g_free (dest); 171 166 } 172 173 167 }}} 174 168 … … 182 176 bytes = read (fd, &routine.pointer, sizeof (routine)); 183 177 if (bytes == -1 || (size_t) bytes < (sizeof (routine))) 184 185 178 }}} 186 179 … … 191 184 if (read (from_parent_fd, &i, sizeof (int)) != sizeof (int)) 192 185 return NULL; 193 194 186 }}} 195 187 … … 200 192 '''This is right:''' 201 193 {{{ 202 vfs_path_t *vpath; 203 204 vpath = vfs_path_from_str (filename); 205 }}} 206 207 '''This is wrong:''' 208 {{{ 209 vfs_path_t *vpath = vfs_path_from_str (filename); 194 vfs_path_t *vpath; 195 196 vpath = vfs_path_from_str (filename); 197 }}} 198 199 '''This is wrong:''' 200 201 {{{ 202 vfs_path_t *vpath = vfs_path_from_str (filename); 210 203 }}} 211 204 … … 229 222 recalculate_panel_summary (panel); 230 223 } 231 232 224 }}} 233 225 … … 239 231 compute_dir_size_destroy_ui (compute_dir_size_create_ui ()); 240 232 } 241 242 233 }}} 243 234 … … 248 239 '''This is right:''' 249 240 {{{ 250 251 241 #include <errno.h> 252 242 #include <stdio.h> … … 263 253 #include "src/help.h" /* interactive_display() */ 264 254 #include "src/setup.h" 265 266 255 }}} 267 256 … … 283 272 #include "src/setup.h" 284 273 #include "lib/global.h" 285 286 274 }}} 287 275 … … 294 282 #include "src/subshell.h" /* use_subshell */ 295 283 #include "src/help.h" /* interactive_display() */ 296 297 284 }}} 298 285 … … 323 310 /* --------------------------------------------------------------------------------------------- */ 324 311 }}} 325