diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-06-07 04:08:47 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-06-07 08:09:08 +0800 |
commit | ffc019e36fd4703e5342030ca6779032d91c7611 (patch) | |
tree | 511ec7fb99746b600e2c176511d8e056831371bf /addressbook/importers | |
parent | 3fc28cd410369d299f080e44a71797f00c522eec (diff) | |
download | gsoc2013-evolution-ffc019e36fd4703e5342030ca6779032d91c7611.tar.gz gsoc2013-evolution-ffc019e36fd4703e5342030ca6779032d91c7611.tar.zst gsoc2013-evolution-ffc019e36fd4703e5342030ca6779032d91c7611.zip |
Coding style and whitespace cleanups.
Diffstat (limited to 'addressbook/importers')
-rw-r--r-- | addressbook/importers/evolution-csv-importer.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/addressbook/importers/evolution-csv-importer.c b/addressbook/importers/evolution-csv-importer.c index bcd5a7a801..29204b2c2e 100644 --- a/addressbook/importers/evolution-csv-importer.c +++ b/addressbook/importers/evolution-csv-importer.c @@ -57,7 +57,10 @@ typedef struct { FILE *file; gulong size; gint count; - GHashTable *fields_map; /* gint->gint, column index in the csv file to an index in the known fields array */ + + /* gint -> gint -- Column index in the CSV + * file to an index in the known fields array. */ + GHashTable *fields_map; EBook *book; GSList *contacts; @@ -322,7 +325,7 @@ parseNextValue (const gchar **pptr) g_return_val_if_fail (pptr != NULL, NULL); g_return_val_if_fail (*pptr != NULL, NULL); - + if (!*ptr || *ptr == '\n') return NULL; @@ -476,7 +479,11 @@ parseLine (CSVImporter *gci, EContact *contact, gchar *buf) { e_contact_set (contact, contact_field, value->str); } else { if (contact_field == E_CONTACT_WANTS_HTML) - e_contact_set (contact, contact_field, GINT_TO_POINTER (g_ascii_strcasecmp (value->str, "TRUE") == 0)); + e_contact_set ( + contact, contact_field, + GINT_TO_POINTER ( + g_ascii_strcasecmp ( + value->str, "TRUE") == 0)); else e_contact_set (contact, contact_field, value->str); } |