gegl r1965 - in trunk: . gegl



Author: neo
Date: Tue Feb  5 15:31:28 2008
New Revision: 1965
URL: http://svn.gnome.org/viewvc/gegl?rev=1965&view=rev

Log:
2008-02-05  Sven Neumann  <sven gimp org>

	* gegl/gegl-utils.[ch]: sprinkled log functions with const qualifiers.


Modified:
   trunk/ChangeLog
   trunk/gegl/gegl-utils.c
   trunk/gegl/gegl-utils.h

Modified: trunk/gegl/gegl-utils.c
==============================================================================
--- trunk/gegl/gegl-utils.c	(original)
+++ trunk/gegl/gegl-utils.c	Tue Feb  5 15:31:28 2008
@@ -27,22 +27,22 @@
 
 
 void gegl_log         (GLogLevelFlags  level,
-                       gchar          *file,
+                       const gchar    *file,
                        gint            line,
-                       gchar          *function,
-                       gchar          *format,
+                       const gchar    *function,
+                       const gchar    *format,
                        ...);
 void gegl_logv        (GLogLevelFlags  level,
-                       gchar          *file,
+                       const gchar    *file,
                        gint            line,
-                       gchar          *function,
-                       gchar          *format,
+                       const gchar    *function,
+                       const gchar    *format,
                        va_list         args);
 void gegl_direct_log  (GLogLevelFlags  level,
-                       gchar          *format,
+                       const gchar    *format,
                        ...);
 void gegl_direct_logv (GLogLevelFlags  level,
-                       gchar          *format,
+                       const gchar    *format,
                        va_list         args);
 
 
@@ -187,11 +187,12 @@
 
 #define GEGL_LOG_DOMAIN    "Gegl"
 
-void gegl_log_debug (gchar *file,
-                     gint   line,
-                     gchar *function,
-                     gchar *format,
-                     ...)
+void
+gegl_log_debug (const gchar *file,
+                gint         line,
+                const gchar *function,
+                const gchar *format,
+                ...)
 {
   va_list args;
 
@@ -200,11 +201,12 @@
   va_end (args);
 }
 
-void gegl_log_info (gchar *file,
-                    gint   line,
-                    gchar *function,
-                    gchar *format,
-                    ...)
+void
+gegl_log_info (const gchar *file,
+               gint         line,
+               const gchar *function,
+               const gchar *format,
+               ...)
 {
   va_list args;
 
@@ -213,11 +215,12 @@
   va_end (args);
 }
 
-void gegl_log_message (gchar *file,
-                       gint   line,
-                       gchar *function,
-                       gchar *format,
-                       ...)
+void
+gegl_log_message (const gchar *file,
+                  gint         line,
+                  const gchar *function,
+                  const gchar *format,
+                  ...)
 {
   va_list args;
 
@@ -226,8 +229,9 @@
   va_end (args);
 }
 
-void gegl_log_direct (gchar *format,
-                      ...)
+void
+gegl_log_direct (const gchar *format,
+                 ...)
 {
   va_list args;
 
@@ -237,11 +241,11 @@
 }
 
 void
-gegl_log (GLogLevelFlags level,
-          gchar         *file,
-          gint           line,
-          gchar         *function,
-          gchar         *format,
+gegl_log (GLogLevelFlags  level,
+          const gchar    *file,
+          gint            line,
+          const gchar    *function,
+          const gchar    *format,
           ...)
 {
   va_list args;
@@ -252,12 +256,12 @@
 }
 
 void
-gegl_logv (GLogLevelFlags level,
-           gchar         *file,
-           gint           line,
-           gchar         *function,
-           gchar         *format,
-           va_list        args)
+gegl_logv (GLogLevelFlags  level,
+           const gchar    *file,
+           gint            line,
+           const gchar    *function,
+           const gchar    *format,
+           va_list         args)
 {
   if (g_getenv ("GEGL_LOG_ON"))
     {
@@ -275,8 +279,8 @@
 }
 
 void
-gegl_direct_log (GLogLevelFlags level,
-                 gchar         *format,
+gegl_direct_log (GLogLevelFlags  level,
+                 const gchar    *format,
                  ...)
 {
   va_list args;
@@ -287,9 +291,9 @@
 }
 
 void
-gegl_direct_logv (GLogLevelFlags level,
-                  gchar         *format,
-                  va_list        args)
+gegl_direct_logv (GLogLevelFlags  level,
+                  const gchar    *format,
+                  va_list         args)
 {
   if (g_getenv ("GEGL_LOG_ON"))
     {

Modified: trunk/gegl/gegl-utils.h
==============================================================================
--- trunk/gegl/gegl-utils.h	(original)
+++ trunk/gegl/gegl-utils.h	Tue Feb  5 15:31:28 2008
@@ -44,25 +44,26 @@
 gboolean    gegl_rectangle_contains      (const GeglRectangle *r,
                                           const GeglRectangle *s);
 
-gchar     * gegl_canonicalize_identifier (const gchar         *identifier);
+gchar     * gegl_canonicalize_identifier (const gchar    *identifier);
 
-void        gegl_log_debug               (gchar    *file,
-                                          gint      line,
-                                          gchar    *function,
-                                          gchar    *format,
+void        gegl_log_debug               (const gchar    *file,
+                                          gint            line,
+                                          const gchar    *function,
+                                          const gchar    *format,
                                           ...);
-void        gegl_log_info                (gchar    *file,
-                                          gint      line,
-                                          gchar    *function,
-                                          gchar    *format,
+void        gegl_log_info                (const gchar    *file,
+                                          gint            line,
+                                          const gchar    *function,
+                                          const gchar    *format,
                                           ...);
-void        gegl_log_message             (gchar    *file,
-                                          gint      line,
-                                          gchar    *function,
-                                          gchar    *format,
+void        gegl_log_message             (const gchar    *file,
+                                          gint            line,
+                                          const gchar    *function,
+                                          const gchar    *format,
                                           ...);
-void        gegl_log_direct              (gchar    *format,
+void        gegl_log_direct              (const gchar    *format,
                                           ...);
+
 GType       gegl_rectangle_get_type      (void) G_GNUC_CONST;
 
 #ifndef __GEGL_H__
@@ -76,7 +77,7 @@
 #define INT_MULT(a,b,t)  ((t) = (a) * (b) + 0x80, ((((t) >> 8) + (t)) >> 8))
 
 inline gint _gegl_float_epsilon_zero  (float     value);
-gint _gegl_float_epsilon_equal (float     v1,
+gint        _gegl_float_epsilon_equal (float     v1,
                                        float     v2);
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]