babl r401 - in trunk: . babl/base extensions
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: babl r401 - in trunk: . babl/base extensions
- Date: Wed, 25 Mar 2009 19:02:39 +0000 (UTC)
Author: martinn
Date: Wed Mar 25 19:02:39 2009
New Revision: 401
URL: http://svn.gnome.org/viewvc/babl?rev=401&view=rev
Log:
NULL-statements caused by trailing commas are non-portable
Patch from Gary V. Vaughan
Modified:
trunk/ChangeLog
trunk/babl/base/type-u16.c
trunk/babl/base/type-u32.c
trunk/babl/base/type-u8.c
trunk/extensions/CIE-Lab.c
Modified: trunk/babl/base/type-u16.c
==============================================================================
--- trunk/babl/base/type-u16.c (original)
+++ trunk/babl/base/type-u16.c Wed Mar 25 19:02:39 2009
@@ -108,7 +108,7 @@
src, dst, src_pitch, dst_pitch, n); \
}
-MAKE_CONVERSIONS (u16, 0.0, 1.0, 0, UINT16_MAX);
+MAKE_CONVERSIONS (u16, 0.0, 1.0, 0, UINT16_MAX)
void
babl_base_type_u16 (void)
Modified: trunk/babl/base/type-u32.c
==============================================================================
--- trunk/babl/base/type-u32.c (original)
+++ trunk/babl/base/type-u32.c Wed Mar 25 19:02:39 2009
@@ -107,7 +107,7 @@
src, dst, src_pitch, dst_pitch, n); \
}
-MAKE_CONVERSIONS (u32, 0.0, 1.0, 0, UINT32_MAX);
+MAKE_CONVERSIONS (u32, 0.0, 1.0, 0, UINT32_MAX)
void
babl_base_type_u32 (void)
Modified: trunk/babl/base/type-u8.c
==============================================================================
--- trunk/babl/base/type-u8.c (original)
+++ trunk/babl/base/type-u8.c Wed Mar 25 19:02:39 2009
@@ -108,9 +108,9 @@
src, dst, src_pitch, dst_pitch, n); \
}
-MAKE_CONVERSIONS (u8, 0.0, 1.0, 0x00, UINT8_MAX);
-MAKE_CONVERSIONS (u8_luma, 0.0, 1.0, 16, 235);
-MAKE_CONVERSIONS (u8_chroma, 0.0, 1.0, 16, 240);
+MAKE_CONVERSIONS (u8, 0.0, 1.0, 0x00, UINT8_MAX)
+MAKE_CONVERSIONS (u8_luma, 0.0, 1.0, 16, 235)
+MAKE_CONVERSIONS (u8_chroma, 0.0, 1.0, 16, 240)
void
babl_base_type_u8 (void)
Modified: trunk/extensions/CIE-Lab.c
==============================================================================
--- trunk/extensions/CIE-Lab.c (original)
+++ trunk/extensions/CIE-Lab.c Wed Mar 25 19:02:39 2009
@@ -395,8 +395,8 @@
/* source ICC.1:2004-10 */
-MAKE_CONVERSIONS (u8_l, 0.0, 100.0, 0x00, 0xff);
-MAKE_CONVERSIONS (u8_ab, -128.0, 127.0, 0x00, 0xff);
+MAKE_CONVERSIONS (u8_l, 0.0, 100.0, 0x00, 0xff)
+MAKE_CONVERSIONS (u8_ab, -128.0, 127.0, 0x00, 0xff)
#undef MAKE_CONVERSIONS
@@ -532,8 +532,8 @@
src, dst, src_pitch, dst_pitch, n); \
}
-MAKE_CONVERSIONS (u16_l, 0.0, 100.0, 0x00, 0xffff);
-MAKE_CONVERSIONS (u16_ab, -128.0, 127.0, 0x00, 0xffff);
+MAKE_CONVERSIONS (u16_l, 0.0, 100.0, 0x00, 0xffff)
+MAKE_CONVERSIONS (u16_ab, -128.0, 127.0, 0x00, 0xffff)
#undef MAKE_CONVERSIONS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]