summaryrefslogtreecommitdiffstats
path: root/kdvi
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:38 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:38 +0900
commitd93856fa89507f5ab757f02951a569d725ec4e24 (patch)
tree3fa6cfc90a3ff33f40476de0cd82d0bd3fa2cf24 /kdvi
parentf8eca932ceb0789bbbe8fa645993deddc8a76227 (diff)
downloadtdegraphics-d93856fa89507f5ab757f02951a569d725ec4e24.tar.gz
tdegraphics-d93856fa89507f5ab757f02951a569d725ec4e24.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kdvi')
-rw-r--r--kdvi/TeXFont_PK.cpp12
-rw-r--r--kdvi/util.cpp4
2 files changed, 8 insertions, 8 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);