babl r269 - in trunk: . extensions
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: babl r269 - in trunk: . extensions
- Date: Sun, 6 Jan 2008 17:51:00 +0000 (GMT)
Author: neo
Date: Sun Jan 6 17:51:00 2008
New Revision: 269
URL: http://svn.gnome.org/viewvc/babl?rev=269&view=rev
Log:
2008-01-06 Sven Neumann <sven gimp org>
* extensions/CIE-Lab.c: made internal functions static.
Modified:
trunk/ChangeLog
trunk/extensions/CIE-Lab.c
Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog (original)
+++ trunk/ChangeLog Sun Jan 6 17:51:00 2008
@@ -1,3 +1,7 @@
+2008-01-06 Sven Neumann <sven gimp org>
+
+ * extensions/CIE-Lab.c: made internal functions static.
+
2007-12-30 Sven Neumann <sven gimp org>
* extensions/gggl-lies.c (table_init): completely fill the lookup
Modified: trunk/extensions/CIE-Lab.c
==============================================================================
--- trunk/extensions/CIE-Lab.c (original)
+++ trunk/extensions/CIE-Lab.c Sun Jan 6 17:51:00 2008
@@ -101,45 +101,21 @@
TODO: document functions, rename erroneously-named arguments
*/
-#ifndef __CPERCEP_H__
-#define __CPERCEP_H__
+static void cpercep_init (void);
-
-void cpercep_init (void);
-
-void cpercep_rgb_to_space (double inr,
- double ing,
- double inb,
- double *outr,
- double *outg,
- double *outb);
-
-void cpercep_space_to_rgb (double inr,
- double ing,
- double inb,
- double *outr,
- double *outg,
- double *outb);
-
-
-#if 0
-/* This is in the header so that it can potentially be inlined. */
-static const double
-cpercep_distance_space (const double L1, const double a1, const double b1,
- const double L2, const double a2, const double b2)
-{
- const double Ld = L1 - L2;
- const double ad = a1 - a2;
- const double bd = b1 - b2;
-
- return (Ld * Ld + ad * ad + bd * bd);
-}
-#endif
-
-
-#endif /* __CPERCEP_H__ */
-
-/*********** /cpercep.h ********* */
+static void cpercep_rgb_to_space (double inr,
+ double ing,
+ double inb,
+ double *outr,
+ double *outg,
+ double *outb);
+
+static void cpercep_space_to_rgb (double inr,
+ double ing,
+ double inb,
+ double *outr,
+ double *outg,
+ double *outb);
@@ -699,8 +675,6 @@
#define cbrt(x) (pow (x, 1.0 / 3.0))
#endif
-/* #include "cpercep.h" */
-
/* defines:
@@ -1072,7 +1046,7 @@
/* call this before using the CPercep function */
-void
+static void
cpercep_init (void)
{
static gboolean initialized = FALSE;
@@ -1084,7 +1058,7 @@
}
}
-void
+static void
cpercep_rgb_to_space (double inr,
double ing,
double inb,
@@ -1168,7 +1142,7 @@
}
-void
+static void
cpercep_space_to_rgb (double inr,
double ing,
double inb,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]