gtk-css-engine r109 - in trunk: . libccd/ccd



Author: robsta
Date: Tue Sep 16 09:45:48 2008
New Revision: 109
URL: http://svn.gnome.org/viewvc/gtk-css-engine?rev=109&view=rev

Log:
* libccd/ccd/ccd-background.c:
* libccd/ccd/ccd-background.h:
* libccd/ccd/ccd-block.c:
* libccd/ccd/ccd-block.h:
* libccd/ccd/ccd-border.c:
* libccd/ccd/ccd-border.h:
* libccd/ccd/ccd-color.c:
* libccd/ccd/ccd-color.h:
* libccd/ccd/ccd-image.c:
* libccd/ccd/ccd-image.h:
* libccd/ccd/ccd-property.c:
* libccd/ccd/ccd-property.h:
* libccd/ccd/ccd-selector-group.c:
* libccd/ccd/ccd-selector-group.h:
* libccd/ccd/ccd-selector.c:
* libccd/ccd/ccd-selector.h:
* libccd/ccd/ccd-style.c:
* libccd/ccd/ccd-style.h:
* libccd/ccd/ccd-stylesheet.c:
* libccd/ccd/ccd-stylesheet.h:
Only build debug code if requested at configure-time.


Modified:
   trunk/   (props changed)
   trunk/ChangeLog
   trunk/libccd/ccd/ccd-background.c
   trunk/libccd/ccd/ccd-background.h
   trunk/libccd/ccd/ccd-block.c
   trunk/libccd/ccd/ccd-block.h
   trunk/libccd/ccd/ccd-border.c
   trunk/libccd/ccd/ccd-border.h
   trunk/libccd/ccd/ccd-color.c
   trunk/libccd/ccd/ccd-color.h
   trunk/libccd/ccd/ccd-image.c
   trunk/libccd/ccd/ccd-image.h
   trunk/libccd/ccd/ccd-property.c
   trunk/libccd/ccd/ccd-property.h
   trunk/libccd/ccd/ccd-selector-group.c
   trunk/libccd/ccd/ccd-selector-group.h
   trunk/libccd/ccd/ccd-selector.c
   trunk/libccd/ccd/ccd-selector.h
   trunk/libccd/ccd/ccd-style.c
   trunk/libccd/ccd/ccd-style.h
   trunk/libccd/ccd/ccd-stylesheet.c
   trunk/libccd/ccd/ccd-stylesheet.h

Modified: trunk/libccd/ccd/ccd-background.c
==============================================================================
--- trunk/libccd/ccd/ccd-background.c	(original)
+++ trunk/libccd/ccd/ccd-background.c	Tue Sep 16 09:45:48 2008
@@ -134,6 +134,8 @@
 	cairo_restore (cr);
 }
 
+#ifdef CCD_DEBUG
+
 void
 ccd_background_dump (ccd_background_t const *self)
 {
@@ -180,3 +182,5 @@
 	}
 }
 
+#endif /* CCD_DEBUG */
+

Modified: trunk/libccd/ccd/ccd-background.h
==============================================================================
--- trunk/libccd/ccd/ccd-background.h	(original)
+++ trunk/libccd/ccd/ccd-background.h	Tue Sep 16 09:45:48 2008
@@ -58,9 +58,11 @@
 			  cairo_t *cr, int32_t x, int32_t y, 
 			  int32_t width, int32_t height);
 
+#ifdef CCD_DEBUG
 void ccd_background_dump	(ccd_background_t const *self);
 void ccd_background_color_dump	(ccd_background_color_t const *self);
 void ccd_background_image_dump	(ccd_background_image_t const *self);
+#endif
 
 G_END_DECLS
 

Modified: trunk/libccd/ccd/ccd-block.c
==============================================================================
--- trunk/libccd/ccd/ccd-block.c	(original)
+++ trunk/libccd/ccd/ccd-block.c	Tue Sep 16 09:45:48 2008
@@ -37,6 +37,8 @@
 	g_free (self);
 }
 
+#ifdef CCD_DEBUG
+
 void
 ccd_block_dump (ccd_block_t const *self)
 {
@@ -44,3 +46,5 @@
 	ccd_border_dump (&self->border);
 }
 
