From 9ddeaab1142070b6b3a5703cc2ef0a3c6059243a Mon Sep 17 00:00:00 2001 From: Arnaud Launay Date: Wed, 17 Sep 2003 13:31:06 +0200 Subject: [PATCH] Drop EOL blanks and // comments --- libexif/exif-content.c | 8 ++++---- libexif/exif-data.c | 14 +++++++------- libexif/exif-entry.c | 40 ++++++++++++++++++++-------------------- libjpeg/jpeg-data.c | 8 ++++---- 4 files changed, 35 insertions(+), 35 deletions(-) diff --git a/libexif/exif-content.c b/libexif/exif-content.c index 9c12b6d..2cfcde0 100644 --- a/libexif/exif-content.c +++ b/libexif/exif-content.c @@ -7,10 +7,10 @@ * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the @@ -25,7 +25,7 @@ #include #include -//#define DEBUG +/* #define DEBUG */ static const unsigned char ExifHeader[] = {0x45, 0x78, 0x69, 0x66, 0x00, 0x00}; diff --git a/libexif/exif-data.c b/libexif/exif-data.c index 679cc9b..9df2e2d 100644 --- a/libexif/exif-data.c +++ b/libexif/exif-data.c @@ -7,10 +7,10 @@ * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the @@ -32,7 +32,7 @@ #undef MAX #define MAX(a, b) (((a) > (b)) ? (a) : (b)) -//#define DEBUG +/* #define DEBUG */ static const unsigned char ExifHeader[] = {0x45, 0x78, 0x69, 0x66, 0x00, 0x00}; @@ -421,7 +421,7 @@ exif_data_save_data_content (ExifData *data, ExifContent *ifd, EXIF_FORMAT_LONG); exif_set_long (*d + 6 + offset + 4, data->priv->order, 1); - exif_set_long (*d + 6 + offset + 8, data->priv->order, + exif_set_long (*d + 6 + offset + 8, data->priv->order, data->size); offset += 12; } @@ -628,7 +628,7 @@ exif_data_save_data (ExifData *data, unsigned char **d, unsigned int *ds) /* * IFD 0 offset (4 bytes, offset 10). * We will start 8 bytes after the - * EXIF header (2 bytes for order, another 2 for the test, and + * EXIF header (2 bytes for order, another 2 for the test, and * 4 bytes for the IFD 0 offset make 8 bytes together). */ *ds += 4; @@ -793,7 +793,7 @@ entry_set_byte_order (ExifEntry *e, void *data) s = exif_get_short (e->data + (i * exif_format_get_size (e->format)), d->old); - exif_set_short (e->data + + exif_set_short (e->data + (i * exif_format_get_size (e->format)), d->new, s); } diff --git a/libexif/exif-entry.c b/libexif/exif-entry.c index bed3a61..0700068 100644 --- a/libexif/exif-entry.c +++ b/libexif/exif-entry.c @@ -7,10 +7,10 @@ * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the @@ -30,7 +30,7 @@ #include #include -//#define DEBUG +/* #define DEBUG */ #undef MIN #define MIN(a, b) (((a) < (b)) ? (a) : (b)) @@ -201,9 +201,9 @@ exif_entry_get_value (ExifEntry *e) case EXIF_TAG_COPYRIGHT: CF (e->format, EXIF_FORMAT_ASCII, v); - /* + /* * First part: Photographer. - * Some cameras store a string like " " here. Ignore it. + * Some cameras store a string like " " here. Ignore it. */ if (e->size && e->data && (strspn (e->data, " ") != strlen ((char *) e->data))) @@ -313,9 +313,9 @@ exif_entry_get_value (ExifEntry *e) CF (e->format, EXIF_FORMAT_SRATIONAL, v); CC (e->components, 1, v); v_srat = exif_get_srational (e->data, o); - snprintf (v, sizeof (v), "%i/%i", (int) v_srat.numerator, + snprintf (v, sizeof (v), "%i/%i", (int) v_srat.numerator, (int) v_srat.denominator); - //FIXME: How do I calculate the APEX value? + /* FIXME: How do I calculate the APEX value? */ break; case EXIF_TAG_METERING_MODE: CF (e->format, EXIF_FORMAT_SHORT, v); @@ -586,10 +586,10 @@ exif_entry_get_value (ExifEntry *e) } break; case EXIF_TAG_COLOR_SPACE: - CF (e->format, EXIF_FORMAT_SHORT, v); - CC (e->components, 1, v); - v_short = exif_get_short (e->data, o); - switch (v_short) { + CF (e->format, EXIF_FORMAT_SHORT, v); + CC (e->components, 1, v); + v_short = exif_get_short (e->data, o); + switch (v_short) { case 1: strncpy (v, _("sRGB"), sizeof (v)); break; @@ -602,7 +602,7 @@ exif_entry_get_value (ExifEntry *e) } break; case EXIF_TAG_FLASH: - CF (e->format, EXIF_FORMAT_SHORT, v); + CF (e->format, EXIF_FORMAT_SHORT, v); CC (e->components, 1, v); v_short = exif_get_short (e->data, o); switch (v_short) { @@ -1006,7 +1006,7 @@ exif_entry_get_value_brief (ExifEntry *e) v_rat = exif_get_rational (e->data, o); if (!v_rat.denominator) return (NULL); - + /* * For calculation of the 35mm equivalent, * Minolta cameras need a multiplier that depends on the @@ -1160,7 +1160,7 @@ exif_entry_get_value_brief (ExifEntry *e) } break; case EXIF_TAG_FLASH: - CF (e->format, EXIF_FORMAT_SHORT, v); + CF (e->format, EXIF_FORMAT_SHORT, v); CC (e->components, 1, v); v_short = exif_get_short (e->data, o); switch (v_short) { @@ -1241,7 +1241,7 @@ exif_entry_initialize (ExifEntry *e, ExifTag tag) e->data = malloc (e->size); exif_set_short (e->data, o, 0); break; - + /* SHORT, 1 component, default 1 */ case EXIF_TAG_ORIENTATION: case EXIF_TAG_PLANAR_CONFIGURATION: @@ -1305,7 +1305,7 @@ exif_entry_initialize (ExifEntry *e, ExifTag tag) e->size = exif_format_get_size (e->format) * e->components; e->data = malloc (e->size); memset (e->data, 0, e->size); - break; + break; /* RATIONAL, 1 component, no default */ case EXIF_TAG_EXPOSURE_TIME: @@ -1374,7 +1374,7 @@ exif_entry_initialize (ExifEntry *e, ExifTag tag) exif_set_rational ( e->data + 5 * exif_format_get_size (e->format), o, r); break; - + /* ASCII, 20 components */ case EXIF_TAG_DATE_TIME: case EXIF_TAG_DATE_TIME_ORIGINAL: @@ -1385,12 +1385,12 @@ exif_entry_initialize (ExifEntry *e, ExifTag tag) e->format = EXIF_FORMAT_ASCII; e->size = exif_format_get_size (e->format) * e->components; e->data = malloc (e->size); - snprintf ((char *) e->data, e->size, + snprintf ((char *) e->data, e->size, "%04i:%02i:%02i %02i:%02i:%02i", tm->tm_year + 1900, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); break; - + /* ASCII, no default */ case EXIF_TAG_SUB_SEC_TIME: case EXIF_TAG_SUB_SEC_TIME_ORIGINAL: diff --git a/libjpeg/jpeg-data.c b/libjpeg/jpeg-data.c index c6b8b81..21c7a12 100644 --- a/libjpeg/jpeg-data.c +++ b/libjpeg/jpeg-data.c @@ -7,10 +7,10 @@ * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the @@ -26,7 +26,7 @@ #include #include -//#define DEBUG +/* #define DEBUG */ struct _JPEGDataPrivate { -- 2.7.4