diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:38 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 23:52:45 +0900 |
commit | 3f0e47a0878cf80a64facc442755cd63f823532a (patch) | |
tree | 4881c47cc1dc483d30f936df023654298bb4eddb /kdvi/TeXFont_PK.cpp | |
parent | bc6fd115701810351ef945a5f75346e027096983 (diff) | |
download | tdegraphics-3f0e47a0878cf80a64facc442755cd63f823532a.tar.gz tdegraphics-3f0e47a0878cf80a64facc442755cd63f823532a.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d93856fa89507f5ab757f02951a569d725ec4e24)
Diffstat (limited to 'kdvi/TeXFont_PK.cpp')
-rw-r--r-- | kdvi/TeXFont_PK.cpp | 12 |
1 files changed, 6 insertions, 6 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++; |