+#endif /* CCD_DEBUG */
+

Modified: trunk/libccd/ccd/ccd-block.h
==============================================================================
--- trunk/libccd/ccd/ccd-block.h	(original)
+++ trunk/libccd/ccd/ccd-block.h	Tue Sep 16 09:45:48 2008
@@ -41,7 +41,9 @@
 ccd_block_t *	ccd_block_new	(void);
 void		ccd_block_free	(ccd_block_t *self);
 
+#ifdef CCD_DEBUG
 void ccd_block_dump (ccd_block_t const *self);
+#endif
 
 G_END_DECLS
 

Modified: trunk/libccd/ccd/ccd-border.c
==============================================================================
--- trunk/libccd/ccd/ccd-border.c	(original)
+++ trunk/libccd/ccd/ccd-border.c	Tue Sep 16 09:45:48 2008
@@ -905,6 +905,8 @@
 		visibility_flags, cr, x, y, width, height, false);
 }
 
+#ifdef CCD_DEBUG
+
 void
 ccd_border_stroke_dump (ccd_border_stroke_t const *self)
 {
@@ -947,3 +949,5 @@
 	}
 }
 
+#endif /* CCD_DEBUG */
+

Modified: trunk/libccd/ccd/ccd-border.h
==============================================================================
--- trunk/libccd/ccd/ccd-border.h	(original)
+++ trunk/libccd/ccd/ccd-border.h	Tue Sep 16 09:45:48 2008
@@ -158,8 +158,10 @@
 		      uint32_t visibility_flags, cairo_t *cr, 
 		      double x, double y, double width, double height);
 
+#ifdef CCD_DEBUG
 void ccd_border_dump		(ccd_border_t const *self);
 void ccd_border_stroke_dump	(ccd_border_stroke_t const *self);
+#endif
 
 G_END_DECLS
 

Modified: trunk/libccd/ccd/ccd-color.c
==============================================================================
--- trunk/libccd/ccd/ccd-color.c	(original)
+++ trunk/libccd/ccd/ccd-color.c	Tue Sep 16 09:45:48 2008
@@ -306,9 +306,13 @@
 	}
 }
 
+#ifdef CCD_DEBUG
+
 void
 ccd_color_dump (ccd_color_t const *self)
 {
 	printf ("rgb(%.3f,%.3f,%.3f)", self->red, self->green, self->blue);
 }
 
+#endif /* CCD_DEBUG */
+

Modified: trunk/libccd/ccd/ccd-color.h
==============================================================================
--- trunk/libccd/ccd/ccd-color.h	(original)
+++ trunk/libccd/ccd/ccd-color.h	Tue Sep 16 09:45:48 2008
@@ -42,7 +42,9 @@
 
 ccd_property_spec_t ccd_color_parse (ccd_color_t *self, CRTerm const **value);
 
+#ifdef CCD_DEBUG
 void ccd_color_dump (ccd_color_t const *self);
+#endif
 
 G_END_DECLS
 

Modified: trunk/libccd/ccd/ccd-image.c
==============================================================================
--- trunk/libccd/ccd/ccd-image.c	(original)
+++ trunk/libccd/ccd/ccd-image.c	Tue Sep 16 09:45:48 2008
@@ -160,9 +160,13 @@
 	}
 }
 
+#ifdef CCD_DEBUG
+
 void
 ccd_image_dump (ccd_image_t const *self)
 {
 	printf (self->uri);
 }
 
+#endif /* CCD_DEBUG */
+

Modified: trunk/libccd/ccd/ccd-image.h
==============================================================================
--- trunk/libccd/ccd/ccd-image.h	(original)
+++ trunk/libccd/ccd/ccd-image.h	Tue Sep 16 09:45:48 2008
@@ -37,7 +37,9 @@
 
 void ccd_image_discard (ccd_image_t *self);
 
+#ifdef CCD_DEBUG
 void ccd_image_dump (ccd_image_t const *self);
+#endif
 
 G_END_DECLS
 

