This is the mail archive of the
gnats-cvs@sourceware.cygnus.com
mailing list for the GNATS project.
gnats/gnats ChangeLog field.c field.h getclose ...
- To: gnats-cvs at sourceware dot cygnus dot com
- Subject: gnats/gnats ChangeLog field.c field.h getclose ...
- From: bmanson at sourceware dot cygnus dot com
- Date: 25 Feb 2000 19:47:13 -0000
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()).