From: Carl Worth <cworth@cworth.org>
Date: Mon, 19 Oct 2009 20:40:56 +0000 (-0700)
Subject: Document which pieces of glib we're still using.
X-Git-Tag: 0.1~828
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=c5eea2b77ef3fb90c8ddcb953f1086ba5bb123f3;p=notmuch-old

Document which pieces of glib we're still using.

Looks like we can copy in a hash-table implementation, (from cairo,
say), and then a few _ascii_ functions from glib, (we'll need to
switch a few current uses if things like isspace, etc. to locale-
independent versions as well). So not too hard to free ourselves
of glib for now, (until we add GMime back in later, of course).
---

diff --git a/database.cc b/database.cc
index 6ac04f74..2f3959fa 100644
--- a/database.cc
+++ b/database.cc
@@ -24,7 +24,7 @@
 
 #include <xapian.h>
 
-#include <glib.h>
+#include <glib.h> /* g_strdup_printf, g_free, GHashTable */
 
 using namespace std;
 
diff --git a/message.c b/message.c
index ea5d239a..646403fb 100644
--- a/message.c
+++ b/message.c
@@ -22,7 +22,7 @@
 
 #include "notmuch-private.h"
 
-#include <glib.h>
+#include <glib.h> /* GHashTable */
 
 struct _notmuch_message {
     /* File objects */
diff --git a/notmuch.c b/notmuch.c
index e4b5dff6..5853fe55 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -30,7 +30,7 @@
 #include <dirent.h>
 #include <errno.h>
 
-#include <glib.h>
+#include <glib.h> /* GIOChannel */
 
 #define ARRAY_SIZE(arr) (sizeof (arr) / sizeof (arr[0]))