[glib] gmain: rename some variables for clarity



commit 8e65c304315a7f54addd9c2771d20eca007f9d6a
Author: Dan Winship <danw gnome org>
Date:   Sat Jun 23 12:01:40 2012 -0400

    gmain: rename some variables for clarity
    
    https://bugzilla.gnome.org/show_bug.cgi?id=619329

 glib/gmain.c |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/glib/gmain.c b/glib/gmain.c
index 60554f5..21b3a72 100644
--- a/glib/gmain.c
+++ b/glib/gmain.c
@@ -810,32 +810,32 @@ static void
 g_source_list_add (GSource      *source,
 		   GMainContext *context)
 {
-  GSource *tmp_source, *last_source;
+  GSource *prev, *next;
   
   if (source->priv->parent_source)
     {
       /* Put the source immediately before its parent */
-      tmp_source = source->priv->parent_source;
-      last_source = source->priv->parent_source->prev;
+      prev = source->priv->parent_source->prev;
+      next = source->priv->parent_source;
     }
   else
     {
-      last_source = NULL;
-      tmp_source = context->source_list;
-      while (tmp_source && tmp_source->priority <= source->priority)
+      prev = NULL;
+      next = context->source_list;
+      while (next && next->priority <= source->priority)
 	{
-	  last_source = tmp_source;
-	  tmp_source = tmp_source->next;
+	  prev = next;
+	  next = next->next;
 	}
     }
 
-  source->next = tmp_source;
-  if (tmp_source)
-    tmp_source->prev = source;
+  source->next = next;
+  if (next)
+    next->prev = source;
   
-  source->prev = last_source;
-  if (last_source)
-    last_source->next = source;
+  source->prev = prev;
+  if (prev)
+    prev->next = source;
   else
     context->source_list = source;
 }



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