[lasem] Mark many more functions as static



commit 512182d29148ced850afddd5a96f304b456d757a
Author: J.H.M. Dassen (Ray) <jdassen debian org>
Date:   Tue Jan 1 13:12:16 2013 +0100

    Mark many more functions as static

 itex2mml/itex2MML.y               |    4 ++--
 src/lsmdomdocument.c              |    2 +-
 src/lsmdomnode.c                  |    2 +-
 src/lsmdomparser.c                |    4 ++--
 src/lsmmathmlelement.c            |    2 +-
 src/lsmmathmltraits.c             |    2 +-
 src/lsmsvgelement.c               |    2 +-
 src/lsmsvgradialgradientelement.c |    2 +-
 src/lsmsvgtraits.c                |   34 +++++++++++++++++-----------------
 src/lsmsvgview.c                  |    6 +++---
 src/lsmtraits.c                   |    2 +-
 src/lsmutils.c                    |    4 ++--
 tests/lsmtest.c                   |    4 ++--
 13 files changed, 35 insertions(+), 35 deletions(-)
---
diff --git a/itex2mml/itex2MML.y b/itex2mml/itex2MML.y
index 28d884c..39a2139 100644
--- a/itex2mml/itex2MML.y
+++ b/itex2mml/itex2MML.y
@@ -260,7 +260,7 @@
 
  /* Create a hex character reference string corresponding to code
   */
- char * itex2MML_character_reference (unsigned long int code)
+ static char * itex2MML_character_reference (unsigned long int code)
    {
 #define ENTITY_LENGTH 10
      char * entity = (char *) malloc(ENTITY_LENGTH);
@@ -1727,7 +1727,7 @@ static void itex2MML_keep_error (const char * msg)
   itex2MML_last_error = itex2MML_copy_escaped (msg);
 }
 
-int itex2MML_do_html_filter (const char * buffer, unsigned long length, const int forbid_markup)
+static int itex2MML_do_html_filter (const char * buffer, unsigned long length, const int forbid_markup)
 {
   int result = 0;
 
diff --git a/src/lsmdomdocument.c b/src/lsmdomdocument.c
index 1b12b10..31741cd 100644
--- a/src/lsmdomdocument.c
+++ b/src/lsmdomdocument.c
@@ -90,7 +90,7 @@ lsm_dom_document_create_element (LsmDomDocument *document, const char *tag_name)
 	return NULL;
 }
 
-LsmDomText *
+static LsmDomText *
 lsm_dom_document_create_text_node_base (LsmDomDocument *document, const char *data)
 {
 	return LSM_DOM_TEXT (lsm_dom_text_new (data));
diff --git a/src/lsmdomnode.c b/src/lsmdomnode.c
index 6971cfb..d9d61b8 100644
--- a/src/lsmdomnode.c
+++ b/src/lsmdomnode.c
@@ -102,7 +102,7 @@ lsm_dom_node_child_list_get_length (LsmDomNodeList *list)
 	return length;
 }
 
-LsmDomNodeList *
+static LsmDomNodeList *
 lsm_dom_node_child_list_new (LsmDomNode *parent_node)
 {
 	LsmDomNodeChildList *list;
diff --git a/src/lsmdomparser.c b/src/lsmdomparser.c
index f7b973d..fb84ff0 100644
--- a/src/lsmdomparser.c
+++ b/src/lsmdomparser.c
@@ -49,7 +49,7 @@ typedef struct {
 	GHashTable *entities;
 } LsmDomSaxParserState;
 
-void
+static void
 _free_entity (void *data)
 {
 	xmlEntity *entity = data;
@@ -180,7 +180,7 @@ lsm_dom_parser_get_entity (void *user_data, const xmlChar *name)
 	return xmlGetPredefinedEntity(name);
 }
 
-void
+static void
 lsm_dom_parser_declare_entity (void * user_data, const xmlChar * name, int type,
 			       const xmlChar * publicId, const xmlChar * systemId,
 			       xmlChar * content)
diff --git a/src/lsmmathmlelement.c b/src/lsmmathmlelement.c
index bad1eb6..a2f262a 100644
--- a/src/lsmmathmlelement.c
+++ b/src/lsmmathmlelement.c
@@ -73,7 +73,7 @@ lsm_mathml_element_set_attribute (LsmDomElement *self, const char* name, const c
 					     self, name, value);
 }
 