Modified: trunk/libccd/ccd/ccd-property.c
==============================================================================
--- trunk/libccd/ccd/ccd-property.c	(original)
+++ trunk/libccd/ccd/ccd-property.c	Tue Sep 16 09:45:48 2008
@@ -43,6 +43,8 @@
 	return CCD_PROPERTY_SPEC_SET;
 }
 
+#ifdef CCD_DEBUG
+
 void
 ccd_property_spec_dump (ccd_property_spec_t const spec)
 {
@@ -62,3 +64,5 @@
 	}
 }
 
+#endif /* CCD_DEBUG */
+

Modified: trunk/libccd/ccd/ccd-property.h
==============================================================================
--- trunk/libccd/ccd/ccd-property.h	(original)
+++ trunk/libccd/ccd/ccd-property.h	Tue Sep 16 09:45:48 2008
@@ -37,7 +37,9 @@
 
 ccd_property_spec_t ccd_property_parse_spec (CRTerm const **value);
 
+#ifdef CCD_DEBUG
 void ccd_property_spec_dump (ccd_property_spec_t const spec);
+#endif
 
 G_END_DECLS
 

Modified: trunk/libccd/ccd/ccd-selector-group.c
==============================================================================
--- trunk/libccd/ccd/ccd-selector-group.c	(original)
+++ trunk/libccd/ccd/ccd-selector-group.c	Tue Sep 16 09:45:48 2008
@@ -401,6 +401,8 @@
 	g_tree_foreach (self->sets, (GTraverseFunc) traverse_apply, style);
 }
 
+#ifdef CCD_DEBUG
+
 static bool
 traverse_dump (size_t			 specificity,
 	       ccd_selector_set_t	*set,
@@ -440,3 +442,5 @@
 	}
 }
 
+#endif /* CCD_DEBUG */
+

Modified: trunk/libccd/ccd/ccd-selector-group.h
==============================================================================
--- trunk/libccd/ccd/ccd-selector-group.h	(original)
+++ trunk/libccd/ccd/ccd-selector-group.h	Tue Sep 16 09:45:48 2008
@@ -37,7 +37,9 @@
 void ccd_selector_group_apply (ccd_selector_group_t const *self, 
 			       ccd_style_t *style);
 
+#ifdef CCD_DEBUG
 void ccd_selector_group_dump (ccd_selector_group_t const *self);
+#endif
 
 G_END_DECLS
 

Modified: trunk/libccd/ccd/ccd-selector.c
==============================================================================
--- trunk/libccd/ccd/ccd-selector.c	(original)
+++ trunk/libccd/ccd/ccd-selector.c	Tue Sep 16 09:45:48 2008
@@ -106,12 +106,16 @@
 	g_free (self);
 }
 
+#ifdef CCD_DEBUG
+
 static void
 universal_selector_dump (ccd_universal_selector_t const *self)
 {
 	printf (" *");
 }
 
+#endif /* CCD_DEBUG */
+
 /*
  * Select by element type.
  */
@@ -156,12 +160,16 @@
 	g_free (self);
 }
 
+#ifdef CCD_DEBUG
+
 static void
 type_selector_dump (ccd_type_selector_t const *self)
 {
 	printf (" %s", self->type_name);
 }
 
+#endif /* CCD_DEBUG */
+
 /*
  * Select by element's base type.
  * Derived from the type selector
@@ -227,12 +235,16 @@
 	g_free (self);
 }
 
+#ifdef CCD_DEBUG
+
 static void
 class_selector_dump (ccd_class_selector_t const *self)
 {
 	printf (".%s", self->class_name);
 }
 
+#endif /* CCD_DEBUG */
+
 /*
  * Select by element ID.
  */
@@ -277,12 +289,16 @@
 	g_free (self);
 }
 
+#ifdef CCD_DEBUG
+
 static void
 id_selector_dump (ccd_id_selector_t const *self)
 {
 	printf ("#%s", self->id);
 }
 
+#endif /* CCD_DEBUG */
+
 /*
  * Select by attribute.
  */
@@ -336,6 +352,8 @@
 	g_free (self);
 }
 
