masqmail
diff src/parse.c @ 366:41958685480d
Switched to `type *name' style
Andrew Koenig's ``C Traps and Pitfalls'' (Ch.2.1) convinced
me that it is best to go with the way C had been designed.
The ``declaration reflects use'' concept conflicts with a
``type* name'' notation. Hence I switched.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 22 Sep 2011 15:07:40 +0200 |
parents | 89199eda6144 |
children | b27f66555ba8 |
line diff
1.1 --- a/src/parse.c Wed Sep 14 12:20:40 2011 +0200 1.2 +++ b/src/parse.c Thu Sep 22 15:07:40 2011 +0200 1.3 @@ -35,7 +35,7 @@ 1.4 char *parse_error = NULL; 1.5 1.6 static gchar* 1.7 -skip_comment(gchar * p) 1.8 +skip_comment(gchar *p) 1.9 { 1.10 1.11 #ifdef PARSE_TEST 1.12 @@ -55,7 +55,7 @@ 1.13 } 1.14 1.15 static gboolean 1.16 -read_word(gchar * p, gchar ** b, gchar ** e) 1.17 +read_word(gchar *p, gchar **b, gchar **e) 1.18 { 1.19 #ifdef PARSE_TEST 1.20 g_print("read_word: %s\n", p); 1.21 @@ -85,7 +85,7 @@ 1.22 } 1.23 1.24 static gboolean 1.25 -read_word_with_dots(gchar * p, gchar ** b, gchar ** e) 1.26 +read_word_with_dots(gchar *p, gchar **b, gchar **e) 1.27 { 1.28 gchar *b0 = p; 1.29 1.30 @@ -108,7 +108,7 @@ 1.31 } 1.32 1.33 static gboolean 1.34 -read_domain(gchar * p, gchar ** b, gchar ** e) 1.35 +read_domain(gchar *p, gchar **b, gchar **e) 1.36 { 1.37 #ifdef PARSE_TEST 1.38 g_print("read_domain: %s\n", p); 1.39 @@ -134,8 +134,8 @@ 1.40 } 1.41 1.42 gboolean 1.43 -parse_address_rfc822(gchar* string, gchar** local_begin, gchar** local_end, gchar** domain_begin, 1.44 - gchar** domain_end, gchar** address_end) 1.45 +parse_address_rfc822(gchar *string, gchar **local_begin, gchar **local_end, gchar **domain_begin, 1.46 + gchar **domain_end, gchar **address_end) 1.47 { 1.48 gint angle_brackets = 0; 1.49 1.50 @@ -284,8 +284,8 @@ 1.51 } 1.52 1.53 gboolean 1.54 -parse_address_rfc821(gchar* string, gchar** local_begin, gchar** local_end, gchar** domain_begin, 1.55 - gchar** domain_end, gchar** address_end) 1.56 +parse_address_rfc821(gchar *string, gchar **local_begin, gchar **local_end, gchar **domain_begin, 1.57 + gchar **domain_end, gchar **address_end) 1.58 { 1.59 gint angle_brackets = 0; 1.60 1.61 @@ -379,7 +379,7 @@ 1.62 parses both rfc 821 and rfc 822 addresses, depending on flag is_rfc821 1.63 */ 1.64 address* 1.65 -_create_address(gchar * string, gchar ** end, gboolean is_rfc821) 1.66 +_create_address(gchar *string, gchar **end, gboolean is_rfc821) 1.67 { 1.68 gchar *loc_beg, *loc_end; 1.69 gchar *dom_beg, *dom_end; 1.70 @@ -448,19 +448,19 @@ 1.71 } 1.72 1.73 address* 1.74 -create_address_rfc822(gchar * string, gchar ** end) 1.75 +create_address_rfc822(gchar *string, gchar **end) 1.76 { 1.77 return _create_address(string, end, FALSE); 1.78 } 1.79 1.80 address* 1.81 -create_address_rfc821(gchar * string, gchar ** end) 1.82 +create_address_rfc821(gchar *string, gchar **end) 1.83 { 1.84 return _create_address(string, end, TRUE); 1.85 } 1.86 1.87 GList* 1.88 -addr_list_append_rfc822(GList * addr_list, gchar * string, gchar * domain) 1.89 +addr_list_append_rfc822(GList *addr_list, gchar *string, gchar *domain) 1.90 { 1.91 gchar *p = string; 1.92 gchar *end;