-const char *
+static const char *
 lsm_mathml_element_get_attribute (LsmDomElement *self, const char *name)
 {
 	LsmMathmlElementClass *m_element_class = LSM_MATHML_ELEMENT_GET_CLASS(self);
diff --git a/src/lsmmathmltraits.c b/src/lsmmathmltraits.c
index b5b1f0e..b4e9067 100644
--- a/src/lsmmathmltraits.c
+++ b/src/lsmmathmltraits.c
@@ -740,7 +740,7 @@ const LsmTraitClass lsm_mathml_space_trait_class = {
 	.to_string = lsm_mathml_space_trait_to_string
 };
 
-gboolean
+static gboolean
 lsm_mathml_space_list_trait_from_string (LsmTrait *abstract_trait, char *string)
 {
 	LsmMathmlSpaceList *space_list = (LsmMathmlSpaceList *) abstract_trait;
diff --git a/src/lsmsvgelement.c b/src/lsmsvgelement.c
index 9beccf9..50b60fe 100644
--- a/src/lsmsvgelement.c
+++ b/src/lsmsvgelement.c
@@ -85,7 +85,7 @@ lsm_svg_element_set_attribute (LsmDomElement *self, const char* name, const char
 	}
 }
 
-const char *
+static const char *
 lsm_svg_element_get_attribute (LsmDomElement *self, const char *name)
 {
 	LsmSvgElementClass *s_element_class = LSM_SVG_ELEMENT_GET_CLASS(self);
diff --git a/src/lsmsvgradialgradientelement.c b/src/lsmsvgradialgradientelement.c
index 1996f95..5f81dde 100644
--- a/src/lsmsvgradialgradientelement.c
+++ b/src/lsmsvgradialgradientelement.c
@@ -66,7 +66,7 @@ lsm_svg_radial_gradient_element_get_node_name (LsmDomNode *node)
 
 /* LsmSvgGradientElement implementation */
 
-LsmSvgGradientElement *
+static LsmSvgGradientElement *
 lsm_svg_radial_gradient_element_inherit_referenced (LsmDomDocument *owner,
 						    LsmSvgGradientElement *gradient,
 						    LsmSvgRadialGradientElementAttributes *attributes,
diff --git a/src/lsmsvgtraits.c b/src/lsmsvgtraits.c
index 90ed10b..fe4b2d7 100644
--- a/src/lsmsvgtraits.c
+++ b/src/lsmsvgtraits.c
@@ -41,7 +41,7 @@ lsm_svg_blending_mode_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_blending_mode_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgBlendingMode *trait = (LsmSvgBlendingMode *) abstract_trait;
@@ -65,7 +65,7 @@ lsm_svg_comp_op_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_comp_op_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgCompOp *trait = (LsmSvgCompOp *) abstract_trait;
@@ -89,7 +89,7 @@ lsm_svg_enable_background_trait_from_string (LsmTrait *abstract_trait, char *str
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_enable_background_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgEnableBackground *trait = (LsmSvgEnableBackground *) abstract_trait;
@@ -564,7 +564,7 @@ lsm_svg_paint_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return TRUE;
 }
 
-char *
+static char *
 lsm_svg_paint_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgPaint *paint = (LsmSvgPaint *) abstract_trait;
@@ -598,7 +598,7 @@ lsm_svg_fill_rule_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_fill_rule_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgFillRule *trait = (LsmSvgFillRule *) abstract_trait;
@@ -622,7 +622,7 @@ lsm_svg_font_style_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_font_style_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgFontStyle *trait = (LsmSvgFontStyle *) abstract_trait;
@@ -646,7 +646,7 @@ lsm_svg_font_stretch_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_font_stretch_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgFontStretch *trait = (LsmSvgFontStretch *) abstract_trait;
@@ -673,7 +673,7 @@ lsm_svg_font_weight_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 100 && *trait <= 1000;
 }
 
-char *
+static char *
 lsm_svg_font_weight_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgFontWeight *trait = (LsmSvgFontWeight *) abstract_trait;
@@ -703,7 +703,7 @@ lsm_svg_line_join_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_line_join_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgLineJoin *trait = (LsmSvgLineJoin *) abstract_trait;
@@ -888,7 +888,7 @@ lsm_svg_display_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_display_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgDisplay *trait = (LsmSvgDisplay *) abstract_trait;
@@ -945,7 +945,7 @@ lsm_svg_marker_units_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_marker_units_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgMarkerUnits *trait = (LsmSvgMarkerUnits *) abstract_trait;
@@ -969,7 +969,7 @@ lsm_svg_pattern_units_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_pattern_units_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgPatternUnits *trait = (LsmSvgPatternUnits *) abstract_trait;
@@ -1015,7 +1015,7 @@ lsm_svg_preserve_aspect_ratio_trait_from_string (LsmTrait *abstract_trait, char
 	return TRUE;
 }
 
-char *
+static char *
 lsm_svg_preserve_aspect_ratio_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgPreserveAspectRatio *trait = (LsmSvgPreserveAspectRatio *) abstract_trait;
@@ -1101,7 +1101,7 @@ lsm_svg_text_anchor_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_text_anchor_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgTextAnchor *trait = (LsmSvgTextAnchor *) abstract_trait;
@@ -1125,7 +1125,7 @@ lsm_svg_visibility_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_visibility_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgVisibility *trait = (LsmSvgVisibility *) abstract_trait;
@@ -1192,7 +1192,7 @@ lsm_svg_overflow_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_overflow_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgOverflow *trait = (LsmSvgOverflow *) abstract_trait;
@@ -1216,7 +1216,7 @@ lsm_svg_writing_mode_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return *trait >= 0;
 }
 
-char *
+static char *
 lsm_svg_writing_mode_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmSvgWritingMode *trait = (LsmSvgWritingMode *) abstract_trait;
diff --git a/src/lsmsvgview.c b/src/lsmsvgview.c
index 0243592..5eecae4 100644
--- a/src/lsmsvgview.c
+++ b/src/lsmsvgview.c
@@ -104,7 +104,7 @@ cairo_operator_t cairo_operators[] = {
 	CAIRO_OPERATOR_EXCLUSION
 };
 
-void
+static void
 lsm_cairo_set_comp_op (cairo_t *cairo, LsmSvgCompOp comp_op)
 {
 	if (G_LIKELY (cairo != NULL && comp_op >= LSM_SVG_COMP_OP_CLEAR && comp_op <= LSM_SVG_COMP_OP_EXCLUSION)) {
@@ -1804,7 +1804,7 @@ lsm_svg_view_pop_mask (LsmSvgView *view)
 	}
 }
 
-void
+static void
 lsm_svg_view_push_filter (LsmSvgView *view)
 {
 	LsmExtents extents;
@@ -1852,7 +1852,7 @@ lsm_svg_view_push_filter (LsmSvgView *view)
 		lsm_warning_render ("LsmSvgView::push_filter] Failed to create subsurface");
 }
 
-void
+static void
 lsm_svg_view_pop_filter (LsmSvgView *view)
 {
 	LsmSvgElement *filter_element;
diff --git a/src/lsmtraits.c b/src/lsmtraits.c
index de37e3d..2922db1 100644
--- a/src/lsmtraits.c
+++ b/src/lsmtraits.c
@@ -86,7 +86,7 @@ lsm_box_trait_from_string (LsmTrait *abstract_trait, char *string)
 	return FALSE;
 }
 
-char *
+static char *
 lsm_box_trait_to_string (LsmTrait *abstract_trait)
 {
 	LsmBox *trait = (LsmBox *) abstract_trait;
diff --git a/src/lsmutils.c b/src/lsmutils.c
index 8d03a9c..2f4d308 100644
--- a/src/lsmutils.c
+++ b/src/lsmutils.c
@@ -23,7 +23,7 @@
 
 #include <lsmutils.h>
 
-LsmExtents *
+static LsmExtents *
 lsm_extents_duplicate (const LsmExtents *from)
 {
 	LsmExtents *extents;
@@ -38,7 +38,7 @@ lsm_extents_duplicate (const LsmExtents *from)
 
 G_DEFINE_BOXED_TYPE (LsmExtents, lsm_extents, lsm_extents_duplicate, g_free)
 
-LsmBox *
+static LsmBox *
 lsm_box_duplicate (const LsmBox *from)
 {
 	LsmBox *box;
diff --git a/tests/lsmtest.c b/tests/lsmtest.c
index f78a6f4..db13be7 100644
--- a/tests/lsmtest.c
+++ b/tests/lsmtest.c
@@ -245,7 +245,7 @@ compare_surfaces (const char *test_name, cairo_surface_t *surface_a, cairo_surfa
 	return FALSE;
 }
 
-void
+static void
 lasem_test_render (char const *filename, gboolean compare, gboolean dry_run, Statistic *statistic)
 {
 	LsmDomDocument *document;
@@ -454,7 +454,7 @@ lasem_test_render (char const *filename, gboolean compare, gboolean dry_run, Sta
 	g_free (test_name);
 }
 
-void
+static void
 lasem_test_process_dir (const char *name, gboolean compare, gboolean dry_run, Statistic *statistic)
 {
 	GDir *directory;



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