int y;
unsigned int y;
PutImagePixels8(image, width, height, pixelindex, pixels)    XImage *image;    unsigned int width;    unsigned int height;    unsigned int *pixelindex;    Pixel *pixels;{    char *data;    unsigned int *iptr;    int y;#ifdef WITHOUT_SPEEDUPS    int x;    data = image->data;    iptr = pixelindex;    for (y = 0; y < height; y++)	for (x = 0; x < width; x++, iptr++)	    data[ZINDEX8(x, y, image)] = pixels[*iptr];#else  /* WITHOUT_SPEEDUPS */    int bpl = image->bytes_per_line;    char *data_ptr, *max_data;    data = image->data;    iptr = pixelindex;    for (y = 0; y < height; y++) {	data_ptr = data;	max_data = data_ptr + width;	while (data_ptr < max_data)	    *(data_ptr++) = pixels[*(iptr++)];	data += bpl;    }#endif /* WITHOUT_SPEEDUPS */}