From 3f0e47a0878cf80a64facc442755cd63f823532a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 20:17:38 +0900 Subject: Removed explicit usage of the 'register' keyword. Signed-off-by: Michele Calgaro (cherry picked from commit d93856fa89507f5ab757f02951a569d725ec4e24) --- kdvi/TeXFont_PK.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kdvi/TeXFont_PK.cpp') 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++; -- cgit v1.2.3