diff options
author | Dan McGee <dan@archlinux.org> | 2011-12-22 00:00:28 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-12-22 01:13:17 +0100 |
commit | 6c1426842af7de1343b8360e2d0ca52846ea4a2f (patch) | |
tree | 10ff204091db097a61e5195e5682fa83f286fd7a /HACKING | |
parent | ee969006056c86e88d5f179a7575d64f23d5b252 (diff) | |
download | pacman-6c1426842af7de1343b8360e2d0ca52846ea4a2f.tar.gz pacman-6c1426842af7de1343b8360e2d0ca52846ea4a2f.tar.xz |
Add note to HACKING about operator spacing
Diffstat (limited to 'HACKING')
-rw-r--r-- | HACKING | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -90,6 +90,17 @@ alpm_list_t *alpm_list_add(alpm_list_t *list, void *data) NOT if(!strcmp(a, b)) +8. Use spaces around almost all arithmetic, comparison and assignment + operators and after all ',;:' separators. + + foobar[2 * size + 1] = function(a, 6); + NOT + foobar[2*size+1]=function(a,6); + + for(a = 0; a < n && n > 0; a++,n--) {} + NOT + for(a=0;a<n&&n>0;a++,n--) {} + Other Concerns -------------- |