+#ifdef CCD_DEBUG
+
 static void
 attribute_selector_dump (ccd_attribute_selector_t const *self)
 {
@@ -351,6 +369,8 @@
 	}
 }
 
+#endif /* CCD_DEBUG */
+
 /*
  * Select by pseudo class.
  */
@@ -395,12 +415,16 @@
 	g_free (self);
 }
 
+#ifdef CCD_DEBUG
+
 static void
 pseudo_class_selector_dump (ccd_pseudo_class_selector_t const *self)
 {
 	printf (":%s", self->pseudo_class);
 }
 
+#endif /* CCD_DEBUG */
+
 ccd_selector_t *
 ccd_selector_copy (ccd_selector_t const *original)
 {
@@ -963,6 +987,8 @@
 	return true;
 }
 
+#ifdef CCD_DEBUG
+
 void 
 ccd_selector_dump (ccd_selector_t const *self)
 {
@@ -1030,3 +1056,5 @@
 		self->modality, self->a, self->b, self->c, self->d, self->e);
 }
 
+#endif /* CCD_DEBUG */
+

Modified: trunk/libccd/ccd/ccd-selector.h
==============================================================================
--- trunk/libccd/ccd/ccd-selector.h	(original)
+++ trunk/libccd/ccd/ccd-selector.h	Tue Sep 16 09:45:48 2008
@@ -75,7 +75,9 @@
 			       ccd_style_t *style);
 bool ccd_selector_apply (ccd_selector_t const *self, ccd_style_t *style);
 
+#ifdef CCD_DEBUG
 void ccd_selector_dump (ccd_selector_t const *self);
+#endif
 
 G_END_DECLS
 

Modified: trunk/libccd/ccd/ccd-style.c
==============================================================================
--- trunk/libccd/ccd/ccd-style.c	(original)
+++ trunk/libccd/ccd/ccd-style.c	Tue Sep 16 09:45:48 2008
@@ -152,6 +152,8 @@
 			 cr, x, y, width, height);
 }
 
+#ifdef CCD_DEBUG
+
 /**
  * ccd_style_dump:
  * @self:	a ccd_style_t.
@@ -175,3 +177,5 @@
 		ccd_border_stroke_dump (&self->bottom);
 }
 
+#endif /* CCD_DEBUG */
+

Modified: trunk/libccd/ccd/ccd-style.h
==============================================================================
--- trunk/libccd/ccd/ccd-style.h	(original)
+++ trunk/libccd/ccd/ccd-style.h	Tue Sep 16 09:45:48 2008
@@ -66,7 +66,9 @@
 void ccd_style_draw_rectangle (ccd_style_t const *self, cairo_t *cr, 
 			       int32_t x, int32_t y, int32_t width, int32_t height);
 
+#ifdef CCD_DEBUG
 void ccd_style_dump (ccd_style_t const *self);
+#endif
 
 G_END_DECLS
 

Modified: trunk/libccd/ccd/ccd-stylesheet.c
==============================================================================
--- trunk/libccd/ccd/ccd-stylesheet.c	(original)
+++ trunk/libccd/ccd/ccd-stylesheet.c	Tue Sep 16 09:45:48 2008
@@ -428,6 +428,8 @@
 	return have_type || have_class || have_id;
 }
 
+#ifdef CCD_DEBUG
+
 /**
  * ccd_stylesheet_dump:
  * @self:	a #ccd_stylesheet_t.
@@ -459,3 +461,5 @@
 	}
 }
 
+#endif /* CCD_DEBUG */
+

Modified: trunk/libccd/ccd/ccd-stylesheet.h
==============================================================================
--- trunk/libccd/ccd/ccd-stylesheet.h	(original)
+++ trunk/libccd/ccd/ccd-stylesheet.h	Tue Sep 16 09:45:48 2008
@@ -44,7 +44,9 @@
 bool ccd_stylesheet_query_apply (ccd_stylesheet_t const *self, ccd_node_t const *node, 
 				 ccd_style_t *style);
 
+#ifdef CCD_DEBUG
 void ccd_stylesheet_dump (ccd_stylesheet_t const *self);
+#endif
 
 G_END_DECLS
 



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