summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-01-30 20:17:38 +0900
committerMichele Calgaro <[email protected]>2020-01-30 20:17:38 +0900
commitd93856fa89507f5ab757f02951a569d725ec4e24 (patch)
tree3fa6cfc90a3ff33f40476de0cd82d0bd3fa2cf24
parentf8eca932ceb0789bbbe8fa645993deddc8a76227 (diff)
downloadtdegraphics-d93856fa89507f5ab757f02951a569d725ec4e24.tar.gz
tdegraphics-d93856fa89507f5ab757f02951a569d725ec4e24.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--kdvi/TeXFont_PK.cpp12
-rw-r--r--kdvi/util.cpp4
-rw-r--r--ksvg/impl/libs/xrgbrender/gdk-pixbuf-xlib-drawable.c88
-rw-r--r--kviewshell/plugins/djvu/libdjvu/GBitmap.h4
-rw-r--r--kviewshell/plugins/djvu/libdjvu/MMX.h4
-rw-r--r--tdeiconedit/tdeicongrid.cpp2
6 files changed, 57 insertions, 57 deletions
diff --git a/kdvi/TeXFont_PK.cpp b/kdvi/TeXFont_PK.cpp
index 87d7de86..f84375cc 100644
--- a/kdvi/TeXFont_PK.cpp
+++ b/kdvi/TeXFont_PK.cpp
@@ -428,7 +428,7 @@ void TeXFont_PK::PK_skip_specials()
#endif
int i,j;
- register FILE *fp = file;
+ FILE *fp = file;
#ifdef DEBUG_PK
if (fp == 0)
@@ -478,8 +478,8 @@ void TeXFont_PK::read_PK_char(unsigned int ch)
int row_bit_pos;
bool paint_switch;
TQ_UINT32 *cp;
- register struct glyph *g;
- register FILE *fp = file;
+ struct glyph *g;
+ FILE *fp = file;
long fpwidth;
TQ_UINT32 word = 0;
int word_weight, bytes_wide;
@@ -533,7 +533,7 @@ void TeXFont_PK::read_PK_char(unsigned int ch)
{
/* width must be multiple of 16 bits for raster_op */
characterBitmaps[ch]->bytes_wide = ROUNDUP((int) characterBitmaps[ch]->w, 32) * 4;
- register unsigned int size = characterBitmaps[ch]->bytes_wide * characterBitmaps[ch]->h;
+ unsigned int size = characterBitmaps[ch]->bytes_wide * characterBitmaps[ch]->h;
characterBitmaps[ch]->bits = new char[size != 0 ? size : 1];
}
@@ -634,8 +634,8 @@ void TeXFont_PK::read_PK_char(unsigned int ch)
// The data in the bitmap is now in the processor's bit order,
// that is, big endian. Since XWindows needs little endian, we
// need to change the bit order now.
- register unsigned char* bitmapData = (unsigned char*) characterBitmaps[ch]->bits;
- register unsigned char* endOfData = bitmapData + characterBitmaps[ch]->bytes_wide*characterBitmaps[ch]->h;
+ unsigned char* bitmapData = (unsigned char*) characterBitmaps[ch]->bits;
+ unsigned char* endOfData = bitmapData + characterBitmaps[ch]->bytes_wide*characterBitmaps[ch]->h;
while(bitmapData < endOfData) {
*bitmapData = bitflip[*bitmapData];
bitmapData++;
diff --git a/kdvi/util.cpp b/kdvi/util.cpp
index 2942cf08..bcdc3130 100644
--- a/kdvi/util.cpp
+++ b/kdvi/util.cpp
@@ -96,7 +96,7 @@ please report the problem."));
unsigned long num(FILE *fp, int size)
{
- register long x = 0;
+ long x = 0;
while (size--) x = (x << 8) | one(fp);
return x;
@@ -104,7 +104,7 @@ unsigned long num(FILE *fp, int size)
long snum(FILE *fp, int size)
{
- register long x;
+ long x;
#ifdef __STDC__
x = (signed char) getc(fp);
diff --git a/ksvg/impl/libs/xrgbrender/gdk-pixbuf-xlib-drawable.c b/ksvg/impl/libs/xrgbrender/gdk-pixbuf-xlib-drawable.c
index 01f60976..3ed343c5 100644
--- a/ksvg/impl/libs/xrgbrender/gdk-pixbuf-xlib-drawable.c
+++ b/ksvg/impl/libs/xrgbrender/gdk-pixbuf-xlib-drawable.c
@@ -125,7 +125,7 @@ rgb1 (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *colorm
int width, height;
int bpl;
unsigned char *s;
- register unsigned char data;
+ unsigned char data;
unsigned char *o;
unsigned char *srow = image->data, *orow = pixels;
@@ -164,7 +164,7 @@ rgb1a (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *color
int width, height;
int bpl;
unsigned char *s;
- register unsigned char data;
+ unsigned char data;
unsigned char *o;
unsigned char *srow = image->data, *orow = pixels;
unsigned int remap[2];
@@ -216,10 +216,10 @@ rgb8 (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *colorm
int width, height;
int bpl;
unsigned int mask;
- register unsigned int data;
+ unsigned int data;
unsigned char *srow = image->data, *orow = pixels;
- register unsigned char *s;
- register unsigned char *o;
+ unsigned char *s;
+ unsigned char *o;
width = image->width;
height = image->height;
@@ -254,10 +254,10 @@ rgb8a (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *color
int width, height;
int bpl;
unsigned int mask;
- register unsigned int data;
+ unsigned int data;
unsigned int remap[256];
- register unsigned char *s; /* read 2 pixels at once */
- register unsigned int *o;
+ unsigned char *s; /* read 2 pixels at once */
+ unsigned int *o;
unsigned char *srow = image->data, *orow = pixels;
width = image->width;
@@ -307,11 +307,11 @@ rgb565lsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
int bpl;
#ifdef LITTLE
- register unsigned int *s; /* read 2 pixels at once */
+ unsigned int *s; /* read 2 pixels at once */
#else
- register unsigned char *s; /* read 2 pixels at once */
+ unsigned char *s; /* read 2 pixels at once */
#endif
- register unsigned short *o;
+ unsigned short *o;
unsigned char *srow = image->data, *orow = pixels;
width = image->width;
@@ -326,7 +326,7 @@ rgb565lsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
#endif
o = (unsigned short *) orow;
for (xx = 1; xx < width; xx += 2) {
- register unsigned int data;
+ unsigned int data;
#ifdef LITTLE
data = *s++;
*o++ = (data & 0xf800) >> 8 | (data & 0xe000) >> 13
@@ -349,7 +349,7 @@ rgb565lsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
}
/* check for last remaining pixel */
if (width & 1) {
- register unsigned short data;
+ unsigned short data;
#ifdef LITTLE
data = *((short *) s);
#else
@@ -378,11 +378,11 @@ rgb565msb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
int bpl;
#ifdef LITTLE
- register unsigned char *s; /* need to swap data order */
+ unsigned char *s; /* need to swap data order */
#else
- register unsigned int *s; /* read 2 pixels at once */
+ unsigned int *s; /* read 2 pixels at once */
#endif
- register unsigned short *o;
+ unsigned short *o;
unsigned char *srow = image->data, *orow = pixels;
width = image->width;
@@ -397,7 +397,7 @@ rgb565msb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
#endif
o = (unsigned short *) orow;
for (xx = 1; xx < width; xx += 2) {
- register unsigned int data;
+ unsigned int data;
#ifdef LITTLE
/* swap endianness first */
data = s[0] | s[1] << 8 | s[2] << 16 | s[3] << 24;
@@ -420,7 +420,7 @@ rgb565msb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
}
/* check for last remaining pixel */
if (width & 1) {
- register unsigned short data;
+ unsigned short data;
#ifdef LITTLE
data = *((short *) s);
data = ((data >> 8) & 0xff) | ((data & 0xff) << 8);
@@ -449,11 +449,11 @@ rgb565alsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *
int bpl;
#ifdef LITTLE
- register unsigned short *s; /* read 1 pixels at once */
+ unsigned short *s; /* read 1 pixels at once */
#else
- register unsigned char *s;
+ unsigned char *s;
#endif
- register unsigned int *o;
+ unsigned int *o;
unsigned char *srow = image->data, *orow = pixels;
@@ -469,7 +469,7 @@ rgb565alsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *
#endif
o = (unsigned int *) orow;
for (xx = 0; xx < width; xx ++) {
- register unsigned int data;
+ unsigned int data;
/* rrrrrggg gggbbbbb -> rrrrrRRR ggggggGG bbbbbBBB aaaaaaaa */
/* little endian: aaaaaaaa bbbbbBBB ggggggGG rrrrrRRR */
#ifdef LITTLE
@@ -506,11 +506,11 @@ rgb565amsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *
int bpl;
#ifdef LITTLE
- register unsigned char *s;
+ unsigned char *s;
#else
- register unsigned short *s; /* read 1 pixels at once */
+ unsigned short *s; /* read 1 pixels at once */
#endif
- register unsigned int *o;
+ unsigned int *o;
unsigned char *srow = image->data, *orow = pixels;
@@ -522,7 +522,7 @@ rgb565amsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *
s = srow;
o = (unsigned int *) orow;
for (xx = 0; xx < width; xx ++) {
- register unsigned int data;
+ unsigned int data;
/* rrrrrggg gggbbbbb -> rrrrrRRR gggggg00 bbbbbBBB aaaaaaaa */
/* little endian: aaaaaaaa bbbbbBBB gggggg00 rrrrrRRR */
#ifdef LITTLE
@@ -559,11 +559,11 @@ rgb555lsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
int bpl;
#ifdef LITTLE
- register unsigned int *s; /* read 2 pixels at once */
+ unsigned int *s; /* read 2 pixels at once */
#else
- register unsigned char *s; /* read 2 pixels at once */
+ unsigned char *s; /* read 2 pixels at once */
#endif
- register unsigned short *o;
+ unsigned short *o;
unsigned char *srow = image->data, *orow = pixels;
width = image->width;
@@ -578,7 +578,7 @@ rgb555lsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
#endif
o = (unsigned short *) orow;
for (xx = 1; xx < width; xx += 2) {
- register unsigned int data;
+ unsigned int data;
#ifdef LITTLE
data = *s++;
*o++ = (data & 0x7c00) >> 7 | (data & 0x7000) >> 12
@@ -601,7 +601,7 @@ rgb555lsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
}
/* check for last remaining pixel */
if (width & 1) {
- register unsigned short data;
+ unsigned short data;
#ifdef LITTLE
data = *((short *) s);
#else
@@ -630,11 +630,11 @@ rgb555msb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
int bpl;
#ifdef LITTLE
- register unsigned char *s; /* read 2 pixels at once */
+ unsigned char *s; /* read 2 pixels at once */
#else
- register unsigned int *s; /* read 2 pixels at once */
+ unsigned int *s; /* read 2 pixels at once */
#endif
- register unsigned short *o;
+ unsigned short *o;
unsigned char *srow = image->data, *orow = pixels;
width = image->width;
@@ -645,7 +645,7 @@ rgb555msb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
s = srow;
o = (unsigned short *) orow;
for (xx = 1; xx < width; xx += 2) {
- register unsigned int data;
+ unsigned int data;
#ifdef LITTLE
/* swap endianness first */
data = s[0] | s[1] << 8 | s[2] << 16 | s[3] << 24;
@@ -668,7 +668,7 @@ rgb555msb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
}
/* check for last remaining pixel */
if (width & 1) {
- register unsigned short data;
+ unsigned short data;
#ifdef LITTLE
data = *((short *) s);
data = ((data >> 8) & 0xff) | ((data & 0xff) << 8);
@@ -697,11 +697,11 @@ rgb555alsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *
int bpl;
#ifdef LITTLE
- register unsigned short *s; /* read 1 pixels at once */
+ unsigned short *s; /* read 1 pixels at once */
#else
- register unsigned char *s;
+ unsigned char *s;
#endif
- register unsigned int *o;
+ unsigned int *o;
unsigned char *srow = image->data, *orow = pixels;
@@ -717,7 +717,7 @@ rgb555alsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *
#endif
o = (unsigned int *) orow;
for (xx = 0; xx < width; xx++) {
- register unsigned int data;
+ unsigned int data;
/* rrrrrggg gggbbbbb -> rrrrrRRR gggggGGG bbbbbBBB aaaaaaaa */
/* little endian: aaaaaaaa bbbbbBBB gggggGGG rrrrrRRR */
#ifdef LITTLE
@@ -754,11 +754,11 @@ rgb555amsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *
int bpl;
#ifdef LITTLE
- register unsigned short *s; /* read 1 pixels at once */
+ unsigned short *s; /* read 1 pixels at once */
#else
- register unsigned char *s;
+ unsigned char *s;
#endif
- register unsigned int *o;
+ unsigned int *o;
unsigned char *srow = image->data, *orow = pixels;
@@ -774,7 +774,7 @@ rgb555amsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *
#endif
o = (unsigned int *) orow;
for (xx = 0; xx < width; xx++) {
- register unsigned int data;
+ unsigned int data;
/* rrrrrggg gggbbbbb -> rrrrrRRR gggggGGG bbbbbBBB aaaaaaaa */
/* little endian: aaaaaaaa bbbbbBBB gggggGGG rrrrrRRR */
#ifdef LITTLE
diff --git a/kviewshell/plugins/djvu/libdjvu/GBitmap.h b/kviewshell/plugins/djvu/libdjvu/GBitmap.h
index 74669c05..22abbe06 100644
--- a/kviewshell/plugins/djvu/libdjvu/GBitmap.h
+++ b/kviewshell/plugins/djvu/libdjvu/GBitmap.h
@@ -621,7 +621,7 @@ GBitmap::euclidian_ratio(int a, int b, int &q, int &r)
inline int
GBitmap::read_run(unsigned char *&data)
{
- register int z=*data++;
+ int z=*data++;
return (z>=RUNOVERFLOWVALUE)?
((z&~RUNOVERFLOWVALUE)<<8)|(*data++):z;
}
@@ -629,7 +629,7 @@ GBitmap::read_run(unsigned char *&data)
inline int
GBitmap::read_run(const unsigned char *&data)
{
- register int z=*data++;
+ int z=*data++;
return (z>=RUNOVERFLOWVALUE)?
((z&~RUNOVERFLOWVALUE)<<8)|(*data++):z;
}
diff --git a/kviewshell/plugins/djvu/libdjvu/MMX.h b/kviewshell/plugins/djvu/libdjvu/MMX.h
index 41ec002f..9f432fe6 100644
--- a/kviewshell/plugins/djvu/libdjvu/MMX.h
+++ b/kviewshell/plugins/djvu/libdjvu/MMX.h
@@ -174,9 +174,9 @@ class MMXControl
#define MMXir(op,imm,dst) \
__asm { op dst,imm }
#define MMXar(op,addr,dst) \
- { register __int64 var=*(__int64*)(addr); __asm { op dst,var } }
+ { __int64 var=*(__int64*)(addr); __asm { op dst,var } }
#define MMXra(op,src,addr) \
- { register __int64 var; __asm { op [var],src }; *(__int64*)addr = var; }
+ { __int64 var; __asm { op [var],src }; *(__int64*)addr = var; }
// Probably not as efficient as GCC macros
#define MMX 1
#endif
diff --git a/tdeiconedit/tdeicongrid.cpp b/tdeiconedit/tdeicongrid.cpp
index 8c336428..af62db5e 100644
--- a/tdeiconedit/tdeicongrid.cpp
+++ b/tdeiconedit/tdeicongrid.cpp
@@ -1985,7 +1985,7 @@ bool TDEIconEditGrid::isMarked(int x, int y)
// Based on TQt's image conversion functions
static bool kdither_32_to_8( const TQImage *src, TQImage *dst )
{
- register TQRgb *p;
+ TQRgb *p;
uchar *b;
int y;