Browse Source

Removed explicit usage of the 'register' keyword.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/23/head
Michele Calgaro 2 months ago
parent
commit
99e56ba8db
Signed by: MicheleC <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
48 changed files with 408 additions and 408 deletions
  1. +1
    -1
      doc/html/desktop-example.html
  2. +1
    -1
      examples/demo/opengl/fbm.c
  3. +1
    -1
      examples/desktop/desktop.cpp
  4. +24
    -24
      src/3rdparty/libpng/pnggccrd.c
  5. +12
    -12
      src/3rdparty/libpng/pngvcrd.c
  6. +4
    -4
      src/3rdparty/sqlite/printf.c
  7. +4
    -4
      src/3rdparty/sqlite/util.c
  8. +4
    -4
      src/3rdparty/zlib/crc32.c
  9. +15
    -15
      src/3rdparty/zlib/deflate.c
  10. +1
    -1
      src/3rdparty/zlib/trees.c
  11. +2
    -2
      src/kernel/qaccel.cpp
  12. +6
    -6
      src/kernel/qapplication.cpp
  13. +3
    -3
      src/kernel/qapplication_x11.cpp
  14. +1
    -1
      src/kernel/qcursor_x11.cpp
  15. +4
    -4
      src/kernel/qeventloop_unix.cpp
  16. +4
    -4
      src/kernel/qeventloop_unix_glib.cpp
  17. +27
    -27
      src/kernel/qimage.cpp
  18. +6
    -6
      src/kernel/qobject.cpp
  19. +3
    -3
      src/kernel/qpainter_x11.cpp
  20. +2
    -2
      src/kernel/qpixmap_x11.cpp
  21. +6
    -6
      src/kernel/qpointarray.cpp
  22. +20
    -20
      src/kernel/qpolygonscanner.cpp
  23. +76
    -76
      src/kernel/qregion_x11.cpp
  24. +1
    -1
      src/kernel/qrichtext.cpp
  25. +3
    -3
      src/kernel/qwidget.cpp
  26. +2
    -2
      src/kernel/qwidget_x11.cpp
  27. +2
    -2
      src/kernel/qwmatrix.cpp
  28. +20
    -20
      src/moc/moc_lex.cpp
  29. +6
    -6
      src/table/qtable.cpp
  30. +9
    -9
      src/tools/qbitarray.cpp
  31. +19
    -19
      src/tools/qcstring.cpp
  32. +14
    -14
      src/tools/qdatastream.cpp
  33. +12
    -12
      src/tools/qgarray.cpp
  34. +1
    -1
      src/tools/qgcache.cpp
  35. +7
    -7
      src/tools/qgdict.cpp
  36. +12
    -12
      src/tools/qglist.cpp
  37. +2
    -2
      src/tools/qgvector.cpp
  38. +14
    -14
      src/tools/qlocale.cpp
  39. +13
    -13
      src/tools/qstring.cpp
  40. +2
    -2
      src/tools/qtextstream.cpp
  41. +9
    -9
      src/tools/qunicodetables_p.h
  42. +1
    -1
      src/widgets/qaction.cpp
  43. +3
    -3
      src/widgets/qbuttongroup.cpp
  44. +1
    -1
      src/widgets/qlcdnumber.cpp
  45. +4
    -4
      src/widgets/qmenubar.cpp
  46. +4
    -4
      src/widgets/qmenudata.cpp
  47. +19
    -19
      src/widgets/qpopupmenu.cpp
  48. +1
    -1
      tools/designer/designer/mainwindow.cpp

+ 1
- 1
doc/html/desktop-example.html View File

@@ -95,7 +95,7 @@ void poly()
int head = 0;
int tail = -maxcurves + 2;
<a href="ntqpointarray.html">TQPointArray</a> *a = new <a href="ntqpointarray.html">TQPointArray</a>[ maxcurves ];
register TQPointArray *p;
TQPointArray *p;
<a name="x1760"></a> <a href="ntqrect.html">TQRect</a> r = d-&gt;<a href="ntqwidget.html#rect">rect</a>(); // desktop rectangle

int i;


+ 1
- 1
examples/demo/opengl/fbm.c View File

