mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-29 21:46:40 +00:00
dix: remove 'register' keyword for all variables.
This commit is contained in:
parent
40ae4f246d
commit
63169ce52d
18 changed files with 672 additions and 673 deletions
|
|
@ -95,8 +95,8 @@ static int BlueComp(
|
|||
);
|
||||
|
||||
static void FreePixels(
|
||||
register ColormapPtr /*pmap*/,
|
||||
register int /*client*/
|
||||
ColormapPtr /*pmap*/,
|
||||
int /*client*/
|
||||
);
|
||||
|
||||
static void CopyFree(
|
||||
|
|
@ -259,9 +259,9 @@ CreateColormap (Colormap mid, ScreenPtr pScreen, VisualPtr pVisual,
|
|||
int class, size;
|
||||
unsigned long sizebytes;
|
||||
ColormapPtr pmap;
|
||||
register EntryPtr pent;
|
||||
EntryPtr pent;
|
||||
int i;
|
||||
register Pixel *ppix, **pptr;
|
||||
Pixel *ppix, **pptr;
|
||||
|
||||
class = pVisual->class;
|
||||
if(!(class & DynamicClass) && (alloc != AllocNone) && (client != SERVER_ID))
|
||||
|
|
@ -428,8 +428,8 @@ CreateColormap (Colormap mid, ScreenPtr pScreen, VisualPtr pVisual,
|
|||
int
|
||||
FreeColormap (pointer value, XID mid)
|
||||
{
|
||||
int i;
|
||||
register EntryPtr pent;
|
||||
int i;
|
||||
EntryPtr pent;
|
||||
ColormapPtr pmap = (ColormapPtr)value;
|
||||
|
||||
if(CLIENT_ID(mid) != SERVER_ID)
|
||||
|
|
@ -744,9 +744,9 @@ static void
|
|||
UpdateColors (ColormapPtr pmap)
|
||||
{
|
||||
xColorItem *defs;
|
||||
register xColorItem *pdef;
|
||||
register EntryPtr pent;
|
||||
register VisualPtr pVisual;
|
||||
xColorItem *pdef;
|
||||
EntryPtr pent;
|
||||
VisualPtr pVisual;
|
||||
int i, n, size;
|
||||
|
||||
pVisual = pmap->pVisual;
|
||||
|
|
@ -993,14 +993,14 @@ AllocColor (ColormapPtr pmap,
|
|||
*/
|
||||
|
||||
_X_EXPORT void
|
||||
FakeAllocColor (register ColormapPtr pmap, register xColorItem *item)
|
||||
FakeAllocColor (ColormapPtr pmap, xColorItem *item)
|
||||
{
|
||||
Pixel pixR, pixG, pixB;
|
||||
Pixel temp;
|
||||
int entries;
|
||||
xrgb rgb;
|
||||
int class;
|
||||
register VisualPtr pVisual;
|
||||
Pixel pixR, pixG, pixB;
|
||||
Pixel temp;
|
||||
int entries;
|
||||
xrgb rgb;
|
||||
int class;
|
||||
VisualPtr pVisual;
|
||||
|
||||
pVisual = pmap->pVisual;
|
||||
rgb.red = item->red;
|
||||
|
|
@ -1059,9 +1059,9 @@ FakeAllocColor (register ColormapPtr pmap, register xColorItem *item)
|
|||
|
||||
/* free a pixel value obtained from FakeAllocColor */
|
||||
_X_EXPORT void
|
||||
FakeFreeColor(register ColormapPtr pmap, Pixel pixel)
|
||||
FakeFreeColor(ColormapPtr pmap, Pixel pixel)
|
||||
{
|
||||
register VisualPtr pVisual;
|
||||
VisualPtr pVisual;
|
||||
Pixel pixR, pixG, pixB;
|
||||
|
||||
switch (pmap->class) {
|
||||
|
|
@ -1507,11 +1507,11 @@ QueryColors (ColormapPtr pmap, int count, Pixel *ppixIn, xrgb *prgbList)
|
|||
}
|
||||
|
||||
static void
|
||||
FreePixels(register ColormapPtr pmap, register int client)
|
||||
FreePixels(ColormapPtr pmap, int client)
|
||||
{
|
||||
register Pixel *ppix, *ppixStart;
|
||||
register int n;
|
||||
int class;
|
||||
Pixel *ppix, *ppixStart;
|
||||
int n;
|
||||
int class;
|
||||
|
||||
class = pmap->class;
|
||||
ppixStart = pmap->clientPixelsRed[client];
|
||||
|
|
@ -1646,8 +1646,8 @@ AllocColorPlanes (int client, ColormapPtr pmap, int colors,
|
|||
{
|
||||
int ok;
|
||||
Pixel mask, *ppixFirst;
|
||||
register Pixel shift;
|
||||
register int i;
|
||||
Pixel shift;
|
||||
int i;
|
||||
int class;
|
||||
int oldcount;
|
||||
colorResource *pcr = (colorResource *)NULL;
|
||||
|
|
@ -2409,10 +2409,10 @@ FreeCo (ColormapPtr pmap, int client, int color, int npixIn, Pixel *ppixIn, Pixe
|
|||
_X_EXPORT int
|
||||
StoreColors (ColormapPtr pmap, int count, xColorItem *defs)
|
||||
{
|
||||
register Pixel pix;
|
||||
register xColorItem *pdef;
|
||||
register EntryPtr pent, pentT, pentLast;
|
||||
register VisualPtr pVisual;
|
||||
Pixel pix;
|
||||
xColorItem *pdef;
|
||||
EntryPtr pent, pentT, pentLast;
|
||||
VisualPtr pVisual;
|
||||
SHAREDCOLOR *pred, *pgreen, *pblue;
|
||||
int n, ChgRed, ChgGreen, ChgBlue, idef;
|
||||
int class, errVal = Success;
|
||||
|
|
|
|||
Loading…
Reference in a new issue