[comp.windows.x] X and dbm

ado@elsie.UUCP (Arthur David Olson) (07/10/88)

Following up on Gene Spafford's tips, I'm recompiling X and friends with the
Gnu C compiler.  As Gene noted, you get to be careful with
"server/os/4.2bsd/oscolor.c", which calls dbm(3) functions.  Wanting to
get everything compiled with gcc, I went ahead and changed oscolor.c
to (conditionally) use the "structure value return" workaround suggested in
the Gnu internals document.  It looks ugly.  My temptation is to excise the
dbm code entirely from osinit.c and oscolor.c, and (in oscolor.c) get color
information directly from the "/usr/lib/X11/rgb.txt" file; since the file is
short (less than 3200 characters) I wouldn't expect any visible performance hit.

Does anyone know of a good reason to avoid such a change?
-- 
	ado@ncifcrf.gov			ADO is a trademark of Ampex.