Mercurial > geeqie
diff src/exif.c @ 442:4b2d7f9af171
Big whitespaces cleanup:
- drop whitespaces at end of lines
- convert eight spaces to tab at start of lines
- drop spurious spaces mixed with tabs
- remove empty lines at end of files
author | zas_ |
---|---|
date | Sun, 20 Apr 2008 13:04:57 +0000 |
parents | 49c1cbe058ae |
children | 115db540bd0c |
line wrap: on
line diff
--- a/src/exif.c Sun Apr 20 10:05:27 2008 +0000 +++ b/src/exif.c Sun Apr 20 13:04:57 2008 +0000 @@ -3,7 +3,7 @@ * (C) 2006 John Ellis * * Authors: - * Support for Exif file format, originally written by Eric Swalens. + * Support for Exif file format, originally written by Eric Swalens. * Modified by Quy Tonthat * * Reimplemented with generic data storage by John Ellis (Nov 2003) @@ -64,7 +64,7 @@ #include <sys/stat.h> #include <sys/mman.h> #include <math.h> - + #include <glib.h> #include "intl.h" @@ -317,8 +317,8 @@ EXIF_TEXT_LIST_END }; -/* -Tag names should match to exiv2 keys, http://www.exiv2.org/metadata.html +/* +Tag names should match to exiv2 keys, http://www.exiv2.org/metadata.html Tags that don't match are not supported by exiv2 and should not be used anywhere in the code */ @@ -570,7 +570,7 @@ const char *exif_item_get_format_name(ExifItem *item, gint brief) { - if (!item || !item->marker) return NULL; + if (!item || !item->marker) return NULL; return (brief) ? ExifFormatList[item->format].short_name : ExifFormatList[item->format].description; } @@ -1011,8 +1011,8 @@ FF: 1 byte standard marker identifier TT: 1 byte data type SSSS: 2 bytes in Motorola byte alignment for length of the data. - This value includes these 2 bytes in the count, making actual - length of NN... == SSSS - 2. + This value includes these 2 bytes in the count, making actual + length of NN... == SSSS - 2. NNN.: the data in this segment */ @@ -1179,7 +1179,7 @@ ExifItem *exif_get_first_item(ExifData *exif) { - if (exif->items) + if (exif->items) { ExifItem *ret = (ExifItem *)exif->items->data; exif->current = exif->items->next; @@ -1191,7 +1191,7 @@ ExifItem *exif_get_next_item(ExifData *exif) { - if (exif->current) + if (exif->current) { ExifItem *ret = (ExifItem *)exif->current->data; exif->current = exif->current->next; @@ -1358,7 +1358,7 @@ item = work->data; work = work->next; if (item->marker->key && strcmp(key, item->marker->key) == 0) return item; - } + } return NULL; } @@ -1646,5 +1646,5 @@ -#endif +#endif /* not HAVE_EXIV2 */