diff options
author | Michele Calgaro <[email protected]> | 2020-01-30 20:17:38 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-01-30 20:17:38 +0900 |
commit | d93856fa89507f5ab757f02951a569d725ec4e24 (patch) | |
tree | 3fa6cfc90a3ff33f40476de0cd82d0bd3fa2cf24 /kdvi/TeXFont_PK.cpp | |
parent | f8eca932ceb0789bbbe8fa645993deddc8a76227 (diff) | |
download | tdegraphics-d93856fa89507f5ab757f02951a569d725ec4e24.tar.gz tdegraphics-d93856fa89507f5ab757f02951a569d725ec4e24.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]>
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++; |