wm: glendy

Download patch

ref: 57d82eea9ce4ffa16b23d0146b114e74195abcb4
parent: 413720140ffd10768af41ea2668daec4b5684353
author: mkf <mkf@cloud9p.org>
date: Thu Jun 6 14:06:26 EDT 2024

util: minor improvemnets

--- a/util.c
+++ b/util.c
@@ -211,6 +211,7 @@
 	q->len++;
 	if(q->head == nil && q->tail == nil)
 	{
+		dprint("qadd(): q->head == nil || q->tail == nil");
 		q->head = llnew();
 		q->head->data = data;
 		q->tail = q->head;
@@ -217,6 +218,7 @@
 	}
 	else
 	{
+		dprint("qadd(): q->head != nil || q->tail != nil");
 		lladd(q->tail, data);
 		q->tail = q->tail->next;
 	}