Make dumpcolors() have tolerable performance when using 32-bit chr,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 298c4575200e25d1e1c3447b5400e1a6f91bc500
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-10-06T16:18:09Z
Releases: 8.3.0
Make dumpcolors() have tolerable performance when using 32-bit chr,
as we do (and upstream Tcl doesn't).  The loop limit might be subject
to negotiation if anyone ever tries to do regex debugging in Far
Eastern languages, but for now 1000 seems plenty.  CHR_MAX was right out :-(

Files

PathChange+/−
src/backend/regex/regc_color.c modified +10 −6