37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
int fprev; /* zero if initial entry. non-zero if an edit */
int firt; /* This entry replies to firt */
int mfirt; /* Root in-reply-to */
int nReply; /* Number of replies to this entry */
int sid; /* Serial ID number */
char *zUuid; /* Artifact hash */
ForumEntry *pLeaf; /* Most recent edit for this entry */
ForumEntry *pEditPrev; /* This entry is an edit of pEditPrev */
ForumEntry *pNext; /* Next in chronological order */
ForumEntry *pPrev; /* Previous in chronological order */
ForumEntry *pDisplay; /* Next in display order */
int nIndent; /* Number of levels of indentation for this entry */
};
|
>
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
int fprev; /* zero if initial entry. non-zero if an edit */
int firt; /* This entry replies to firt */
int mfirt; /* Root in-reply-to */
int nReply; /* Number of replies to this entry */
int sid; /* Serial ID number */
char *zUuid; /* Artifact hash */
ForumEntry *pLeaf; /* Most recent edit for this entry */
ForumEntry *pEditNext; /* This entry is edited by pEditNext */
ForumEntry *pEditPrev; /* This entry is an edit of pEditPrev */
ForumEntry *pNext; /* Next in chronological order */
ForumEntry *pPrev; /* Previous in chronological order */
ForumEntry *pDisplay; /* Next in display order */
int nIndent; /* Number of levels of indentation for this entry */
};
|
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
** completes, entries that have non-NULL pLeaf should not be
** displayed.
*/
for(pEntry=pThread->pFirst; pEntry; pEntry=pEntry->pNext){
if( pEntry->fprev ){
ForumEntry *pBase = 0, *p;
p = forumentry_backward(pEntry->pPrev, pEntry->fprev);
pEntry->pEditPrev = p;
while( p ){
pBase = p;
p->pLeaf = pEntry;
p = pBase->pEditPrev;
}
for(p=pEntry->pNext; p; p=p->pNext){
|
>
|
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
** completes, entries that have non-NULL pLeaf should not be
** displayed.
*/
for(pEntry=pThread->pFirst; pEntry; pEntry=pEntry->pNext){
if( pEntry->fprev ){
ForumEntry *pBase = 0, *p;
p = forumentry_backward(pEntry->pPrev, pEntry->fprev);
p->pEditNext = pEntry;
pEntry->pEditPrev = p;
while( p ){
pBase = p;
p->pLeaf = pEntry;
p = pBase->pEditPrev;
}
for(p=pEntry->pNext; p; p=p->pNext){
|