@@ -106,7 +106,7 @@ float noise3(float vec[3])
{
int bx0, bx1, by0, by1, bz0, bz1, b00, b10, b01, b11;
float rx0, rx1, ry0, ry1, rz0, rz1, *q, sy, sz, a, b, c, d, t, u, v;
register int i, j;
int i, j;

if (start) {
start = 0;


+ 1
- 1
examples/desktop/desktop.cpp View File

@@ -53,7 +53,7 @@ void poly()
int head = 0;
int tail = -maxcurves + 2;
TQPointArray *a = new TQPointArray[ maxcurves ];
register TQPointArray *p;
TQPointArray *p;
TQRect r = d->rect(); // desktop rectangle

int i;


+ 24
- 24
src/3rdparty/libpng/pnggccrd.c View File

@@ -694,16 +694,16 @@ png_combine_row(png_structp png_ptr, png_bytep row, int mask)
else /* mmx _not supported - Use modified C routine */
#endif /* PNG_ASSEMBLER_CODE_SUPPORTED */
{
register png_uint_32 i;
png_uint_32 i;
png_uint_32 initial_val = png_pass_start[png_ptr->pass];
/* png.c: png_pass_start[] = {0, 4, 0, 2, 0, 1, 0}; */
register int stride = png_pass_inc[png_ptr->pass];
int stride = png_pass_inc[png_ptr->pass];
/* png.c: png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1}; */
register int rep_bytes = png_pass_width[png_ptr->pass];
int rep_bytes = png_pass_width[png_ptr->pass];
/* png.c: png_pass_width[] = {8, 4, 4, 2, 2, 1, 1}; */
png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
int diff = (int) (png_ptr->width & 7); /* amount lost */
register png_uint_32 final_val = len; /* GRR bugfix */
png_uint_32 final_val = len; /* GRR bugfix */

srcptr = png_ptr->row_buf + 1 + initial_val;
dstptr = row + initial_val;
@@ -848,16 +848,16 @@ png_combine_row(png_structp png_ptr, png_bytep row, int mask)
else /* mmx _not supported - Use modified C routine */
#endif /* PNG_ASSEMBLER_CODE_SUPPORTED */
{
register png_uint_32 i;
png_uint_32 i;
png_uint_32 initial_val = BPP2 * png_pass_start[png_ptr->pass];
/* png.c: png_pass_start[] = {0, 4, 0, 2, 0, 1, 0}; */
register int stride = BPP2 * png_pass_inc[png_ptr->pass];
int stride = BPP2 * png_pass_inc[png_ptr->pass];
/* png.c: png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1}; */
register int rep_bytes = BPP2 * png_pass_width[png_ptr->pass];
int rep_bytes = BPP2 * png_pass_width[png_ptr->pass];
/* png.c: png_pass_width[] = {8, 4, 4, 2, 2, 1, 1}; */
png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
int diff = (int) (png_ptr->width & 7); /* amount lost */
register png_uint_32 final_val = BPP2 * len; /* GRR bugfix */
png_uint_32 final_val = BPP2 * len; /* GRR bugfix */

srcptr = png_ptr->row_buf + 1 + initial_val;
dstptr = row + initial_val;
@@ -1016,16 +1016,16 @@ png_combine_row(png_structp png_ptr, png_bytep row, int mask)
else /* mmx _not supported - Use modified C routine */
#endif /* PNG_ASSEMBLER_CODE_SUPPORTED */
{
register png_uint_32 i;
png_uint_32 i;
png_uint_32 initial_val = BPP3 * png_pass_start[png_ptr->pass];
/* png.c: png_pass_start[] = {0, 4, 0, 2, 0, 1, 0}; */
register int stride = BPP3 * png_pass_inc[png_ptr->pass];
int stride = BPP3 * png_pass_inc[png_ptr->pass];
/* png.c: png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1}; */
register int rep_bytes = BPP3 * png_pass_width[png_ptr->pass];
int rep_bytes = BPP3 * png_pass_width[png_ptr->pass];
/* png.c: png_pass_width[] = {8, 4, 4, 2, 2, 1, 1}; */
png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
int diff = (int) (png_ptr->width & 7); /* amount lost */
register png_uint_32 final_val = BPP3 * len; /* GRR bugfix */
png_uint_32 final_val = BPP3 * len; /* GRR bugfix */

srcptr = png_ptr->row_buf + 1 + initial_val;
dstptr = row + initial_val;
@@ -1191,16 +1191,16 @@ png_combine_row(png_structp png_ptr, png_bytep row, int mask)
else /* mmx _not supported - Use modified C routine */
#endif /* PNG_ASSEMBLER_CODE_SUPPORTED */
{
register png_uint_32 i;
png_uint_32 i;
png_uint_32 initial_val = BPP4 * png_pass_start[png_ptr->pass];
/* png.c: png_pass_start[] = {0, 4, 0, 2, 0, 1, 0}; */
register int stride = BPP4 * png_pass_inc[png_ptr->pass];
int stride = BPP4 * png_pass_inc[png_ptr->pass];
/* png.c: png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1}; */
register int rep_bytes = BPP4 * png_pass_width[png_ptr->pass];
int rep_bytes = BPP4 * png_pass_width[png_ptr->pass];
/* png.c: png_pass_width[] = {8, 4, 4, 2, 2, 1, 1}; */
png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
int diff = (int) (png_ptr->width & 7); /* amount lost */
register png_uint_32 final_val = BPP4 * len; /* GRR bugfix */
png_uint_32 final_val = BPP4 * len; /* GRR bugfix */

srcptr = png_ptr->row_buf + 1 + initial_val;
dstptr = row + initial_val;
@@ -1383,16 +1383,16 @@ png_combine_row(png_structp png_ptr, png_bytep row, int mask)
else /* mmx _not supported - Use modified C routine */
#endif /* PNG_ASSEMBLER_CODE_SUPPORTED */
{
register png_uint_32 i;
png_uint_32 i;
png_uint_32 initial_val = BPP6 * png_pass_start[png_ptr->pass];
/* png.c: png_pass_start[] = {0, 4, 0, 2, 0, 1, 0}; */
register int stride = BPP6 * png_pass_inc[png_ptr->pass];
int stride = BPP6 * png_pass_inc[png_ptr->pass];
/* png.c: png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1}; */
register int rep_bytes = BPP6 * png_pass_width[png_ptr->pass];
int rep_bytes = BPP6 * png_pass_width[png_ptr->pass];
/* png.c: png_pass_width[] = {8, 4, 4, 2, 2, 1, 1}; */
png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
int diff = (int) (png_ptr->width & 7); /* amount lost */
register png_uint_32 final_val = BPP6 * len; /* GRR bugfix */
png_uint_32 final_val = BPP6 * len; /* GRR bugfix */

srcptr = png_ptr->row_buf + 1 + initial_val;
dstptr = row + initial_val;
@@ -1424,16 +1424,16 @@ png_combine_row(png_structp png_ptr, png_bytep row, int mask)
{
png_bytep srcptr;
png_bytep dstptr;
register png_uint_32 i;
png_uint_32 i;
png_uint_32 initial_val = BPP8 * png_pass_start[png_ptr->pass];
/* png.c: png_pass_start[] = {0, 4, 0, 2, 0, 1, 0}; */
register int stride = BPP8 * png_pass_inc[png_ptr->pass];
int stride = BPP8 * png_pass_inc[png_ptr->pass];
/* png.c: png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1}; */
register int rep_bytes = BPP8 * png_pass_width[png_ptr->pass];
int rep_bytes = BPP8 * png_pass_width[png_ptr->pass];
/* png.c: png_pass_width[] = {8, 4, 4, 2, 2, 1, 1}; */
png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
int diff = (int) (png_ptr->width & 7); /* amount lost */
register png_uint_32 final_val = BPP8 * len; /* GRR bugfix */
png_uint_32 final_val = BPP8 * len; /* GRR bugfix */

srcptr = png_ptr->row_buf + 1 + initial_val;
dstptr = row + initial_val;


+ 12
- 12
src/3rdparty/libpng/pngvcrd.c View File

@@ -375,10 +375,10 @@ end8:
}
else /* mmx not supported - use modified C routine */
{
register unsigned int incr1, initial_val, final_val;
unsigned int incr1, initial_val, final_val;
png_size_t pixel_bytes;
png_uint_32 i;
register int disp = png_pass_inc[png_ptr->pass];
int disp = png_pass_inc[png_ptr->pass];
int offset_table[7] = {0, 4, 0, 2, 0, 1, 0};

pixel_bytes = (png_ptr->row_info.pixel_depth >> 3);
@@ -487,10 +487,10 @@ end16:
}
else /* mmx not supported - use modified C routine */
{
register unsigned int incr1, initial_val, final_val;
unsigned int incr1, initial_val, final_val;
png_size_t pixel_bytes;
png_uint_32 i;
register int disp = png_pass_inc[png_ptr->pass];
int disp = png_pass_inc[png_ptr->pass];
int offset_table[7] = {0, 4, 0, 2, 0, 1, 0};

pixel_bytes = (png_ptr->row_info.pixel_depth >> 3);
@@ -618,10 +618,10 @@ end24:
}
else /* mmx not supported - use modified C routine */
{
register unsigned int incr1, initial_val, final_val;
unsigned int incr1, initial_val, final_val;
png_size_t pixel_bytes;
png_uint_32 i;
register int disp = png_pass_inc[png_ptr->pass];
int disp = png_pass_inc[png_ptr->pass];
int offset_table[7] = {0, 4, 0, 2, 0, 1, 0};

pixel_bytes = (png_ptr->row_info.pixel_depth >> 3);
@@ -758,10 +758,10 @@ end32:
}
else /* mmx _not supported - Use modified C routine */
{
register unsigned int incr1, initial_val, final_val;
unsigned int incr1, initial_val, final_val;
png_size_t pixel_bytes;
png_uint_32 i;
register int disp = png_pass_inc[png_ptr->pass];
int disp = png_pass_inc[png_ptr->pass];
int offset_table[7] = {0, 4, 0, 2, 0, 1, 0};

pixel_bytes = (png_ptr->row_info.pixel_depth >> 3);
@@ -916,10 +916,10 @@ end48:
}
else /* mmx _not supported - Use modified C routine */
{
register unsigned int incr1, initial_val, final_val;
unsigned int incr1, initial_val, final_val;
png_size_t pixel_bytes;
png_uint_32 i;
register int disp = png_pass_inc[png_ptr->pass];
int disp = png_pass_inc[png_ptr->pass];
int offset_table[7] = {0, 4, 0, 2, 0, 1, 0};

pixel_bytes = (png_ptr->row_info.pixel_depth >> 3);
@@ -947,8 +947,8 @@ end48:
png_size_t pixel_bytes;
int offset_table[7] = {0, 4, 0, 2, 0, 1, 0};
unsigned int i;
register int disp = png_pass_inc[png_ptr->pass]; // get the offset
register unsigned int incr1, initial_val, final_val;
int disp = png_pass_inc[png_ptr->pass]; // get the offset
unsigned int incr1, initial_val, final_val;

pixel_bytes = (png_ptr->row_info.pixel_depth >> 3);
sptr = png_ptr->row_buf + 1 + offset_table[png_ptr->pass]*


+ 4
- 4
src/3rdparty/sqlite/printf.c View File

@@ -360,8 +360,8 @@ static int vxprintf(
}
bufpt = &buf[etBUFSIZE-1];
{
register char *cset; /* Use registers for speed */
register int base;
char *cset; /* Use registers for speed */
int base;
cset = infop->charset;
base = infop->base;
do{ /* Convert to ascii */
@@ -602,7 +602,7 @@ static int vxprintf(
** the output.
*/
if( !flag_leftjustify ){
register int nspace;
int nspace;
nspace = width-length;
if( nspace>0 ){
count += nspace;
@@ -618,7 +618,7 @@ static int vxprintf(
count += length;
}
if( flag_leftjustify ){
register int nspace;
int nspace;
nspace = width-length;
if( nspace>0 ){
count += nspace;


+ 4
- 4
src/3rdparty/sqlite/util.c View File

@@ -500,14 +500,14 @@ int sqliteHashNoCase(const char *z, int n){
** there is no consistency, we will define our own.
*/
int sqliteStrICmp(const char *zLeft, const char *zRight){
register unsigned char *a, *b;
unsigned char *a, *b;
a = (unsigned char *)zLeft;
b = (unsigned char *)zRight;
while( *a!=0 && UpperToLower[*a]==UpperToLower[*b]){ a++; b++; }
return *a - *b;
}
int sqliteStrNICmp(const char *zLeft, const char *zRight, int N){
register unsigned char *a, *b;
unsigned char *a, *b;
a = (unsigned char *)zLeft;
b = (unsigned char *)zRight;
while( N-- > 0 && *a!=0 && UpperToLower[*a]==UpperToLower[*b]){ a++; b++; }
@@ -941,7 +941,7 @@ static int sqlite_utf8_to_int(const unsigned char *z){
*/
int
sqliteGlobCompare(const unsigned char *zPattern, const unsigned char *zString){
register int c;
int c;
int invert;
int seen;
int c2;
@@ -1030,7 +1030,7 @@ sqliteGlobCompare(const unsigned char *zPattern, const unsigned char *zString){
*/
int
sqliteLikeCompare(const unsigned char *zPattern, const unsigned char *zString){
register int c;
int c;
int c2;

while( (c = UpperToLower[*zPattern])!=0 ){


+ 4
- 4
src/3rdparty/zlib/crc32.c View File

@@ -260,8 +260,8 @@ local unsigned long crc32_little(crc, buf, len)
const unsigned char FAR *buf;
unsigned len;
{
register u4 c;
register const u4 FAR *buf4;
u4 c;
const u4 FAR *buf4;

c = (u4)crc;
c = ~c;
@@ -300,8 +300,8 @@ local unsigned long crc32_big(crc, buf, len)
const unsigned char FAR *buf;
unsigned len;
{
register u4 c;
register const u4 FAR *buf4;
u4 c;
const u4 FAR *buf4;

c = REV((u4)crc);
c = ~c;


+ 15
- 15
src/3rdparty/zlib/deflate.c View File

@@ -862,9 +862,9 @@ local uInt longest_match(s, cur_match)
IPos cur_match; /* current match */
{
unsigned chain_length = s->max_chain_length;/* max hash chain length */
register Bytef *scan = s->window + s->strstart; /* current string */
register Bytef *match; /* matched string */
register int len; /* length of current match */
Bytef *scan = s->window + s->strstart; /* current string */
Bytef *match; /* matched string */
int len; /* length of current match */
int best_len = s->prev_length; /* best match length so far */
int nice_match = s->nice_match; /* stop if match long enough */
IPos limit = s->strstart > (IPos)MAX_DIST(s) ?
@@ -879,13 +879,13 @@ local uInt longest_match(s, cur_match)
/* Compare two bytes at a time. Note: this is not always beneficial.
* Try with and without -DUNALIGNED_OK to check.
*/
register Bytef *strend = s->window + s->strstart + MAX_MATCH - 1;
register ush scan_start = *(ushf*)scan;
register ush scan_end = *(ushf*)(scan+best_len-1);
Bytef *strend = s->window + s->strstart + MAX_MATCH - 1;
ush scan_start = *(ushf*)scan;
ush scan_end = *(ushf*)(scan+best_len-1);
#else
register Bytef *strend = s->window + s->strstart + MAX_MATCH;
register Byte scan_end1 = scan[best_len-1];
register Byte scan_end = scan[best_len];
Bytef *strend = s->window + s->strstart + MAX_MATCH;
Byte scan_end1 = scan[best_len-1];
Byte scan_end = scan[best_len];
#endif

/* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
@@ -1004,10 +1004,10 @@ local uInt longest_match_fast(s, cur_match)
deflate_state *s;
IPos cur_match; /* current match */
{
register Bytef *scan = s->window + s->strstart; /* current string */
register Bytef *match; /* matched string */
register int len; /* length of current match */
register Bytef *strend = s->window + s->strstart + MAX_MATCH;
Bytef *scan = s->window + s->strstart; /* current string */
Bytef *match; /* matched string */
int len; /* length of current match */
Bytef *strend = s->window + s->strstart + MAX_MATCH;

/* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
* It is easy to get rid of this optimization if necessary.
@@ -1094,8 +1094,8 @@ local void check_match(s, start, match, length)
local void fill_window(s)
deflate_state *s;
{
register unsigned n, m;
register Posf *p;
unsigned n, m;
Posf *p;
unsigned more; /* Amount of free space at the end of the window. */
uInt wsize = s->w_size;



+ 1
- 1
src/3rdparty/zlib/trees.c View File

@@ -1143,7 +1143,7 @@ local unsigned bi_reverse(code, len)
unsigned code; /* the value to invert */
int len; /* its bit length */
{
register unsigned res = 0;
unsigned res = 0;
do {
res |= code & 1;
code >>= 1, res <<= 1;


+ 2
- 2
src/kernel/qaccel.cpp View File

@@ -549,7 +549,7 @@ TQAccelPrivate::~TQAccelPrivate()

static TQAccelItem *find_id( TQAccelList &list, int id )
{
register TQAccelItem *item = list.first();
TQAccelItem *item = list.first();
while ( item && item->id != id )
item = list.next();
return item;
@@ -557,7 +557,7 @@ static TQAccelItem *find_id( TQAccelList &list, int id )

static TQAccelItem *find_key( TQAccelList &list, const TQKeySequence &key )
{
register TQAccelItem *item = list.first();
TQAccelItem *item = list.first();
while ( item && !( item->key == key ) )
item = list.next();
return item;


+ 6
- 6
src/kernel/qapplication.cpp View File

@@ -1421,7 +1421,7 @@ TQStyle& TQApplication::style()
if ( is_app_running && !is_app_closing && (*app_pal != app_pal_copy) ) {
TQEvent e( TQEvent::ApplicationPaletteChange );
TQWidgetIntDictIt it( *((TQWidgetIntDict*)TQWidget::mapper) );
register TQWidget *w;
TQWidget *w;
while ( (w=it.current()) ) { // for all widgets...
++it;
sendEvent( w, &e );
@@ -1467,7 +1467,7 @@ void TQApplication::setStyle( TQStyle *style )
if (old) {
if ( is_app_running && !is_app_closing ) {
TQWidgetIntDictIt it( *((TQWidgetIntDict*)TQWidget::mapper) );
register TQWidget *w;
TQWidget *w;
while ( (w=it.current()) ) { // for all widgets...
++it;
if ( !w->testWFlags(WType_Desktop) && // except desktop
@@ -1494,7 +1494,7 @@ void TQApplication::setStyle( TQStyle *style )
if (old) {
if ( is_app_running && !is_app_closing ) {
TQWidgetIntDictIt it( *((TQWidgetIntDict*)TQWidget::mapper) );
register TQWidget *w;
TQWidget *w;
while ( (w=it.current()) ) { // for all widgets...
++it;
if ( !w->testWFlags(WType_Desktop) ) { // except desktop
@@ -2080,7 +2080,7 @@ void TQApplication::setPalette( const TQPalette &palette, bool informWidgets,
if ( !oldpal || ( *oldpal != pal ) ) {
TQEvent e( TQEvent::ApplicationPaletteChange );
TQWidgetIntDictIt it( *((TQWidgetIntDict*)TQWidget::mapper) );
register TQWidget *w;
TQWidget *w;
while ( (w=it.current()) ) { // for all widgets...
++it;
if ( all || (!className && w->isTopLevel() ) || w->inherits(className) ) // matching class
@@ -2170,7 +2170,7 @@ void TQApplication::setFont( const TQFont &font, bool informWidgets,
if ( informWidgets && is_app_running && !is_app_closing ) {
TQEvent e( TQEvent::ApplicationFontChange );
TQWidgetIntDictIt it( *((TQWidgetIntDict*)TQWidget::mapper) );
register TQWidget *w;
TQWidget *w;
while ( (w=it.current()) ) { // for all widgets...
++it;
if ( all || (!className && w->isTopLevel() ) || w->inherits(className) ) // matching class
@@ -2780,7 +2780,7 @@ bool TQApplication::internalNotify( TQObject *receiver, TQEvent * e)
{
if ( eventFilters ) {
TQObjectListIt it( *eventFilters );
register TQObject *obj;
TQObject *obj;
while ( (obj=it.current()) != 0 ) { // send to all filters
++it; // until one returns TRUE
if ( obj->eventFilter(receiver,e) )


+ 3
- 3
src/kernel/qapplication_x11.cpp View File

@@ -2894,7 +2894,7 @@ void TQApplication::setOverrideCursor( const TQCursor &cursor, bool replace )
cursorStack->append( app_cursor );

TQWidgetIntDictIt it( *((TQWidgetIntDict*)TQWidget::mapper) );
register TQWidget *w;
TQWidget *w;
while ( (w=it.current()) ) { // for all widgets that have
if ( w->testWState( WState_OwnCursor ) )
tqt_x11_enforce_cursor( w );
@@ -2922,7 +2922,7 @@ void TQApplication::restoreOverrideCursor()
app_cursor = cursorStack->last();
if ( TQWidget::mapper != 0 && !closingDown() ) {
TQWidgetIntDictIt it( *((TQWidgetIntDict*)TQWidget::mapper) );
register TQWidget *w;
TQWidget *w;
while ( (w=it.current()) ) { // set back to original cursors
if ( w->testWState( WState_OwnCursor ) )
tqt_x11_enforce_cursor( w );
@@ -2986,7 +2986,7 @@ void TQApplication::setGlobalMouseTracking( bool enable )
}
if ( tellAllWidgets ) {
TQWidgetIntDictIt it( *((TQWidgetIntDict*)TQWidget::mapper) );
register TQWidget *w;
TQWidget *w;
while ( (w=it.current()) ) {
if ( app_tracking > 0 ) { // switch on
if ( !w->testWState(WState_MouseTracking) ) {


+ 1
- 1
src/kernel/qcursor_x11.cpp View File

@@ -502,7 +502,7 @@ void TQCursor::update() const
{
if ( !initialized )
initialize();
register TQCursorData *d = data; // cheat const!
TQCursorData *d = data; // cheat const!
if ( d->hcurs ) // already loaded
return;



+ 4
- 4
src/kernel/qeventloop_unix.cpp View File

@@ -211,7 +211,7 @@ static inline void getTime( timeval &t ) // get time of day
static void repairTimer( const timeval &time ) // repair broken timer
{
timeval diff = watchtime - time;
register TimerInfo *t = timerList->first();
TimerInfo *t = timerList->first();
while ( t ) { // repair all timers
t->timeout = t->timeout - diff;
t = timerList->next();
@@ -308,7 +308,7 @@ int qStartTimer( int interval, TQObject *obj )

bool qKillTimer( int id )
{
register TimerInfo *t;
TimerInfo *t;
if ( !timerList || id <= 0 ||
id > (int)timerBitVec->size() || !timerBitVec->testBit( id-1 ) )
return FALSE; // not init'd or invalid timer
@@ -325,7 +325,7 @@ bool qKillTimer( int id )

bool qKillTimer( TQObject *obj )
{
register TimerInfo *t;
TimerInfo *t;
if ( !timerList ) // not initialized
return FALSE;
t = timerList->first();
@@ -530,7 +530,7 @@ int TQEventLoop::activateTimers()
timeval currentTime;
int n_act = 0, maxCount = timerList->count();
TimerInfo *begin = 0;
register TimerInfo *t;
TimerInfo *t;

for ( ;; ) {
if ( ! maxCount-- )


+ 4
- 4
src/kernel/qeventloop_unix_glib.cpp View File

@@ -239,7 +239,7 @@ static void repairTimer( const timeval &time ) // repair broken timer
tqt_timerListMutex->lock();
#endif
timeval diff = watchtime - time;
register TimerInfo *t = timerList->first();
TimerInfo *t = timerList->first();
while ( t ) { // repair all timers
t->timeout = t->timeout - diff;
t = timerList->next();
@@ -374,7 +374,7 @@ bool qKillTimer( int id )
#if defined(TQT_THREAD_SUPPORT)
if (tqt_timerListMutex) tqt_timerListMutex->lock();
#endif
register TimerInfo *t;
TimerInfo *t;
if ( (!timerList) || (id <= 0) || (id > (int)timerBitVec->size()) || (!timerBitVec->testBit( id-1 )) ) {
#if defined(TQT_THREAD_SUPPORT)
if (tqt_timerListMutex) tqt_timerListMutex->unlock();
@@ -407,7 +407,7 @@ bool qKillTimer( TQObject *obj )
#if defined(TQT_THREAD_SUPPORT)
if (tqt_timerListMutex) tqt_timerListMutex->lock();
#endif
register TimerInfo *t;
TimerInfo *t;
if ( !timerList ) { // not initialized
#if defined(TQT_THREAD_SUPPORT)
if (tqt_timerListMutex) tqt_timerListMutex->unlock();
@@ -645,7 +645,7 @@ int TQEventLoop::activateTimers()
timeval currentTime;
int n_act = 0, maxCount = timerList->count();
TimerInfo *begin = 0;
register TimerInfo *t;
TimerInfo *t;
for ( ;; ) {
if ( ! maxCount-- ) {


+ 27
- 27
src/kernel/qimage.cpp View File

@@ -1392,7 +1392,7 @@ struct TQRgbMap {

static bool convert_32_to_8( const TQImage *src, TQImage *dst, int conversion_flags, TQRgb* palette=0, int palette_count=0 )
{
register TQRgb *p;
TQRgb *p;
uchar *b;
bool do_quant = FALSE;
int y, x;
@@ -1702,7 +1702,7 @@ static bool convert_8_to_32( const TQImage *src, TQImage *dst )
return FALSE; // create failed
dst->setAlphaBuffer( src->hasAlphaBuffer() );
for ( int y=0; y<dst->height(); y++ ) { // for each scan line...
register uint *p = (uint *)dst->scanLine(y);
uint *p = (uint *)dst->scanLine(y);
uchar *b = src->scanLine(y);
uint *end = p + dst->width();
while ( p < end )
@@ -1718,7 +1718,7 @@ static bool convert_1_to_32( const TQImage *src, TQImage *dst )
return FALSE; // could not create
dst->setAlphaBuffer( src->hasAlphaBuffer() );
for ( int y=0; y<dst->height(); y++ ) { // for each scan line...
register uint *p = (uint *)dst->scanLine(y);
uint *p = (uint *)dst->scanLine(y);
uchar *b = src->scanLine(y);
int x;
if ( src->bitOrder() == TQImage::BigEndian ) {
@@ -1756,7 +1756,7 @@ static bool convert_1_to_8( const TQImage *src, TQImage *dst )
dst->setColor( 1, 0xff000000 );
}
for ( int y=0; y<dst->height(); y++ ) { // for each scan line...
register uchar *p = dst->scanLine(y);
uchar *p = dst->scanLine(y);
uchar *b = src->scanLine(y);
int x;
if ( src->bitOrder() == TQImage::BigEndian ) {
@@ -1833,7 +1833,7 @@ static bool dither_to_1( const TQImage *src, TQImage *dst,
int bmwidth = (w+7)/8;
if ( !(line1 && line2) )
return FALSE;
register uchar *p;
uchar *p;
uchar *end;
int *b1, *b2;
int wbytes = w * (d/8);
@@ -2083,7 +2083,7 @@ static bool convert_16_to_32( const TQImage *src, TQImage *dst )
return FALSE; // create failed
dst->setAlphaBuffer( src->hasAlphaBuffer() );
for ( int y=0; y<dst->height(); y++ ) { // for each scan line...
register uint *p = (uint *)dst->scanLine(y);
uint *p = (uint *)dst->scanLine(y);
ushort *s = (ushort*)src->scanLine(y);
uint *end = p + dst->width();
while ( p < end )
@@ -2099,7 +2099,7 @@ static bool convert_32_to_16( const TQImage *src, TQImage *dst )
return FALSE; // create failed
dst->setAlphaBuffer( src->hasAlphaBuffer() );
for ( int y=0; y<dst->height(); y++ ) { // for each scan line...
register ushort *p = (ushort *)dst->scanLine(y);
ushort *p = (ushort *)dst->scanLine(y);
uint *s = (uint*)src->scanLine(y);
ushort *end = p + dst->width();
while ( p < end )
@@ -2363,7 +2363,7 @@ TQImage TQImage::convertBitOrder( Endian bitOrder ) const

int bpl = (width() + 7) / 8;
for ( int y = 0; y < data->h; y++ ) {
register uchar *p = jumpTable()[y];
uchar *p = jumpTable()[y];
uchar *end = p + bpl;
uchar *b = image.jumpTable()[y];
while ( p < end )
@@ -2454,14 +2454,14 @@ void pnmscale(const TQImage& src, TQImage& dst)
{
TQRgb* xelrow = 0;
TQRgb* tempxelrow = 0;
register TQRgb* xP;
register TQRgb* nxP;
TQRgb* xP;
TQRgb* nxP;
int rows, cols, rowsread, newrows, newcols;
register int row, col, needtoreadrow;
int row, col, needtoreadrow;
const uchar maxval = 255;
double xscale, yscale;
long sxscale, syscale;
register long fracrowtofill, fracrowleft;
long fracrowtofill, fracrowleft;
long* as;
long* rs;
long* gs;
@@ -2551,11 +2551,11 @@ void pnmscale(const TQImage& src, TQImage& dst)
xelrow = (TQRgb*)src.scanLine(rowsread++);
needtoreadrow = 0;
}
register long a=0;
long a=0;
for ( col = 0, xP = xelrow, nxP = tempxelrow;
col < cols; ++col, ++xP, ++nxP )
{
register long r, g, b;
long r, g, b;

if ( as ) {
r = rs[col] + fracrowtofill * tqRed( *xP ) * tqAlpha( *xP ) / 255;
@@ -2601,9 +2601,9 @@ void pnmscale(const TQImage& src, TQImage& dst)
/* shortcut X scaling if possible */
memcpy(dst.scanLine(rowswritten++), tempxelrow, newcols*4);
} else {
register long a, r, g, b;
register long fraccoltofill, fraccolleft = 0;
register int needcol;
long a, r, g, b;
long fraccoltofill, fraccolleft = 0;
int needcol;

nxP = (TQRgb*)dst.scanLine(rowswritten++);
fraccoltofill = SCALE;
@@ -3692,7 +3692,7 @@ static void swapPixel01( TQImage *image ) // 1-bpp: swap 0 and 1 pixels
{
int i;
if ( image->depth() == 1 && image->numColors() == 2 ) {
register uint *p = (uint *)image->bits();
uint *p = (uint *)image->bits();
int nbytes = image->numBytes();
for ( i=0; i<nbytes/4; i++ ) {
*p = ~*p;
@@ -3942,7 +3942,7 @@ static TQImageHandler *get_image_handler( const char *format )
{ // get pointer to handler
tqt_init_image_handlers();
tqt_init_image_plugins();
register TQImageHandler *p = imageHandlers->first();
TQImageHandler *p = imageHandlers->first();
while ( p ) { // traverse list
if ( p->format == format )
return p;
@@ -4776,7 +4776,7 @@ bool read_dib( TQDataStream& s, int offset, int startpos, TQImage& image )
TQ_CHECK_PTR( buf );
if ( comp == BMP_RLE4 ) { // run length compression
int x=0, y=0, b, c, i;
register uchar *p = line[h-1];
uchar *p = line[h-1];
uchar *endp = line[h-1]+w;
while ( y < h ) {
if ( (b=d->getch()) == EOF )
@@ -4841,7 +4841,7 @@ bool read_dib( TQDataStream& s, int offset, int startpos, TQImage& image )
while ( --h >= 0 ) {
if ( d->readBlock((char*)buf,buflen) != buflen )
break;
register uchar *p = line[h];
uchar *p = line[h];
uchar *b = buf;
for ( int i=0; i<w/2; i++ ) { // convert nibbles to bytes
*p++ = *b >> 4;
@@ -4857,7 +4857,7 @@ bool read_dib( TQDataStream& s, int offset, int startpos, TQImage& image )
else if ( nbits == 8 ) { // 8 bit BMP image
if ( comp == BMP_RLE8 ) { // run length compression
int x=0, y=0, b;
register uchar *p = line[h-1];
uchar *p = line[h-1];
const uchar *endp = line[h-1]+w;
while ( y < h ) {
if ( (b=d->getch()) == EOF )
@@ -4920,7 +4920,7 @@ bool read_dib( TQDataStream& s, int offset, int startpos, TQImage& image )
}

else if ( nbits == 16 || nbits == 24 || nbits == 32 ) { // 16,24,32 bit BMP image
register TQRgb *p;
TQRgb *p;
TQRgb *end;
uchar *buf24 = new uchar[bpl];
int bpl24 = ((w*nbits+31)/32)*4;
@@ -5051,7 +5051,7 @@ bool qt_write_dib( TQDataStream& s, TQImage image )

uchar *buf = new uchar[bpl_bmp];
uchar *b, *end;
register uchar *p;
uchar *p;

memset( buf, 0, bpl_bmp );
for ( y=image.height()-1; y>=0; y-- ) { // write the image bits
@@ -5237,7 +5237,7 @@ static void read_pbm_image( TQImageIO *iio ) // read PBM image data
}
}
} else { // read ascii data
register uchar *p;
uchar *p;
int n;
for ( y=0; y<h; y++ ) {
p = image.scanLine( y );
@@ -5503,7 +5503,7 @@ static void read_async_image( TQImageIO *iio )
X bitmap image read/write functions
*****************************************************************************/

static inline int hex2byte( register char *p )
static inline int hex2byte( char *p )
{
return ( (isdigit((uchar) *p) ? *p - '0' : toupper((uchar) *p) - 'A' + 10) << 4 ) |
( isdigit((uchar) *(p+1)) ? *(p+1) - '0' : toupper((uchar) *(p+1)) - 'A' + 10 );
@@ -5621,7 +5621,7 @@ static void write_xbm_image( TQImageIO *iio )
}
}
int bcnt = 0;
register char *p = buf;
char *p = buf;
int bpl = (w+7)/8;
for (int y = 0; y < h; ++y) {
uchar *b = image.scanLine(y);


+ 6
- 6
src/kernel/qobject.cpp View File

@@ -736,7 +736,7 @@ TQObject::~TQObject()
}
if ( parentObj ) // remove it from parent object
parentObj->removeChild( this );
register TQObject *obj;
TQObject *obj;
if ( senderObjects ) { // disconnect from senders
TQSenderObjectList *tmp = senderObjects;
senderObjects = 0;
@@ -753,7 +753,7 @@ TQObject::~TQObject()
TQConnectionList* clist = (*connections)[i]; // for each signal...
if ( !clist )
continue;
register TQConnection *c;
TQConnection *c;
TQConnectionListIt cit(*clist);
while( (c=cit.current()) ) { // for each connected slot...
++cit;
@@ -879,7 +879,7 @@ void *tqt_inheritedBy( TQMetaObject *superClass, const TQObject *object )
{
if (!object)
return 0;
register TQMetaObject *mo = object->metaObject();
TQMetaObject *mo = object->metaObject();
while (mo) {
if (mo == superClass)
return (void*)object;
@@ -1266,7 +1266,7 @@ bool TQObject::activate_filters( TQEvent *e )
if ( !eventFilters ) // no event filter
return FALSE;
TQObjectListIt it( *eventFilters );
register TQObject *obj = it.current();
TQObject *obj = it.current();
while ( obj ) { // send to all filters
++it; // until one returns TRUE
if ( obj->eventFilter(this,e) ) {
@@ -2466,7 +2466,7 @@ bool TQObject::disconnectInternal( const TQObject *sender, int signal_index,

bool success = FALSE;
TQConnectionList *clist;
register TQConnection *c;
TQConnection *c;
if ( signal_index == -1 ) {
for ( int i = 0; i < (int) s->connections->size(); i++ ) {
clist = (*s->connections)[i]; // for all signals...
@@ -3060,7 +3060,7 @@ void TQObject::dumpObjectInfo()
if ( ( clist = connections->at( i ) ) ) {
tqDebug( "\t%s", metaObject()->signal( i, TRUE )->name );
n++;
register TQConnection *c;
TQConnection *c;
TQConnectionListIt cit(*clist);
while ( (c=cit.current()) ) {
++cit;


+ 3
- 3
src/kernel/qpainter_x11.cpp View File

@@ -303,7 +303,7 @@ static void init_gc_array()

static void cleanup_gc_array( Display *dpy )
{
register TQGC *p = gc_array;
TQGC *p = gc_array;
int i = gc_array_size;
if ( gc_array_init ) {
while ( i-- ) {
@@ -328,7 +328,7 @@ static GC alloc_gc( Display *dpy, int scrn, Drawable hd, bool monochrome=FALSE,
XSetGraphicsExposures( dpy, gc, False );
return gc;
}
register TQGC *p = gc_array;
TQGC *p = gc_array;
int i = gc_array_size;
if ( !gc_array_init ) // not initialized
init_gc_array();
@@ -364,7 +364,7 @@ static void free_gc( Display *dpy, GC gc, bool privateGC = FALSE )
XFreeGC( dpy, gc );
return;
}
register TQGC *p = gc_array;
TQGC *p = gc_array;
int i = gc_array_size;
if ( gc_array_init ) {
while ( i-- ) {


+ 2
- 2
src/kernel/qpixmap_x11.cpp View File

@@ -290,7 +290,7 @@ extern const uchar *qt_get_bitflip_array(); // defined in qimage.cpp

static uchar *flip_bits( const uchar *bits, int len )
{
register const uchar *p = bits;
const uchar *p = bits;
const uchar *end = p + len;
uchar *newdata = new uchar[len];
uchar *b = newdata;
@@ -958,7 +958,7 @@ TQImage TQPixmap::convertToImage() const
image.setColor( 0, tqRgb(255,255,255) );
image.setColor( 1, tqRgb(0,0,0) );
} else if ( !trucol ) { // pixmap with colormap
register uchar *p;
uchar *p;
uchar *end;
uchar use[256]; // pixel-in-use table
uchar pix[256]; // pixel translation table


+ 6
- 6
src/kernel/qpointarray.cpp View File

@@ -190,8 +190,8 @@ TQPointArray::TQPointArray( int nPoints, const TQCOORD *points )

void TQPointArray::translate( int dx, int dy )
{
register TQPoint *p = data();
register int i = size();
TQPoint *p = data();
int i = size();
TQPoint pt( dx, dy );
while ( i-- ) {
*p += pt;
@@ -440,7 +440,7 @@ TQRect TQPointArray::boundingRect() const
{
if ( isEmpty() )
return TQRect( 0, 0, 0, 0 ); // null rectangle
register TQPoint *pd = data();
TQPoint *pd = data();
int minx, maxx, miny, maxy;
minx = maxx = pd->x();
miny = maxy = pd->y();
@@ -937,7 +937,7 @@ TQPointArray TQPointArray::cubicBezier() const
if ( m < 2 ) // at least two points
m = 2;
TQPointArray p( m ); // p = Bezier point array
register TQPointData *pd = p.data();
TQPointData *pd = p.data();

float x0 = xvec[0], y0 = yvec[0];
float dt = 1.0F/m;
@@ -1018,7 +1018,7 @@ TQPointArray TQPointArray::cubicBezier() const

TQDataStream &operator<<( TQDataStream &s, const TQPointArray &a )
{
register uint i;
uint i;
uint len = a.size();
s << len; // write size of array
for ( i=0; i<len; i++ ) // write each point
@@ -1037,7 +1037,7 @@ TQDataStream &operator<<( TQDataStream &s, const TQPointArray &a )

TQDataStream &operator>>( TQDataStream &s, TQPointArray &a )
{
register uint i;
uint i;
uint len;
s >> len; // read size of array
if ( !a.resize( len ) ) // no memory


+ 20
- 20
src/kernel/qpolygonscanner.cpp View File

@@ -407,8 +407,8 @@ static bool
miInsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE,
int scanline, ScanLineListBlock **SLLBlock, int *iSLLBlock)
{
register EdgeTableEntry *start, *prev;
register ScanLineList *pSLL, *pPrevSLL;
EdgeTableEntry *start, *prev;
ScanLineList *pSLL, *pPrevSLL;
ScanLineListBlock *tmpSLLBlock;

/*
@@ -505,7 +505,7 @@ typedef struct {
static void
miFreeStorage(ScanLineListBlock *pSLLBlock)
{
register ScanLineListBlock *tmpSLLBlock;
ScanLineListBlock *tmpSLLBlock;

while (pSLLBlock)
{
@@ -519,8 +519,8 @@ static bool
miCreateETandAET(int count, DDXPointPtr pts, EdgeTable *ET,
EdgeTableEntry *AET, EdgeTableEntry *pETEs, ScanLineListBlock *pSLLBlock)
{
register DDXPointPtr top, bottom;
register DDXPointPtr PrevPt, CurrPt;
DDXPointPtr top, bottom;
DDXPointPtr PrevPt, CurrPt;
int iSLLBlock = 0;

int dy;
@@ -609,8 +609,8 @@ miCreateETandAET(int count, DDXPointPtr pts, EdgeTable *ET,
static void
miloadAET(EdgeTableEntry *AET, EdgeTableEntry *ETEs)
{
register EdgeTableEntry *pPrevAET;
register EdgeTableEntry *tmp;
EdgeTableEntry *pPrevAET;
EdgeTableEntry *tmp;

pPrevAET = AET;
AET = AET->next;
@@ -656,9 +656,9 @@ miloadAET(EdgeTableEntry *AET, EdgeTableEntry *ETEs)
static void
micomputeWAET(EdgeTableEntry *AET)
{
register EdgeTableEntry *pWETE;
register int inside = 1;
register int isInside = 0;
EdgeTableEntry *pWETE;
int inside = 1;
int isInside = 0;

AET->nextWETE = 0;
pWETE = AET;
@@ -694,10 +694,10 @@ micomputeWAET(EdgeTableEntry *AET)
static int
miInsertionSort(EdgeTableEntry *AET)
{
register EdgeTableEntry *pETEchase;
register EdgeTableEntry *pETEinsert;
register EdgeTableEntry *pETEchaseBackTMP;
register int changed = 0;
EdgeTableEntry *pETEchase;
EdgeTableEntry *pETEinsert;
EdgeTableEntry *pETEchaseBackTMP;
int changed = 0;

AET = AET->next;
while (AET)
@@ -769,12 +769,12 @@ void TQPolygonScanner::scan( const TQPointArray& pa, bool winding, int index, in

DDXPointPtr ptsIn = (DDXPointPtr)pa.data();
ptsIn += index;
register EdgeTableEntry *pAET; /* the Active Edge Table */
register int y; /* the current scanline */
register int nPts = 0; /* number of pts in buffer */
register EdgeTableEntry *pWETE; /* Winding Edge Table */
register ScanLineList *pSLL; /* Current ScanLineList */
register DDXPointPtr ptsOut; /* ptr to output buffers */
EdgeTableEntry *pAET; /* the Active Edge Table */
int y; /* the current scanline */
int nPts = 0; /* number of pts in buffer */
EdgeTableEntry *pWETE; /* Winding Edge Table */
ScanLineList *pSLL; /* Current ScanLineList */
DDXPointPtr ptsOut; /* ptr to output buffers */
int *width;
DDXPointRec FirstPoint[NUMPTSTOBUFFER]; /* the output buffers */
int FirstWidth[NUMPTSTOBUFFER];


+ 76
- 76
src/kernel/qregion_x11.cpp View File

@@ -89,8 +89,8 @@ struct TQRegionPrivate {


static void UnionRegion(TQRegionPrivate *reg1, TQRegionPrivate *reg2, TQRegionPrivate *newReg);
static void IntersectRegion(TQRegionPrivate *reg1, TQRegionPrivate *reg2, register TQRegionPrivate *newReg);
static void miRegionOp(register TQRegionPrivate *newReg, TQRegionPrivate *reg1, TQRegionPrivate *reg2,
static void IntersectRegion(TQRegionPrivate *reg1, TQRegionPrivate *reg2, TQRegionPrivate *newReg);
static void miRegionOp(TQRegionPrivate *newReg, TQRegionPrivate *reg1, TQRegionPrivate *reg2,
void (*overlapFunc)(...),
void (*nonOverlap1Func)(...),
void (*nonOverlap2Func)(...));
@@ -300,7 +300,7 @@ typedef void (*voidProcp)(...);


static
void UnionRectWithRegion(register const TQRect *rect, TQRegionPrivate *source, TQRegionPrivate *dest)
void UnionRectWithRegion(const TQRect *rect, TQRegionPrivate *source, TQRegionPrivate *dest)
{
TQRegionPrivate region;

@@ -333,7 +333,7 @@ void UnionRectWithRegion(register const TQRect *rect, TQRegionPrivate *source, T
static void
miSetExtents (TQRegionPrivate *pReg)
{
register TQRect *pBox,
TQRect *pBox,
*pBoxEnd,
*pExtents;

@@ -383,10 +383,10 @@ miSetExtents (TQRegionPrivate *pReg)

static
int
OffsetRegion(register TQRegionPrivate *pRegion, register int x, register int y)
OffsetRegion(TQRegionPrivate *pRegion, int x, int y)
{
register int nbox;
register TQRect *pbox;
int nbox;
TQRect *pbox;

pbox = pRegion->rects.data();
nbox = pRegion->numRects;
@@ -419,12 +419,12 @@ OffsetRegion(register TQRegionPrivate *pRegion, register int x, register int y)
/* static void*/
static
int
miIntersectO (register TQRegionPrivate *pReg, register TQRect *r1, TQRect *r1End,
register TQRect *r2, TQRect *r2End, int y1, int y2)
miIntersectO (TQRegionPrivate *pReg, TQRect *r1, TQRect *r1End,
TQRect *r2, TQRect *r2End, int y1, int y2)
{
register int x1;
register int x2;
register TQRect *pNextRect;
int x1;
int x2;
TQRect *pNextRect;

pNextRect = pReg->rects.data() + pReg->numRects;

@@ -474,7 +474,7 @@ miIntersectO (register TQRegionPrivate *pReg, register TQRect *r1, TQRect *r1End

static
void
IntersectRegion(TQRegionPrivate *reg1, TQRegionPrivate *reg2, register TQRegionPrivate *newReg)
IntersectRegion(TQRegionPrivate *reg1, TQRegionPrivate *reg2, TQRegionPrivate *newReg)
{
/* check for trivial reject */
if ( (!(reg1->numRects)) || (!(reg2->numRects)) ||
@@ -519,14 +519,14 @@ IntersectRegion(TQRegionPrivate *reg1, TQRegionPrivate *reg2, register TQRegionP
/* static int*/
static
int
miCoalesce (register TQRegionPrivate *pReg, int prevStart, int curStart)
miCoalesce (TQRegionPrivate *pReg, int prevStart, int curStart)
//Region pReg; /* Region to coalesce */
//prevStart; /* Index of start of previous band */
//curStart; /* Index of start of current band */
{
register TQRect *pPrevBox; /* Current box in previous band */
register TQRect *pCurBox; /* Current box in current band */
register TQRect *pRegEnd; /* End of region */
TQRect *pPrevBox; /* Current box in previous band */
TQRect *pCurBox; /* Current box in current band */
TQRect *pRegEnd; /* End of region */
int curNumRects; /* Number of rectangles in current
* band */
int prevNumRects; /* Number of rectangles in previous
@@ -670,11 +670,11 @@ miCoalesce (register TQRegionPrivate *pReg, int prevStart, int curStart)
*/
/* static void*/
static void
miRegionOp(register TQRegionPrivate *newReg, TQRegionPrivate *reg1, TQRegionPrivate *reg2,
miRegionOp(TQRegionPrivate *newReg, TQRegionPrivate *reg1, TQRegionPrivate *reg2,
void (*overlapFunc)(...),
void (*nonOverlap1Func)(...),
void (*nonOverlap2Func)(...))
//register Region newReg; /* Place to store result */
//Region newReg; /* Place to store result */
//Region reg1; /* First region in operation */
//Region reg2; /* 2d region in operation */
//void (*overlapFunc)(); /* Function to call for over-
@@ -686,18 +686,18 @@ miRegionOp(register TQRegionPrivate *newReg, TQRegionPrivate *reg1, TQRegionPriv
//* overlapping bands in region
//* 2 */
{
register TQRect *r1; /* Pointer into first region */
register TQRect *r2; /* Pointer into 2d region */
TQRect *r1; /* Pointer into first region */
TQRect *r2; /* Pointer into 2d region */
TQRect *r1End; /* End of 1st region */
TQRect *r2End; /* End of 2d region */
register int ybot; /* Bottom of intersection */
register int ytop; /* Top of intersection */
int ybot; /* Bottom of intersection */
int ytop; /* Top of intersection */
int prevBand; /* Index of start of
* previous band in newReg */
int curBand; /* Index of start of current
* band in newReg */
register TQRect *r1BandEnd; /* End of current band in r1 */
register TQRect *r2BandEnd; /* End of current band in r2 */
TQRect *r1BandEnd; /* End of current band in r1 */
TQRect *r2BandEnd; /* End of current band in r2 */
int top; /* Top of non-overlapping
* band */
int bot; /* Bottom of non-overlapping
@@ -951,10 +951,10 @@ miRegionOp(register TQRegionPrivate *newReg, TQRegionPrivate *reg1, TQRegionPriv
/* static void*/
static
int
miUnionNonO (register TQRegionPrivate *pReg, register TQRect * r,
TQRect * rEnd, register int y1, register int y2)
miUnionNonO (TQRegionPrivate *pReg, TQRect * r,
TQRect * rEnd, int y1, int y2)
{
register TQRect * pNextRect;
TQRect * pNextRect;

pNextRect = pReg->rects.data() + pReg->numRects;

@@ -993,10 +993,10 @@ miUnionNonO (register TQRegionPrivate *pReg, register TQRect * r,
/* static void*/
static
int
miUnionO (register TQRegionPrivate *pReg, register TQRect *r1, TQRect *r1End,
register TQRect *r2, TQRect *r2End, register int y1, register int y2)
miUnionO (TQRegionPrivate *pReg, TQRect *r1, TQRect *r1End,
TQRect *r2, TQRect *r2End, int y1, int y2)
{
register TQRect *pNextRect;
TQRect *pNextRect;

pNextRect = pReg->rects.data() + pReg->numRects;

@@ -1121,10 +1121,10 @@ static void UnionRegion(TQRegionPrivate *reg1, TQRegionPrivate *reg2, TQRegionPr
/* static void*/
static
int
miSubtractNonO1 (register TQRegionPrivate *pReg, register TQRect *r,
TQRect *rEnd, register int y1, register int y2)
miSubtractNonO1 (TQRegionPrivate *pReg, TQRect *r,
TQRect *rEnd, int y1, int y2)
{
register TQRect *pNextRect;
TQRect *pNextRect;

pNextRect = pReg->rects.data() + pReg->numRects;

@@ -1160,11 +1160,11 @@ miSubtractNonO1 (register TQRegionPrivate *pReg, register TQRect *r,
/* static void*/
static
int
miSubtractO (register TQRegionPrivate *pReg, register TQRect *r1, TQRect *r1End,
register TQRect *r2, TQRect *r2End, register int y1, register int y2)
miSubtractO (TQRegionPrivate *pReg, TQRect *r1, TQRect *r1End,
TQRect *r2, TQRect *r2End, int y1, int y2)
{
register TQRect *pNextRect;
register int x1;
TQRect *pNextRect;
int x1;

x1 = r1->left();

@@ -1285,7 +1285,7 @@ miSubtractO (register TQRegionPrivate *pReg, register TQRect *r1, TQRect *r1End,
*-----------------------------------------------------------------------
*/

static void SubtractRegion(TQRegionPrivate *regM, TQRegionPrivate *regS, register TQRegionPrivate *regD)
static void SubtractRegion(TQRegionPrivate *regM, TQRegionPrivate *regS, TQRegionPrivate *regD)
{
/* check for trivial reject */
if ( (!(regM->numRects)) || (!(regS->numRects)) ||
@@ -1361,13 +1361,13 @@ static bool PointInRegion( TQRegionPrivate *pRegion, int x, int y )
return FALSE;
}

static bool RectInRegion(register TQRegionPrivate *region,
static bool RectInRegion(TQRegionPrivate *region,
int rx, int ry, unsigned int rwidth, unsigned int rheight)
{
register TQRect *pbox;
register TQRect *pboxEnd;
TQRect *pbox;
TQRect *pboxEnd;
TQRect rect(rx, ry, rwidth, rheight);
register TQRect *prect = &rect;
TQRect *prect = &rect;
int partIn, partOut;

/* this is (just) a useful optimization */
@@ -1800,8 +1800,8 @@ static void
InsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE, int scanline,
ScanLineListBlock **SLLBlock, int *iSLLBlock)
{
register EdgeTableEntry *start, *prev;
register ScanLineList *pSLL, *pPrevSLL;
EdgeTableEntry *start, *prev;
ScanLineList *pSLL, *pPrevSLL;
ScanLineListBlock *tmpSLLBlock;

/*
@@ -1881,12 +1881,12 @@ InsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE, int scanline,
*/

static void
CreateETandAET(register int count, register TQPoint *pts,
EdgeTable *ET, EdgeTableEntry *AET, register EdgeTableEntry *pETEs,
CreateETandAET(int count, TQPoint *pts,
EdgeTable *ET, EdgeTableEntry *AET, EdgeTableEntry *pETEs,
ScanLineListBlock *pSLLBlock)
{
register TQPoint *top, *bottom;
register TQPoint *PrevPt, *CurrPt;
TQPoint *top, *bottom;
TQPoint *PrevPt, *CurrPt;
int iSLLBlock = 0;
int dy;

@@ -1969,10 +1969,10 @@ CreateETandAET(register int count, register TQPoint *pts,
*/

static void
loadAET(register EdgeTableEntry *AET, register EdgeTableEntry *ETEs)
loadAET(EdgeTableEntry *AET, EdgeTableEntry *ETEs)
{
register EdgeTableEntry *pPrevAET;
register EdgeTableEntry *tmp;
EdgeTableEntry *pPrevAET;
EdgeTableEntry *tmp;

pPrevAET = AET;
AET = AET->next;
@@ -2016,11 +2016,11 @@ loadAET(register EdgeTableEntry *AET, register EdgeTableEntry *ETEs)
*
*/
static void
computeWAET(register EdgeTableEntry *AET)
computeWAET(EdgeTableEntry *AET)
{
register EdgeTableEntry *pWETE;
register int inside = 1;
register int isInside = 0;
EdgeTableEntry *pWETE;
int inside = 1;
int isInside = 0;

AET->nextWETE = (EdgeTableEntry *)NULL;
pWETE = AET;
@@ -2054,12 +2054,12 @@ computeWAET(register EdgeTableEntry *AET)
*/

static int
InsertionSort(register EdgeTableEntry *AET)
InsertionSort(EdgeTableEntry *AET)
{
register EdgeTableEntry *pETEchase;
register EdgeTableEntry *pETEinsert;
register EdgeTableEntry *pETEchaseBackTMP;
register int changed = 0;
EdgeTableEntry *pETEchase;
EdgeTableEntry *pETEinsert;
EdgeTableEntry *pETEchaseBackTMP;
int changed = 0;

AET = AET->next;
while (AET)
@@ -2090,9 +2090,9 @@ InsertionSort(register EdgeTableEntry *AET)
* Clean up our act.
*/
static void
FreeStorage(register ScanLineListBlock *pSLLBlock)
FreeStorage(ScanLineListBlock *pSLLBlock)
{
register ScanLineListBlock *tmpSLLBlock;
ScanLineListBlock *tmpSLLBlock;

while (pSLLBlock)
{
@@ -2110,15 +2110,15 @@ FreeStorage(register ScanLineListBlock *pSLLBlock)
* stack by the calling procedure.
*
*/
static int PtsToRegion(register int numFullPtBlocks, register int iCurPtBlock,
static int PtsToRegion(int numFullPtBlocks, int iCurPtBlock,
POINTBLOCK *FirstPtBlock, TQRegionPrivate *reg)
{
register TQRect *rects;
register TQPoint *pts;
register POINTBLOCK *CurPtBlock;
register int i;
register TQRect *extents;
register int numRects;
TQRect *rects;
TQPoint *pts;
POINTBLOCK *CurPtBlock;
int i;
TQRect *extents;
int numRects;

extents = &reg->extents;

@@ -2182,12 +2182,12 @@ static TQRegionPrivate *PolygonRegion(TQPoint *Pts, int Count, int rule)
//int rule; /* winding rule */
{
TQRegionPrivate *region;
register EdgeTableEntry *pAET; /* Active Edge Table */
register int y; /* current scanline */
register int iPts = 0; /* number of pts in buffer */
register EdgeTableEntry *pWETE; /* Winding Edge Table Entry*/
register ScanLineList *pSLL; /* current scanLineList */
register TQPoint *pts; /* output buffer */
EdgeTableEntry *pAET; /* Active Edge Table */
int y; /* current scanline */
int iPts = 0; /* number of pts in buffer */
EdgeTableEntry *pWETE; /* Winding Edge Table Entry*/
ScanLineList *pSLL; /* current scanLineList */
TQPoint *pts; /* output buffer */
EdgeTableEntry *pPrevAET; /* ptr to previous AET */
EdgeTable ET; /* header node for ET */
EdgeTableEntry AET; /* header node for AET */


+ 1
- 1
src/kernel/qrichtext.cpp View File

@@ -4093,7 +4093,7 @@ TQTextParagraph::~TQTextParagraph()
{
delete str;
if ( hasdoc ) {
register TQTextDocument *doc = document();
TQTextDocument *doc = document();
if ( this == doc->minwParag ) {
doc->minwParag = 0;
doc->minw = 0;


+ 3
- 3
src/kernel/qwidget.cpp View File

@@ -1044,7 +1044,7 @@ void TQWidget::destroyMapper()
TQWidgetIntDictIt it( *((TQWidgetIntDict*)mapper) );
TQWidgetMapper * myMapper = mapper;
mapper = 0;
register TQWidget *w;
TQWidget *w;
while ( (w=it.current()) ) { // remove parents widgets
++it;
if ( !w->parentObj ) // widget is a parent
@@ -4172,7 +4172,7 @@ void TQWidget::showChildren( bool spontaneous )
{
if ( children() ) {
TQObjectListIt it(*children());
register TQObject *object;
TQObject *object;
TQWidget *widget;
while ( it ) {
object = it.current();
@@ -4197,7 +4197,7 @@ void TQWidget::hideChildren( bool spontaneous )
{
if ( children() ) {
TQObjectListIt it(*children());
register TQObject *object;
TQObject *object;
TQWidget *widget;
while ( it ) {
object = it.current();


+ 2
- 2
src/kernel/qwidget_x11.cpp View File

@@ -794,7 +794,7 @@ void TQWidget::destroy( bool destroyWindow, bool destroySubWindows )
clearWState( WState_Created );
if ( children() ) {
TQObjectListIt it(*children());
register TQObject *obj;
TQObject *obj;
while ( (obj=it.current()) ) { // destroy all widget children
++it;
if ( obj->isWidgetType() )
@@ -2476,7 +2476,7 @@ void TQWidget::scroll( int dx, int dy, const TQRect& r )
if ( !valid_rect && children() ) { // scroll children
TQPoint pd( dx, dy );
TQObjectListIt it(*children());
register TQObject *object;
TQObject *object;
while ( it ) { // move all children
object = it.current();
if ( object->isWidgetType() ) {


+ 2
- 2
src/kernel/qwmatrix.cpp View File

@@ -724,8 +724,8 @@ TQRegion TQWMatrix::operator * (const TQRegion &r ) const
return r;
TQMemArray<TQRect> rects = r.rects();
TQRegion result;
register TQRect *rect = rects.data();
register int i = rects.size();
TQRect *rect = rects.data();
int i = rects.size();
if ( _m12 == 0.0F && _m21 == 0.0F && _m11 > 1.0F && _m22 > 1.0F ) {
// simple case, no rotation
while ( i ) {


+ 20
- 20
src/moc/moc_lex.cpp View File

@@ -1248,9 +1248,9 @@ extern int yylex (void);
*/
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
yy_state_type yy_current_state;
char *yy_cp, *yy_bp;
int yy_act;
#line 113 "moc.l"

@@ -1300,7 +1300,7 @@ YY_DECL
yy_match:
do
{
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@ -2448,9 +2448,9 @@ case YY_STATE_EOF(IN_CLASSINFO):
*/
static int yy_get_next_buffer (void)
{
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
register char *source = (yytext_ptr);
register int number_to_move, i;
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
char *source = (yytext_ptr);
int number_to_move, i;
int ret_val;

if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
@@ -2582,15 +2582,15 @@ static int yy_get_next_buffer (void)

static yy_state_type yy_get_previous_state (void)
{
register yy_state_type yy_current_state;
register char *yy_cp;
yy_state_type yy_current_state;
char *yy_cp;
yy_current_state = (yy_start);
yy_current_state += YY_AT_BOL();

for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@ -2615,10 +2615,10 @@ static int yy_get_next_buffer (void)
*/
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
{
register int yy_is_jam;
register char *yy_cp = (yy_c_buf_p);
int yy_is_jam;
char *yy_cp = (yy_c_buf_p);

register YY_CHAR yy_c = 1;
YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@ -2636,9 +2636,9 @@ static int yy_get_next_buffer (void)
return yy_is_jam ? 0 : yy_current_state;
}

static void yyunput (int c, register char * yy_bp )
static void yyunput (int c, char * yy_bp )
{
register char *yy_cp;
char *yy_cp;
yy_cp = (yy_c_buf_p);

@@ -2648,10 +2648,10 @@ static int yy_get_next_buffer (void)
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
register int number_to_move = (yy_n_chars) + 2;
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
int number_to_move = (yy_n_chars) + 2;
char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
register char *source =
char *source =
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];

while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
@@ -3266,7 +3266,7 @@ int yylex_destroy (void)
#ifndef yytext_ptr
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
{
register int i;
int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
@@ -3275,7 +3275,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * s )
{
register int n;
int n;
for ( n = 0; s[n]; ++n )
;



+ 6
- 6
src/table/qtable.cpp View File

@@ -5359,7 +5359,7 @@ void TQTable::repaintSelections( TQTableSelection *oldSelection,
}

if ( updateHorizontal && numCols() > 0 && left >= 0 && !isRowSelection( selectionMode() ) ) {
register int *s = &topHeader->states.data()[left];
int *s = &topHeader->states.data()[left];
for ( i = left; i <= right; ++i ) {
if ( !isColumnSelected( i ) )
*s = TQTableHeader::Normal;
@@ -5373,7 +5373,7 @@ void TQTable::repaintSelections( TQTableSelection *oldSelection,
}

if ( updateVertical && numRows() > 0 && top >= 0 ) {
register int *s = &leftHeader->states.data()[top];
int *s = &leftHeader->states.data()[top];
for ( i = top; i <= bottom; ++i ) {
if ( !isRowSelected( i ) )
*s = TQTableHeader::Normal;
@@ -6641,7 +6641,7 @@ void TQTableHeader::setSectionStateToAll( SectionState state )
if ( isRowSelection( table->selectionMode() ) && orientation() == Horizontal )
return;

register int *d = (int *) states.data();
int *d = (int *) states.data();
int n = count();

while (n >= 4) {
@@ -7053,7 +7053,7 @@ void TQTableHeader::updateSelections()
int b = sectionAt( endPos );
int start = TQMIN( a, b );
int end = TQMAX( a, b );
register int *s = states.data();
int *s = states.data();
for ( int i = 0; i < count(); ++i ) {
if ( i < start || i > end )
*s = oldStates.data()[ i ];
@@ -7079,8 +7079,8 @@ void TQTableHeader::updateSelections()
void TQTableHeader::saveStates()
{
oldStates.resize( count() );
register int *s = states.data();
register int *s2 = oldStates.data();
int *s = states.data();
int *s2 = oldStates.data();
for ( int i = 0; i < count(); ++i ) {
*s2 = *s;
++s2;


+ 9
- 9
src/tools/qbitarray.cpp View File

@@ -372,7 +372,7 @@ bool TQBitArray::toggleBit( uint index )
return FALSE;
}
#endif
register uchar *p = (uchar *)data() + (index>>3);
uchar *p = (uchar *)data() + (index>>3);
uchar b = (1 << (index & 7)); // bit position
uchar c = *p & b; // read bit
*p ^= b; // toggle bit
@@ -436,8 +436,8 @@ bool TQBitArray::toggleBit( uint index )
TQBitArray &TQBitArray::operator&=( const TQBitArray &a )
{
resize( TQMAX(size(), a.size()) );
register uchar *a1 = (uchar *)data();
register uchar *a2 = (uchar *)a.data();
uchar *a1 = (uchar *)data();
uchar *a2 = (uchar *)a.data();
int n = TQMIN( TQByteArray::size(), a.TQByteArray::size() );
int p = TQMAX( TQByteArray::size(), a.TQByteArray::size() ) - n;
while ( n-- > 0 )
@@ -467,8 +467,8 @@ TQBitArray &TQBitArray::operator&=( const TQBitArray &a )
TQBitArray &TQBitArray::operator|=( const TQBitArray &a )
{
resize( TQMAX(size(), a.size()) );
register uchar *a1 = (uchar *)data();
register uchar *a2 = (uchar *)a.data();
uchar *a1 = (uchar *)data();
uchar *a2 = (uchar *)a.data();
int n = TQMIN( TQByteArray::size(), a.TQByteArray::size() );
while ( n-- > 0 )
*a1++ |= *a2++;
@@ -495,8 +495,8 @@ TQBitArray &TQBitArray::operator|=( const TQBitArray &a )
TQBitArray &TQBitArray::operator^=( const TQBitArray &a )
{
resize( TQMAX(size(), a.size()) );
register uchar *a1 = (uchar *)data();
register uchar *a2 = (uchar *)a.data();
uchar *a1 = (uchar *)data();
uchar *a2 = (uchar *)a.data();
int n = TQMIN( TQByteArray::size(), a.TQByteArray::size() );
while ( n-- > 0 )
*a1++ ^= *a2++;
@@ -517,8 +517,8 @@ TQBitArray &TQBitArray::operator^=( const TQBitArray &a )
TQBitArray TQBitArray::operator~() const
{
TQBitArray a( size() );
register uchar *a1 = (uchar *)data();
register uchar *a2 = (uchar *)a.data();
uchar *a1 = (uchar *)data();
uchar *a2 = (uchar *)a.data();
int n = TQByteArray::size();
while ( n-- )
*a2++ = ~*a1++;


+ 19
- 19
src/tools/qcstring.cpp View File

@@ -72,8 +72,8 @@

void *tqmemmove( void *dst, const void *src, uint len )
{
register char *d;
register char *s;
char *d;
char *s;
if ( dst > src ) {
d = (char *)dst + len - 1;
s = (char *)src + len - 1;
@@ -218,8 +218,8 @@ char *tqstrncpy( char *dst, const char *src, uint len )

int tqstricmp( const char *str1, const char *str2 )
{
register const uchar *s1 = (const uchar *)str1;
register const uchar *s2 = (const uchar *)str2;
const uchar *s1 = (const uchar *)str1;
const uchar *s2 = (const uchar *)str2;
int res;
uchar c;
if ( !s1 || !s2 )
@@ -252,8 +252,8 @@ int tqstricmp( const char *str1, const char *str2 )

int tqstrnicmp( const char *str1, const char *str2, uint len )
{
register const uchar *s1 = (const uchar *)str1;
register const uchar *s2 = (const uchar *)str2;
const uchar *s1 = (const uchar *)str1;
const uchar *s2 = (const uchar *)str2;
int res;
uchar c;
if ( !s1 || !s2 )
@@ -273,8 +273,8 @@ static bool crc_tbl_init = FALSE;

static void createCRC16Table() // build CRC16 lookup table
{
register uint i;
register uint j;
uint i;
uint j;
uint v0, v1, v2, v3;
for ( i = 0; i < 16; i++ ) {
v0 = i & 1;
@@ -322,7 +322,7 @@ TQ_UINT16 tqChecksum( const char *data, uint len )
crc_tbl_init = TRUE;
}
}
register TQ_UINT16 crc = 0xffff;
TQ_UINT16 crc = 0xffff;
uchar c;
uchar *p = (uchar *)data;
while ( len-- ) {
@@ -940,7 +940,7 @@ int TQCString::find( char c, int index, bool cs ) const
{
if ( (uint)index >= size() ) // index outside string
return -1;
register const char *d;
const char *d;
if ( cs ) { // case sensitive
d = strchr( data()+index, c );
} else {
@@ -1056,8 +1056,8 @@ int TQCString::find( const char *str, int index, bool cs, uint l ) const

int TQCString::findRev( char c, int index, bool cs ) const
{
register const char *b = data();
register const char *d;
const char *b = data();
const char *d;
if ( index < 0 )
index = length();
if ( (uint)index >= size() )
@@ -1290,7 +1290,7 @@ TQCString TQCString::mid( uint index, uint len ) const
} else {
if ( len > slen-index )
len = slen - index;
register char *p = data()+index;
char *p = data()+index;
TQCString s( len+1 );
strncpy( s.data(), p, len );
*(s.data()+len) = '\0';
@@ -1390,7 +1390,7 @@ TQCString TQCString::rightJustify( uint width, char fill, bool truncate ) const
TQCString TQCString::lower() const
{
TQCString s( data() );
register char *p = s.data();
char *p = s.data();
if ( p ) {
while ( *p ) {
*p = tolower( (uchar) *p );