Mercurial > masqmail
diff src/tables.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 | ec28ce798b79 |
children | b27f66555ba8 |
line wrap: on
line diff
--- a/src/tables.c Wed Sep 14 12:20:40 2011 +0200 +++ b/src/tables.c Thu Sep 22 15:07:40 2011 +0200 @@ -22,7 +22,7 @@ #include "masqmail.h" table_pair* -create_pair(gchar * key, gpointer value) +create_pair(gchar *key, gpointer value) { table_pair *pair; @@ -34,7 +34,7 @@ } table_pair* -create_pair_string(gchar * key, gpointer value) +create_pair_string(gchar *key, gpointer value) { table_pair *pair; @@ -46,7 +46,7 @@ } table_pair* -parse_table_pair(gchar * line, char delim) +parse_table_pair(gchar *line, char delim) { gchar buf[256]; gchar *p, *q; @@ -72,7 +72,7 @@ } gpointer* -table_find_func(GList * table_list, gchar * key, int (*cmp_func) (const char *, const char *)) +table_find_func(GList *table_list, gchar *key, int (*cmp_func) (const char *, const char *)) { GList *node; @@ -85,13 +85,13 @@ } gpointer* -table_find(GList * table_list, gchar * key) +table_find(GList *table_list, gchar *key) { return table_find_func(table_list, key, strcmp); } gpointer* -table_find_case(GList * table_list, gchar * key) +table_find_case(GList *table_list, gchar *key) { return table_find_func(table_list, key, strcasecmp); } @@ -103,13 +103,13 @@ } gpointer* -table_find_fnmatch(GList * table_list, gchar * key) +table_find_fnmatch(GList *table_list, gchar *key) { return table_find_func(table_list, key, fnmatch0); } GList* -table_read(gchar * fname, gchar delim) +table_read(gchar *fname, gchar delim) { GList *list = NULL; FILE *fptr; @@ -137,7 +137,7 @@ } void -destroy_table(GList * table) +destroy_table(GList *table) { GList *node;