|
From: | Aleksander Morgado |
Subject: | Re: [pdf-devel] Re: List unit test failing |
Date: | Mon, 21 Apr 2008 17:55:25 +0200 |
User-agent: | Thunderbird 2.0.0.12 (Macintosh/20080213) |
> I saw that pdf_list_add_first_001 fails. You can find the simple > correction attached.Right I left it failing because I'm not sure how the "allow_duplicates" parameter works on gl_list. IMHO in that test case the second add would not add the element since it's already in the list and the size would still be 1.
You are right. It seems that the compare function that you give to gnulib list module is only used when looking for a given element in the list (gl_array_indexof_from_to), not to check for duplicates when adding a new element.
If someone knows how "allow_duplicates" is supposed to work, help me :-)
This parameter seems not used in the gnulib array list implementation (gl_array_list.[c|h]).
jemarch, is this a bug in gnulib? or are we misunderstanding something?
[Prev in Thread] | Current Thread | [Next in Thread] |