[yelp/wip/patches: 4/6] libyelp: Make some private functions static



commit 3c9ac3c9663fa94485d3f086635d46488b03a805
Author: David King <amigadave amigadave com>
Date:   Fri Aug 1 18:33:35 2014 +0100

    libyelp: Make some private functions static
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720577

 libyelp/yelp-document.c    |    2 +-
 libyelp/yelp-info-parser.c |   10 +++++-----
 libyelp/yelp-settings.c    |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libyelp/yelp-document.c b/libyelp/yelp-document.c
index d62e498..14d82a7 100644
--- a/libyelp/yelp-document.c
+++ b/libyelp/yelp-document.c
@@ -152,7 +152,7 @@ static const gchar *  str_ref                   (const gchar          *str);
 static void           str_unref                 (const gchar          *str);
 
 static GMutex str_mutex;
-GHashTable  *str_refs  = NULL;
+static GHashTable  *str_refs  = NULL;
 
 /******************************************************************************/
 
diff --git a/libyelp/yelp-info-parser.c b/libyelp/yelp-info-parser.c
index 6f93958..fd8f379 100644
--- a/libyelp/yelp-info-parser.c
+++ b/libyelp/yelp-info-parser.c
@@ -31,25 +31,25 @@
 #include "yelp-debug.h"
 
 
-GtkTreeIter *         find_real_top                      (GtkTreeModel *model, 
+static GtkTreeIter *  find_real_top                      (GtkTreeModel *model, 
                                                          GtkTreeIter *it);
-GtkTreeIter *         find_real_sibling                  (GtkTreeModel *model,
+static GtkTreeIter *  find_real_sibling                  (GtkTreeModel *model,
                                                          GtkTreeIter *it, 
                                                          GtkTreeIter *comp);
 xmlNodePtr            yelp_info_parse_menu               (GtkTreeStore *tree,
                                                          xmlNodePtr *node,
                                                          gchar *page_content,
                                                          gboolean notes);
-gboolean              get_menuoptions                    (gchar *line, 
+static gboolean       get_menuoptions                    (gchar *line, 
                                                          gchar **title, 
                                                          gchar **ref, 
                                                          gchar **desc, 
                                                          gchar **xref);
-gboolean              resolve_frag_id                    (GtkTreeModel *model, 
+static gboolean       resolve_frag_id                    (GtkTreeModel *model, 
                                                          GtkTreePath *path, 
                                                          GtkTreeIter *iter,
                                                          gpointer data);
-void                         info_process_text_notes            (xmlNodePtr *node, 
+static void          info_process_text_notes            (xmlNodePtr *node, 
                                                          gchar *content,
                                                          GtkTreeStore
                                                          *tree);
diff --git a/libyelp/yelp-settings.c b/libyelp/yelp-settings.c
index 2fe3143..aeb3407 100644
--- a/libyelp/yelp-settings.c
+++ b/libyelp/yelp-settings.c
@@ -71,7 +71,7 @@ enum {
   PROP_EDITOR_MODE
 };
 
-gchar *icon_names[YELP_SETTINGS_NUM_ICONS];
+static gchar *icon_names[YELP_SETTINGS_NUM_ICONS];
 
 G_DEFINE_TYPE (YelpSettings, yelp_settings, G_TYPE_OBJECT);
 #define GET_PRIV(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), YELP_TYPE_SETTINGS, YelpSettingsPriv))


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