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 getclose ... Date: Fri, 25 Feb 2000 11:47:00 -0000 Message-id: <20000225194713.15478.qmail@sourceware.cygnus.com> X-SW-Source: 2000/msg00083.html List-Id: CVSROOT: /cvs/gnats Module name: gnats Changes by: bmanson@sourceware.cygnus.com 00/02/25 11:47:13 Modified files: gnats : ChangeLog field.c field.h getclose.c misc.c pr.c query.c query.h Log message: * pr.c (getFieldHeader): Use xstrndup. (write_pr_field): Don't call xmalloc (); instead, be a bit smarter about formatting output. (Can probably remove some rather inefficient calls to fprintf() as well.) * field.c (isConstantFieldValue): New function. * query.c: Add QueryItem object to hold individual query items; this lets us keep around precompiled regexps for constant query regexps, instead of recompiling every time. (regcmp, regfind): Add pattern buffer argument; only compile the regexp into the supplied buffer once. * misc.c (readLine): Optimize (remove a unnecessary memcpy()).