From mboxrd@z Thu Jan 1 00:00:00 1970 From: bmanson@sourceware.cygnus.com To: gnats-cvs@sourceware.cygnus.com Subject: gnats/gnats ChangeLog field.c field.h pr.c query.c Date: Fri, 25 Feb 2000 21:51:00 -0000 Message-id: <20000226055143.2052.qmail@sourceware.cygnus.com> X-SW-Source: 2000/msg00086.html List-Id: CVSROOT: /cvs/gnats Module name: gnats Changes by: bmanson@sourceware.cygnus.com 00/02/25 21:51:43 Modified files: gnats : ChangeLog field.c field.h pr.c query.c Log message: * query.c (newQueryItem): Keep the last-freed entry, and return it instead of allocating a new one. Make sure we free the regexp buffer we allocated. * pr.c (getFieldHeader): Don't bother making a copy of the header name, just return a pointer into the line and the length of the header. (find_field_num): Add LEN parameter. * field.c: Create a sorted list of field names. (find_field_index_with_len): New function (basically renamed from find_field_index). Do a binary search for the field name on the sorted field name list.