Re: [PATCH 3/3] pretty=format: Avoid some expensive calculations when not needed
- From
Jon Loeliger <jdl@freescale.com>
- Date
- Nov 5, 2007, 20:25 UTC
- Message-ID
- <1194294351.7158.41.camel@ld0161-tx32>
- In-Reply-To
- <472F7B2F.4050608@lsrfire.ath.cx>
On Mon, 2007-11-05 at 14:21, René Scharfe wrote:
Show 5 quoted lines
> How about (ab)using the value field? Let interp_find_active() mark > unneeded entries with NULL, and the rest with some cookie. All table > entries with non-NULL values need to be initialized. interp_set_entry() > needs to be aware of this cookie, as it mustn't free() it. The cookie > could be the address of a static char* in interpolate.c.
Or adding a "flags/properties" field and having it note things like static entries, active, etc...?
jdl