[yelp/wip/patches: 8/11] libyelp: Make some private functions static
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp/wip/patches: 8/11] libyelp: Make some private functions static
- Date: Thu, 11 Sep 2014 09:07:00 +0000 (UTC)
commit de44113f0853fe07659a547b225b9695d3107641
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 68041ac..05aad93 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]