[PATCH 20/265] ANSI-fied libX11

Glynn Clements glynn at gclements.plus.com
Thu Apr 26 19:26:52 PDT 2007


Pat Kane wrote:

> > +       register Display *dpy,
> 
> 
> Are those "register"  keywords still useful?

It's highly unlikely.

> I have always been a bit ignorant on what "register" means,
> is it a hint to the compiler or a hard requirement?

Both. Whether or not the variable is actually stored in a register is
up to the compiler, but taking the address of a "register" variable
with the "&" operator is an error regardless of whether or not the
compiler actually uses a register.

-- 
Glynn Clements <glynn at gclements.plus.com>



More information about the xorg mailing list