]> code.citadel.org Git - citadel.git/blobdiff - webcit/blogview_renderer.c
pointers, not objects
[citadel.git] / webcit / blogview_renderer.c
index 4b286eb5db515f66e205da384e1f130d488058d0..818c0a1ad8a2e32d936c7cf095717fc5919fecd9 100644 (file)
@@ -5,7 +5,7 @@
  *
  * This program is open source software.  You can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 3 of the
+ * published by the Free Software Foundation -- either version 3 of the
  * License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
@@ -181,8 +181,7 @@ int blogview_LoadMsgFromServer(SharedMessageStatus *Stat,
 
        /* FIXME an optimization here -- one we ought to perform -- is to exit this
         * function immediately if the viewer is only interested in a single post and
-        * that message ID is neither the id nor the refs.  Actually, that might *be*
-        * the way to display only a single message (with or without comments).
+        * that message ID is neither the id nor the refs.
         */
 
        if (b.refs == 0) {
@@ -221,7 +220,7 @@ int blogview_LoadMsgFromServer(SharedMessageStatus *Stat,
 
 
 /*
- * Sort a list of 'struct blogpost' objects by newest-to-oldest msgnum.
+ * Sort a list of 'struct blogpost' pointers by newest-to-oldest msgnum.
  * With big thanks to whoever wrote http://www.c.happycodings.com/Sorting_Searching/code14.html
  */
 static int blogview_sortfunc(const void *a, const void *b) { 
@@ -270,7 +269,6 @@ int blogview_render(SharedMessageStatus *Stat, void **ViewSpecific, long oper)
                qsort(blogposts, num_blogposts, sizeof(void *), blogview_sortfunc);
 
                /* FIXME this is where we handle date ranges etc */
-
                for (i=0; i<num_blogposts; ++i) {
                        blogpost_render(blogposts[i]);
                }