mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
Add note to HACKING about operator spacing
This commit is contained in:
parent
ee96900605
commit
6c1426842a
11
HACKING
11
HACKING
@ -90,6 +90,17 @@ alpm_list_t *alpm_list_add(alpm_list_t *list, void *data)
|
|||||||
NOT
|
NOT
|
||||||
if(!strcmp(a, b))
|
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
|
Other Concerns
|
||||||
--------------
|
--------------
|
||||||
|
Loading…
Reference in New Issue
Block a user