[librsvg] set proper mode-line and fix indent.



commit e2182b444099597846f57d8ec02259293c036c86
Author: Hiroyuki Ikezoe <hiikezoe gnome org>
Date:   Tue Apr 27 20:33:02 2010 +0900

    set proper mode-line and fix indent.

 rsvg-css.c    |    3 ++-
 rsvg-css.h    |   35 ++++++++++++++++++-----------------
 rsvg-styles.c |   43 ++++++++++++++++++++++---------------------
 rsvg-styles.h |   23 ++++++++++++-----------
 4 files changed, 54 insertions(+), 50 deletions(-)
---
diff --git a/rsvg-css.c b/rsvg-css.c
index 5f0b558..740f1d4 100644
--- a/rsvg-css.c
+++ b/rsvg-css.c
@@ -1,4 +1,5 @@
-/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* vim: set sw=4 sts=4 ts=4 expandtab: */
 /* 
    rsvg-css.c: Parse CSS basic data types.
  
diff --git a/rsvg-css.h b/rsvg-css.h
index 65446b7..af17831 100644
--- a/rsvg-css.h
+++ b/rsvg-css.h
@@ -1,4 +1,5 @@
-/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* vim: set sw=4 sts=4 ts=4 expandtab: */
 /*
    rsvg-css.h : CSS utility functions
 
@@ -45,26 +46,26 @@ G_BEGIN_DECLS
 
 int	    rsvg_css_parse_aspect_ratio	    (const char *str);
 
-guint32	    rsvg_css_parse_color	    (const char *str, gboolean * inherit);
-guint	    rsvg_css_parse_opacity	    (const char *str);
-double	    rsvg_css_parse_angle	    (const char *str);
-double	    rsvg_css_parse_frequency	    (const char *str);
-double	    rsvg_css_parse_time		    (const char *str);
+guint32	    rsvg_css_parse_color        (const char *str, gboolean * inherit);
+guint       rsvg_css_parse_opacity	    (const char *str);
+double      rsvg_css_parse_angle        (const char *str);
+double      rsvg_css_parse_frequency    (const char *str);
+double      rsvg_css_parse_time         (const char *str);
 
-PangoStyle	 rsvg_css_parse_font_style	(const char *str, gboolean * inherit);
-PangoVariant	 rsvg_css_parse_font_variant	(const char *str, gboolean * inherit);
-PangoWeight	 rsvg_css_parse_font_weight	(const char *str, gboolean * inherit);
-PangoStretch	 rsvg_css_parse_font_stretch	(const char *str, gboolean * inherit);
-const char	*rsvg_css_parse_font_family	(const char *str, gboolean * inherit);
+PangoStyle   rsvg_css_parse_font_style      (const char *str, gboolean * inherit);
+PangoVariant rsvg_css_parse_font_variant    (const char *str, gboolean * inherit);
+PangoWeight	 rsvg_css_parse_font_weight	    (const char *str, gboolean * inherit);
+PangoStretch rsvg_css_parse_font_stretch    (const char *str, gboolean * inherit);
+const char  *rsvg_css_parse_font_family	    (const char *str, gboolean * inherit);
 
-RsvgViewBox	  rsvg_css_parse_vbox			(const char *vbox);
-void		  rsvg_css_parse_number_optional_number	(const char *str, double *x, double *y);
-gchar		**rsvg_css_parse_list			(const char *in_str, guint * out_list_len);
-gdouble		 *rsvg_css_parse_number_list		(const char *in_str, guint * out_list_len);
+RsvgViewBox	  rsvg_css_parse_vbox           (const char *vbox);
+void          rsvg_css_parse_number_optional_number	(const char *str, double *x, double *y);
+gchar       **rsvg_css_parse_list           (const char *in_str, guint * out_list_len);
+gdouble	     *rsvg_css_parse_number_list    (const char *in_str, guint * out_list_len);
 
-gboolean	  rsvg_css_parse_overflow		(const char *str, gboolean * inherit);
+gboolean      rsvg_css_parse_overflow       (const char *str, gboolean * inherit);
 
-char		**rsvg_css_parse_xml_attribute_string	(const char *attribute_string);
+char        **rsvg_css_parse_xml_attribute_string   (const char *attribute_string);
 
 G_END_DECLS
 
diff --git a/rsvg-styles.c b/rsvg-styles.c
index 3740612..8e3aeb4 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -1,4 +1,5 @@
-/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* vim: set sw=4 sts=4 ts=4 expandtab: */
 /*
    rsvg-styles.c: Handle SVG styles
 
@@ -154,10 +155,10 @@ rsvg_state_init (RsvgState * state)
     state->has_endMarker = FALSE;
     state->has_overflow = FALSE;
 
-	state->shape_rendering_type = SHAPE_RENDERING_AUTO;
-	state->has_shape_rendering_type = FALSE;
-	state->text_rendering_type = TEXT_RENDERING_AUTO;
-	state->has_text_rendering_type = FALSE;
+    state->shape_rendering_type = SHAPE_RENDERING_AUTO;
+    state->has_shape_rendering_type = FALSE;
+    state->text_rendering_type = TEXT_RENDERING_AUTO;
+    state->has_text_rendering_type = FALSE;
 
     state->styles = g_hash_table_new_full (g_str_hash, g_str_equal,
                                            g_free, (GDestroyNotify) style_value_data_free);
@@ -278,11 +279,11 @@ rsvg_state_inherit_run (RsvgState * dst, const RsvgState * src,
         dst->font_family = g_strdup (src->font_family);
     }
 
-	if (function (dst->has_space_preserve, src->has_space_preserve))
-		dst->space_preserve = src->space_preserve;
+    if (function (dst->has_space_preserve, src->has_space_preserve))
+	dst->space_preserve = src->space_preserve;
 
-	if (function (dst->has_visible, src->has_visible))
-		dst->visible = src->visible;
+    if (function (dst->has_visible, src->has_visible))
+	dst->visible = src->visible;
 
     if (function (dst->has_lang, src->has_lang)) {
         if (dst->has_lang)
@@ -719,29 +720,29 @@ rsvg_parse_style_pair (RsvgHandle * ctx,
         state->dash.offset = _rsvg_css_parse_length (value);
         if (state->dash.offset.length < 0.)
             state->dash.offset.length = 0.;
-	} else if (g_str_equal (name, "shape-rendering")) {
-		state->has_shape_rendering_type = TRUE;
+    } else if (g_str_equal (name, "shape-rendering")) {
+        state->has_shape_rendering_type = TRUE;
 
         if (g_str_equal (value, "auto") || g_str_equal (value, "default"))
-			state->shape_rendering_type = SHAPE_RENDERING_AUTO;
+            state->shape_rendering_type = SHAPE_RENDERING_AUTO;
         else if (g_str_equal (value, "optimizeSpeed"))
-			state->shape_rendering_type = SHAPE_RENDERING_OPTIMIZE_SPEED;
+            state->shape_rendering_type = SHAPE_RENDERING_OPTIMIZE_SPEED;
         else if (g_str_equal (value, "crispEdges"))
-			state->shape_rendering_type = SHAPE_RENDERING_CRISP_EDGES;
+            state->shape_rendering_type = SHAPE_RENDERING_CRISP_EDGES;
         else if (g_str_equal (value, "geometricPrecision"))
-			state->shape_rendering_type = SHAPE_RENDERING_GEOMETRIC_PRECISION;
+            state->shape_rendering_type = SHAPE_RENDERING_GEOMETRIC_PRECISION;
 
-	} else if (g_str_equal (name, "text-rendering")) {
-		state->has_text_rendering_type = TRUE;
+    } else if (g_str_equal (name, "text-rendering")) {
+        state->has_text_rendering_type = TRUE;
 
         if (g_str_equal (value, "auto") || g_str_equal (value, "default"))
-			state->text_rendering_type = TEXT_RENDERING_AUTO;
+            state->text_rendering_type = TEXT_RENDERING_AUTO;
         else if (g_str_equal (value, "optimizeSpeed"))
-			state->text_rendering_type = TEXT_RENDERING_OPTIMIZE_SPEED;
+            state->text_rendering_type = TEXT_RENDERING_OPTIMIZE_SPEED;
         else if (g_str_equal (value, "optimizeLegibility"))
-			state->text_rendering_type = TEXT_RENDERING_OPTIMIZE_LEGIBILITY;
+            state->text_rendering_type = TEXT_RENDERING_OPTIMIZE_LEGIBILITY;
         else if (g_str_equal (value, "geometricPrecision"))
-			state->text_rendering_type = TEXT_RENDERING_GEOMETRIC_PRECISION;
+            state->text_rendering_type = TEXT_RENDERING_GEOMETRIC_PRECISION;
 
     } else if (g_str_equal (name, "stroke-dasharray")) {
         state->has_dash = TRUE;
diff --git a/rsvg-styles.h b/rsvg-styles.h
index 290a9a9..0aa306f 100644
--- a/rsvg-styles.h
+++ b/rsvg-styles.h
@@ -1,4 +1,5 @@
-/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* vim: set sw=4 sts=4 ts=4 expandtab: */
 /*
    rsvg-styles.h: Handle SVG styles
 
@@ -241,9 +242,9 @@ struct _RsvgState {
 
 RsvgState *rsvg_state_new ();
 
-void rsvg_state_init	    (RsvgState * state);
-void rsvg_state_clone	    (RsvgState * dst, const RsvgState * src);
-void rsvg_state_inherit	    (RsvgState * dst, const RsvgState * src);
+void rsvg_state_init        (RsvgState * state);
+void rsvg_state_clone       (RsvgState * dst, const RsvgState * src);
+void rsvg_state_inherit     (RsvgState * dst, const RsvgState * src);
 void rsvg_state_reinherit   (RsvgState * dst, const RsvgState * src);
 void rsvg_state_dominate    (RsvgState * dst, const RsvgState * src);
 void rsvg_state_override    (RsvgState * dst, const RsvgState * src);
@@ -256,16 +257,16 @@ void rsvg_parse_cssbuffer   (RsvgHandle * ctx, const char *buff, size_t buflen);
 void rsvg_parse_style_attrs (RsvgHandle * ctx, RsvgState * state, const char *tag,
                              const char *klazz, const char *id, RsvgPropertyBag * atts);
 
-gdouble rsvg_viewport_percentage    (gdouble width, gdouble height);
-gdouble rsvg_dpi_percentage	    (RsvgHandle * ctx);
+gdouble rsvg_viewport_percentage (gdouble width, gdouble height);
+gdouble rsvg_dpi_percentage      (RsvgHandle * ctx);
 
-gboolean rsvg_parse_transform	    (double dst[6], const char *src);
+gboolean rsvg_parse_transform   (double dst[6], const char *src);
 
-RsvgState *rsvg_state_parent	(RsvgDrawingCtx * ctx);
-RsvgState *rsvg_state_current	(RsvgDrawingCtx * ctx);
+RsvgState *rsvg_state_parent    (RsvgDrawingCtx * ctx);
+RsvgState *rsvg_state_current   (RsvgDrawingCtx * ctx);
 
-void rsvg_state_pop	(RsvgDrawingCtx * ctx);
-void rsvg_state_push	(RsvgDrawingCtx * ctx);
+void rsvg_state_pop	 (RsvgDrawingCtx * ctx);
+void rsvg_state_push (RsvgDrawingCtx * ctx);
 
 void rsvg_state_reinherit_top	(RsvgDrawingCtx * ctx, RsvgState * state, int dominate);
 



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