Add comments.
authorDana Jansens <danakj@orodu.net>
Fri, 30 Oct 2009 23:01:14 +0000 (19:01 -0400)
committerDana Jansens <danakj@orodu.net>
Thu, 12 Nov 2009 21:54:05 +0000 (16:54 -0500)
glib/gtree.c

index 258a1cc67bfad8636e1cf5e37bb46d9b12f7d548..ae0755c3006caa9f49bfcd8fe76c2f966b080ebe 100644 (file)
@@ -495,6 +495,8 @@ g_tree_next_version (GTree *tree)
   return ++tree->version;
 }
 
+/* Make a new root pointer if the current one is not for the current version
+   of the tree */
 static void
 g_tree_root_next_version (GTree *tree)
 {
@@ -694,7 +696,8 @@ g_tree_priority (GTreeNode *node)
   return key? key : 1;
 }
 
-/* internal insert routine */
+/* Internal insert routine.  Always inserts into the current version of the
+   tree. */
 static void
 g_tree_insert_internal (GTree    *tree,
                         gpointer  key,