[pacman-dev] [PATCH] generalize alpm_list_find_str
Hi! Patch attached. Bye, ngaba ---------------------------------------------------- SZTE Egyetemi Könyvtár - http://www.bibl.u-szeged.hu This mail sent through IMP: http://horde.org/imp/
On Fri, Nov 16, 2007 at 05:41:03PM +0100, Nagy Gabor wrote:
Since its generally strcmp which is used, why not having, besides your generic alpm_list_find, an alpm_list_find_str, which would just call alpm_list_find with strcmp ? It looks annoying to have to add that casted strmcp argument every time.
On Nov 16, 2007 11:14 AM, Xavier <shiningxc@gmail.com> wrote:
I agree. In fact, I was even going to suggest doing the same with the find_ptr version, just for clarity and less duplicate code.
Attached. Bye, ngaba ---------------------------------------------------- SZTE Egyetemi Könyvtár - http://www.bibl.u-szeged.hu This mail sent through IMP: http://horde.org/imp/
On Nov 16, 2007 4:19 PM, Nagy Gabor <ngaba@bibl.u-szeged.hu> wrote:
Attached.
Looks better to me - Dan, I'll let you be gatekeeper here, but I like this.
participants (3)
-
Aaron Griffin
-
Nagy Gabor
-
Xavier