Subject: Re: rasops "attr"
To: Martin Husemann <martin@duskware.de>
From: Michael <macallan18@earthlink.net>
List: tech-kern
Date: 05/23/2005 10:12:07
--Signature_Mon__23_May_2005_10_12_07_-0400_.=Y9yUJk_SmP/NH3
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> Rasops seems to use "long" to store character attributes. That seems
> ... suboptimal on ports like sparc64, where long is 64 bit.
>=20
> Can we replace it by u_int (or maybe u_int32) in the whole tree?

I've been wondering about the same. Whoever wrote the code probably
assumed that a long would always be 32bit... 64bit for attributes is
definitely a waste since the upper 32bit will always be unused for
portability's sake. It should at least be a type that's the same size on
all architectures.

And wouldn't uint16_t ( or probably wchar_t ) be enough for characters?
So far we don't use more than 8bit anyway.

have fun
Michael

--Signature_Mon__23_May_2005_10_12_07_-0400_.=Y9yUJk_SmP/NH3
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQpHkt8pnzkX8Yg2nAQI13gf/XatjVK0DwtyYv4l2RNwpmct+TqL6CJLQ
IX+opPd4CAUTvToyXTJw/PVy7A6/ouBxz/htMX21qbD3impZdw4MByiqJhm4hjLM
uwaaRj/C833CgOcHeyUCkdTthJCoZDtKHSC4eBZgFilxIADhLxmUl1vbh/R5A32d
zDoeQli/0lRVRQ64ilRlX2r1oK/pcuNS21VYPNtPUXAQtsa/YdQLhe6yp5bddCk/
/IAYXm7ApXsCpx/la/UXIdRW/PpltvTVKn18n9PjByu7+9ztE10yFnteAVgaZ2h3
NFINIIaTcTgdlLtplKj83B2+xDYO/qdIRZQgt+mClBGsdnMtDOOAnw==
=sHDV
-----END PGP SIGNATURE-----

--Signature_Mon__23_May_2005_10_12_07_-0400_.=Y9yUJk_SmP/NH3--