From 76398034067abd80e174fea9d0d6c619de7cc679 Mon Sep 17 00:00:00 2001 From: gdt Date: Mon, 22 Dec 2003 16:32:15 +0000 Subject: note that order of = items is undefined, probably --- lib/linklist.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/linklist.c') diff --git a/lib/linklist.c b/lib/linklist.c index d6eeab41..9c1b297a 100644 --- a/lib/linklist.c +++ b/lib/linklist.c @@ -85,6 +85,10 @@ listnode_add (struct list *list, void *val) * cmp function, insert a new node with the given val such that the * list remains sorted. The new node is always inserted; there is no * notion of omitting duplicates. + * + * XXX not sure this is right: + * It is currently undefined whether new nodes for which cmp returns 0 + * should be added before or after any existing nodes. */ void listnode_add_sort (struct list *list, void *val) -- cgit v1.2.1