From 6c1426842af7de1343b8360e2d0ca52846ea4a2f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 21 Dec 2011 17:00:28 -0600 Subject: Add note to HACKING about operator spacing --- HACKING | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'HACKING') diff --git a/HACKING b/HACKING index 6692f7e8..e829e5d7 100644 --- a/HACKING +++ b/HACKING @@ -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;a0;a++,n--) {} + Other Concerns -------------- -- cgit v1.2.3-70-g09d2