Browse Source

Removed explicit usage of the 'register' keyword.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/71/head
Michele Calgaro 2 months ago
parent
commit
aa98dbfe80
Signed by: MicheleC <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
50 changed files with 415 additions and 415 deletions
  1. +2
    -2
      dcop/KDE-ICE/Xtrans.c
  2. +2
    -2
      dcop/KDE-ICE/iceauth.c
  3. +8
    -8
      dcop/KDE-ICE/misc.c
  4. +19
    -19
      dcop/dcopidl/scanner.cc
  5. +3
    -3
      dcop/dcopserver.cpp
  6. +8
    -8
      kab/addressbook.cc
  7. +57
    -57
      kab/qconfigDB.cc
  8. +5
    -5
      kjs/dtoa.cpp
  9. +6
    -6
      tdeabc/vcard/Enum.cpp
  10. +3
    -3
      tdeabc/vcard/RToken.cpp
  11. +1
    -1
      tdecore/kbufferedio.cpp
  12. +6
    -6
      tdecore/kentities.c
  13. +1
    -1
      tdecore/kextsock.cpp
  14. +1
    -1
      tdecore/kmdcodec.cpp
  15. +1
    -1
      tdecore/kstringhandler.cpp
  16. +5
    -5
      tdecore/tdeconfigbackend.cpp
  17. +1
    -1
      tdecore/tdehw/tdehardwaredevices.cpp
  18. +3
    -3
      tdecore/tdelocale.cpp
  19. +6
    -6
      tdecore/tdesycocadict.cpp
  20. +52
    -52
      tdefx/kimageeffect.cpp
  21. +1
    -1
      tdefx/kpixmap.cpp
  22. +4
    -4
      tdefx/kpixmapeffect.cpp
  23. +10
    -10
      tdefx/tdestyle.cpp
  24. +7
    -7
      tdehtml/css/cssproperties.c
  25. +7
    -7
      tdehtml/css/cssvalues.c
  26. +1
    -1
      tdehtml/css/makeprop
  27. +1
    -1
      tdehtml/css/makevalues
  28. +8
    -8
      tdehtml/css/parser.cpp
  29. +4
    -4
      tdehtml/css/tokenizer.cpp
  30. +5
    -5
      tdehtml/html/doctypes.cpp
  31. +6
    -6
      tdehtml/misc/htmlattrs.c
  32. +6
    -6
      tdehtml/misc/htmltags.c
  33. +3
    -3
      tdeinit/setproctitle.cpp
  34. +21
    -21
      tdeio/tdeio/lex.c
  35. +8
    -8
      tdeio/tdeio/yacc.c
  36. +1
    -1
      tdeioslave/iso/libisofs/bswap.h
  37. +2
    -2
      tdeioslave/iso/libisofs/isofs.c
  38. +10
    -10
      tdeprint/fooparser.cpp
  39. +21
    -21
      tdeprint/fooscanner.cpp
  40. +8
    -8
      tdeprint/ppdparser.cpp
  41. +21
    -21
      tdeprint/ppdscanner.cpp
  42. +1
    -1
      tderandr/libtderandr.cc
  43. +20
    -20
      tdespell2/plugins/ispell/correct.cpp
  44. +7
    -7
      tdespell2/plugins/ispell/good.cpp
  45. +2
    -2
      tdespell2/plugins/ispell/hash.cpp
  46. +10
    -10
      tdespell2/plugins/ispell/lookup.cpp
  47. +13
    -13
      tdespell2/plugins/ispell/makedent.cpp
  48. +12
    -12
      tdespell2/plugins/ispell/tgood.cpp
  49. +4
    -4
      tdestyles/plastik/plastik.cpp
  50. +1
    -1
      tdeui/tests/kledtest.cpp

+ 2
- 2
dcop/KDE-ICE/Xtrans.c View File

@@ -1261,7 +1261,7 @@ static int TRANS(ReadV) (XtransConnInfo ciptr, struct iovec *iov, int iovcnt)
len = iov->iov_len;
base = iov->iov_base;
while (len > 0) {
register int nbytes;
int nbytes;
nbytes = TRANS(Read) (ciptr, base, len);
if (nbytes < 0 && total == 0) return -1;
if (nbytes <= 0) return total;
@@ -1293,7 +1293,7 @@ static int TRANS(WriteV) (XtransConnInfo ciptr, struct iovec *iov, int iovcnt)
len = iov->iov_len;
base = iov->iov_base;
while (len > 0) {
register int nbytes;
int nbytes;
nbytes = TRANS(Write) (ciptr, base, len);
if (nbytes < 0 && total == 0) return -1;
if (nbytes <= 0) return total;


+ 2
- 2
dcop/KDE-ICE/iceauth.c View File

@@ -45,7 +45,7 @@ extern Time_t time ();
#define Time_t time_t
#endif

static int binaryEqual (register const char *a, register const char *b, register unsigned len);
static int binaryEqual (register const char *a, const char *b, unsigned len);

static int was_called_state;

@@ -264,7 +264,7 @@ char **errorStringRet;
* local routines
*/

static int binaryEqual (register const char *a, register const char *b, register unsigned len)
static int binaryEqual (register const char *a, const char *b, unsigned len)
{
while (len--)
if (*a++ != *b++)


+ 8
- 8
dcop/KDE-ICE/misc.c View File

@@ -233,12 +233,12 @@ IceConn iceConn;
Status
_IceRead (iceConn, nbytes, ptr)

register IceConn iceConn;
IceConn iceConn;
unsigned long nbytes;
register char *ptr;
char *ptr;

{
register unsigned long nleft;
unsigned long nleft;

nleft = nbytes;
while (nleft > 0)
@@ -335,8 +335,8 @@ register char *ptr;
void
_IceReadSkip (iceConn, nbytes)

register IceConn iceConn;
register unsigned long nbytes;
IceConn iceConn;
unsigned long nbytes;

{
char temp[512];
@@ -359,12 +359,12 @@ register unsigned long nbytes;
void
_IceWrite (iceConn, nbytes, ptr)

register IceConn iceConn;
IceConn iceConn;
unsigned long nbytes;
register char *ptr;
char *ptr;

{
register unsigned long nleft;
unsigned long nleft;

nleft = nbytes;
while (nleft > 0)


+ 19
- 19
dcop/dcopidl/scanner.cc View File

@@ -1209,9 +1209,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 148 "scanner.ll"

@@ -1270,7 +1270,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)];
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
@@ -1909,9 +1909,9 @@ ECHO;
*/
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] )
@@ -2014,8 +2014,8 @@ 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);

@@ -2024,7 +2024,7 @@ static int yy_get_next_buffer (void)

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);
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
@@ -2045,9 +2045,9 @@ 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;
int yy_is_jam;
register YY_CHAR yy_c = 1;
YY_CHAR yy_c = 1;
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
@@ -2062,9 +2062,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);

@@ -2074,10 +2074,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 )
@@ -2694,7 +2694,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];
}
@@ -2703,7 +2703,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 )
;



+ 3
- 3
dcop/dcopserver.cpp View File

@@ -117,7 +117,7 @@ static Bool HostBasedAuthProc ( char* /*hostname*/)
extern "C" {
extern IceWriteHandler _kde_IceWriteHandler;
extern IceIOErrorHandler _kde_IceIOErrorHandler;
void DCOPIceWriteChar(register IceConn iceConn, unsigned long nbytes, char *ptr);
void DCOPIceWriteChar(IceConn iceConn, unsigned long nbytes, char *ptr);
}

static TQCString readQCString(TQDataStream &ds)
@@ -236,7 +236,7 @@ static unsigned long writeIceData(IceConn iceConn, unsigned long nbytes, char *p
return 0;
}

void DCOPIceWriteChar(register IceConn iceConn, unsigned long nbytes, char *ptr)
void DCOPIceWriteChar(IceConn iceConn, unsigned long nbytes, char *ptr)
{
DCOPConnection* conn = the_server->findConn( iceConn );
#ifdef DCOP_DEBUG
@@ -383,7 +383,7 @@ tqWarning("[dcopserver] slotOutputRead() more data to send.");
}
}

static void DCOPIceSendData(register IceConn _iceConn,
static void DCOPIceSendData(IceConn _iceConn,
const TQByteArray &_data)
{
if (_iceConn->outbufptr > _iceConn->outbuf)


+ 8
- 8
kab/addressbook.cc View File

@@ -407,7 +407,7 @@ AddressBook::AddressBook(TQWidget* parent, const char* name, bool loadit)
entries(new StringKabKeyMap),
state(NoFile)
{
register bool GUARD; GUARD=true;
bool GUARD; GUARD=true;
// ###########################################################################
TQString dir, filename;
bool createBackup=true;
@@ -647,7 +647,7 @@ AddressBook::ErrorCode AddressBook::load(const TQString& filename)
AddressBook::ErrorCode
AddressBook::getListOfNames(TQStringList* strings, bool reverse, bool initials)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "AddressBook::getListOfNames: called.\n";
StringKabKeyMap::iterator pos;
@@ -702,7 +702,7 @@ AddressBook::literalName(const KabKey& key, TQString& text, bool rev, bool init)
AddressBook::ErrorCode
AddressBook::literalName(const Entry& entry, TQString& text, bool rev, bool init)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "AddressBook::literalName: called.\n";
TQString firstname, middlename, lastname, nameprefix;
@@ -817,7 +817,7 @@ AddressBook::dataFileChanged()
void
AddressBook::configFileChanged()
{
register bool GUARD; GUARD=true;
bool GUARD; GUARD=true;
// ###########################################################################
if(!config->load())
{
@@ -835,7 +835,7 @@ AddressBook::configFileChanged()
void
AddressBook::reloaded(QConfigDB* db)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
if(db==data)
{
@@ -924,7 +924,7 @@ AddressBook::getEntry(const KabKey& key, Entry& entry)
AddressBook::ErrorCode
AddressBook::getEntry(const KabKey& key, Section*& section)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "AddressBook::getEntry: searching entry "
"with key " << key.getKey().data() << endl;
@@ -1004,7 +1004,7 @@ AddressBook::getKey(int index, KabKey& key)
AddressBook::ErrorCode
AddressBook::getIndex(const KabKey& key, int& index)
{
register bool GUARD; GUARD=true;
bool GUARD; GUARD=true;
// ###########################################################################
StringKabKeyMap::iterator pos;
// -----
@@ -1283,7 +1283,7 @@ AddressBook::nextAvailEntryKey()
AddressBook::ErrorCode
AddressBook::updateMirrorMap()
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA)
<< "AddressBook::updateMirrorMap: updating mirror map.\n";


+ 57
- 57
kab/qconfigDB.cc View File

@@ -55,7 +55,7 @@ static bool isComment(TQCString line)

static void tokenize(list<TQCString>& res, const TQCString& text, char tr, bool strict=false)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "tokenize: called." << endl;
int eins=0, zwei=0;
@@ -99,7 +99,7 @@ static void tokenize(list<TQCString>& res, const TQCString& text, char tr, bool

static TQCString ReadLineFromStream(TQTextStream& stream)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "ReadLineFromStream:: reading line." << endl;
TQCString line;
@@ -174,7 +174,7 @@ KeyValueMap::size() const
void
KeyValueMap::clear()
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) <<
"KeyValueMap::clear: erasing map contents ... " << endl;
@@ -191,7 +191,7 @@ KeyValueMap::clear()
bool
KeyValueMap::fill(const TQString& filename, bool force, bool relax)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
TQFile file(filename);
TQCString line;
@@ -231,7 +231,7 @@ KeyValueMap::fill(const TQString& filename, bool force, bool relax)
bool
KeyValueMap::save(const TQString& filename, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) <<
"KeyValueMap::save: saving data to -->" <<
@@ -271,7 +271,7 @@ KeyValueMap::save(const TQString& filename, bool force)
bool
KeyValueMap::save(TQTextStream& file, int count)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) <<
"KeyValueMap::save: saving data to given output stream." << endl;
@@ -318,7 +318,7 @@ KeyValueMap::parseComplexString
int& noOfChars) // no of chars that represented the
const // complex string in the original
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
int first;
TQCString temp(2*orig.length());
@@ -415,7 +415,7 @@ KeyValueMap::parseComplexString
TQCString
KeyValueMap::makeComplexString(const TQCString& orig)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) <<
"KeyValueMap::makeComplexString: coding the string\n -->"
@@ -468,7 +468,7 @@ KeyValueMap::makeComplexString(const TQCString& orig)
bool
KeyValueMap::getRaw(const TQCString& key, TQCString& value) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) <<
"KeyValueMap::getRaw: trying to get raw value for key \"" << key << "\" ...\n";
@@ -490,7 +490,7 @@ KeyValueMap::getRaw(const TQCString& key, TQCString& value) const
bool
KeyValueMap::insertRaw(const TQCString& key, const TQCString& value, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) <<
"KeyValueMap::insertRaw: inserting uncoded value "
@@ -535,7 +535,7 @@ KeyValueMap::insertRaw(const TQCString& key, const TQCString& value, bool force)
bool
KeyValueMap::insert(const TQCString& key, const TQCString& value, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) <<
"KeyValueMap::insert: inserting value\n -->"
@@ -556,7 +556,7 @@ KeyValueMap::insert(const TQCString& key, const TQCString& value, bool force)
bool
KeyValueMap::insertLine(TQCString line, bool force, bool relax, bool encode)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) <<
"KeyValueMap::insertLine: inserting line -->"<<line<<"<--.\n";
@@ -611,7 +611,7 @@ KeyValueMap::insertLine(TQCString line, bool force, bool relax, bool encode)
bool
KeyValueMap::get(const TQCString& key, TQCString& value) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[string]: "
"trying to get value for key \"" << key << "\" ... " << endl;
@@ -651,7 +651,7 @@ KeyValueMap::get(const TQCString& key, TQCString& value) const
bool
KeyValueMap::insert(const TQCString& key, const TQString& value, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
TQCString v;
// -----
@@ -668,7 +668,7 @@ KeyValueMap::insert(const TQCString& key, const TQString& value, bool force)
bool
KeyValueMap::get(const TQCString& key, TQString& value) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[QString]: trying to get "
"a TQString value for key " << key << endl;
@@ -694,7 +694,7 @@ KeyValueMap::get(const TQCString& key, TQString& value) const
bool
KeyValueMap::insert(const TQCString& key, const bool& value, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::insert[bool]: trying to "
"insert \""
@@ -709,7 +709,7 @@ KeyValueMap::insert(const TQCString& key, const bool& value, bool force)
bool
KeyValueMap::get(const TQCString& key, bool& value) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[bool]: trying to get "
"BOOL value for key " << key << endl;
@@ -750,7 +750,7 @@ KeyValueMap::get(const TQCString& key, bool& value) const
bool
KeyValueMap::insert(const TQCString& key, const long& value, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::insert[int]: trying to "
"insert value \""<<value << "\" for key\n -->"<<key<<"<--.\n";
@@ -764,7 +764,7 @@ KeyValueMap::insert(const TQCString& key, const long& value, bool force)
bool
KeyValueMap::get(const TQCString& key, long& value) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[int]: trying to get "
"INTEGER value for key " << key << endl;
@@ -796,7 +796,7 @@ KeyValueMap::get(const TQCString& key, long& value) const
bool
KeyValueMap::insert(const TQCString& key, const list<long>& values, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::insert[long int list]: "
"trying to insert long int list into map." << endl;
@@ -823,7 +823,7 @@ KeyValueMap::insert(const TQCString& key, const list<long>& values, bool force)
bool
KeyValueMap::get(const TQCString& key, list<long>& values) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[long int list]: trying "
"to decode int list for key " << key << endl;
@@ -871,7 +871,7 @@ KeyValueMap::get(const TQCString& key, list<long>& values) const
bool
KeyValueMap::insert(const TQCString& key, const list<int>& values, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::insert[int list]: trying to "
"insert int list into map." << endl;
@@ -898,7 +898,7 @@ KeyValueMap::insert(const TQCString& key, const list<int>& values, bool force)
bool
KeyValueMap::get(const TQCString& key, list<int>& values) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[int list]: trying to "
"decode int list for key " << key << endl;
@@ -946,7 +946,7 @@ KeyValueMap::get(const TQCString& key, list<int>& values) const
bool
KeyValueMap::insert(const TQCString& key, const double& value, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA).form("KeyValueMap::insert[double]: trying to "
"insert value \"%f\" for key\n -->", value) << key << "<--.\n";
@@ -960,7 +960,7 @@ KeyValueMap::insert(const TQCString& key, const double& value, bool force)
bool
KeyValueMap::get(const TQCString& key, double& value) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[double]: trying to get "
"FLOAT value for key " << key << endl;
@@ -993,7 +993,7 @@ KeyValueMap::get(const TQCString& key, double& value) const
bool
KeyValueMap::get(const TQCString& key, list<TQCString>& values) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
kdDebug(!values.empty(), KAB_KDEBUG_AREA) << "KeyValueMap::get[string list]: "
"attention!\n \"values\" list reference is not "
"empty!" << endl;
@@ -1070,7 +1070,7 @@ KeyValueMap::get(const TQCString& key, list<TQCString>& values) const
bool
KeyValueMap::insert(const TQCString& key, const list<TQCString>& values, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::insert[string list]: "
"coding string list." << endl;
@@ -1102,7 +1102,7 @@ KeyValueMap::insert(const TQCString& key, const list<TQCString>& values, bool fo
bool
KeyValueMap::get(const TQCString& key, TQStrList& values) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
kdDebug(!values.isEmpty(), KAB_KDEBUG_AREA) << "KeyValueMap::get[QStrList]: "
"attention!\n \"values\" list reference is not "
"empty!" << endl;
@@ -1178,7 +1178,7 @@ KeyValueMap::get(const TQCString& key, TQStrList& values) const
bool
KeyValueMap::insert(const TQCString& key, const TQStrList& values, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) <<
"KeyValueMap::insert[QStrList]: coding string list." << endl;
@@ -1209,7 +1209,7 @@ KeyValueMap::insert(const TQCString& key, const TQStrList& values, bool force)
bool
KeyValueMap::get(const TQCString& key, TQStringList& values) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
kdDebug(!values.isEmpty(), KAB_KDEBUG_AREA) << "KeyValueMap::get"
"[QStringList]: attention!\n \"values\" list reference"
" is not empty!" << endl;
@@ -1242,7 +1242,7 @@ KeyValueMap::get(const TQCString& key, TQStringList& values) const
bool
KeyValueMap::insert(const TQCString& key, const TQStringList& values, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) <<
"KeyValueMap::insert[QStringList]: coding TQStringList." << endl;
@@ -1265,7 +1265,7 @@ KeyValueMap::insert(const TQCString& key, const TQStringList& values, bool force
bool
KeyValueMap::insert(const TQCString& key, const list<double>& values, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::insert[double list]: trying "
"to insert double list into map." << endl;
@@ -1293,7 +1293,7 @@ KeyValueMap::insert(const TQCString& key, const list<double>& values, bool force
bool
KeyValueMap::get(const TQCString& key, list<double>& values) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[double list]: trying to "
"decode double list for key " << key << endl;
@@ -1336,7 +1336,7 @@ KeyValueMap::get(const TQCString& key, list<double>& values) const
bool
KeyValueMap::insert(const TQCString& key, const TQDate& value, bool force)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::insert[QDate]: trying to "
"insert TQDate into map." << endl;
@@ -1360,7 +1360,7 @@ KeyValueMap::insert(const TQCString& key, const TQDate& value, bool force)
bool
KeyValueMap::get(const TQCString& key, TQDate& date) const
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[QDate]: trying to decode"
" TQDate for key " << key << endl;
@@ -1420,7 +1420,7 @@ Section::Section(const KeyValueMap& contents)
bool
Section::add(const TQCString& name)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "Section::add: adding section \""
<<name<<"\" to "
@@ -1455,7 +1455,7 @@ Section::add(const TQCString& name)
bool
Section::add(const TQCString& name, Section* section)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
if(sections.insert(StringSectionMap::value_type(name, section)).second)
{
@@ -1473,7 +1473,7 @@ Section::add(const TQCString& name, Section* section)
bool
Section::find(const TQCString& name, StringSectionMap::iterator& result)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "Section::find: trying to get section "
"\""<<name<<"\" ... \n";
@@ -1549,7 +1549,7 @@ Section::insertIndentSpace(TQTextStream& file, int level)
bool
Section::save(TQTextStream& stream, int level)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
StringSectionMap::iterator pos;
// -----
@@ -1592,7 +1592,7 @@ Section::save(TQTextStream& stream, int level)
bool
Section::readSection(TQTextStream& file, bool finish)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "Section::readSection: reading section." << endl;
TQCString line;
@@ -1661,7 +1661,7 @@ Section::readSection(TQTextStream& file, bool finish)
bool
Section::isBeginOfSection(TQCString line)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
line=line.simplifyWhiteSpace();
if(line.isEmpty() || line.length()<2)
@@ -1687,7 +1687,7 @@ Section::isBeginOfSection(TQCString line)
bool
Section::isEndOfSection(TQCString line)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "Section::isEndOfSection: is "
<< line <<" the end of"
@@ -1728,7 +1728,7 @@ Section::isEndOfSection(TQCString line)
TQCString
Section::nameOfSection(const TQCString& line)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ###########################################################################
int first=1, second;
TQCString temp;
@@ -1849,7 +1849,7 @@ bool QConfigDB::invariant()
bool
QConfigDB::get(const list<TQCString>& key, KeyValueMap*& map)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "QConfigDB::get: trying to get keys ... " << endl;
Section* section=&top;
@@ -1960,7 +1960,7 @@ QConfigDB::get(const TQCString& key, KeyValueMap*& map)
list<TQCString>
QConfigDB::stringToKeylist(const TQCString& desc)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
kdDebug(GUARD, KAB_KDEBUG_AREA) << "QConfigDB::stringToKeylist: parsing path " << desc << endl;
// ############################################################################
list<TQCString> key;
@@ -2012,7 +2012,7 @@ QConfigDB::get(const TQCString& key, Section*& section)
bool
QConfigDB::get(const list<TQCString>& key, Section*& section)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "QConfigDB::get: searching section ... " << endl;
Section* temp=&top;
@@ -2044,7 +2044,7 @@ QConfigDB::isRO()
int
QConfigDB::IsLocked(const TQString& file)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
TQString lockfile=file+".lock";
int pid=-1;
@@ -2087,7 +2087,7 @@ QConfigDB::IsLocked(const TQString& file)
bool
QConfigDB::lock()
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
if(locked)
{
@@ -2108,7 +2108,7 @@ QConfigDB::lock()
bool
QConfigDB::lock(const TQString& file)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "QConfigDB::lock: locking the file "
<< file << endl;
@@ -2143,7 +2143,7 @@ QConfigDB::lock(const TQString& file)
bool
QConfigDB::unlock()
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "QConfigDB::unlock: unlocking the file "
<< filename << endl;
@@ -2190,7 +2190,7 @@ QConfigDB::unlock()
void
QConfigDB::CleanLockFiles(int)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
list<TQString>::iterator pos;
// -----
@@ -2236,7 +2236,7 @@ QConfigDB::watch(bool state)
bool
QConfigDB::CheckLockFile(const TQString& file)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "QConfigDB::CheckLockFile: called." << endl;
int pid;
@@ -2270,7 +2270,7 @@ QConfigDB::CheckLockFile(const TQString& file)
bool
QConfigDB::checkFileChanged()
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
// kdDebug(GUARD, KAB_KDEBUG_AREA) << "QConfigDB::checkFileChanged: called." << endl;
if(filename.isEmpty())
@@ -2308,7 +2308,7 @@ QConfigDB::checkFileChanged()
bool
QConfigDB::storeFileAge()
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "QConfigDB::storeFileAge: called." << endl;
TQFileInfo file(filename);
@@ -2329,7 +2329,7 @@ QConfigDB::storeFileAge()
bool
QConfigDB::setFileName(const TQString& filename_, bool mustexist, bool readonly_)
{
register bool GUARD; GUARD=false;
bool GUARD; GUARD=false;
// ############################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) << "QConfigDB::setFileName: setting filename "
"to \""
@@ -2443,7 +2443,7 @@ QConfigDB::fileName()
bool
QConfigDB::save(const char* header, bool force)
{
register bool GUARD; GUARD=true;
bool GUARD; GUARD=true;
// ############################################################################
kdDebug(GUARD, KAB_KDEBUG_AREA) <<
"QConfigDB::save: saving database -->" << filename << "<--.\n";
@@ -2522,7 +2522,7 @@ QConfigDB::save(const char* header, bool force)
bool
QConfigDB::load()
{
register bool GUARD; GUARD=false ;
bool GUARD; GUARD=false ;
// ############################################################################
TQFile file(filename);
// -----


+ 5
- 5
kjs/dtoa.cpp View File

@@ -610,9 +610,9 @@ s2b

static int
hi0bits
(register ULong x)
(ULong x)
{
register int k = 0;
int k = 0;

if (!(x & 0xffff0000)) {
k = 16;
@@ -642,8 +642,8 @@ hi0bits
lo0bits
(ULong *y)
{
register int k;
register ULong x = *y;
int k;
ULong x = *y;

if (x & 7) {
if (x & 1)
@@ -1035,7 +1035,7 @@ diff
ulp
(double dx)
{
register Long L;
Long L;
U x, a;

dval(x) = dx;


+ 6
- 6
tdeabc/vcard/Enum.cpp View File

@@ -433,12 +433,12 @@ static signed char b64dec[] = {
char *
VCARD::decodeBase64(const char * s, unsigned long srcl, unsigned long & len)
{
register unsigned char c;
register unsigned long e(0);
unsigned char c;
unsigned long e(0);
len = 0;
unsigned const char * src = (unsigned const char *)s;
char * ret = new char[srcl + (srcl / 4 + 1)];
register char *d = ret;
char *d = ret;
while (srcl--) { // Critical loop
c = *src++;
int dec = b64dec[c];
@@ -468,12 +468,12 @@ VCARD::decodeBase64(const char * s, unsigned long srcl, unsigned long & len)
char *
VCARD::encodeBase64(const char * src, unsigned long srcl, unsigned long & destl)
{
register const unsigned char *s = (unsigned char *)src;
register unsigned long i = ((srcl + 2) / 3) * 4;
const unsigned char *s = (unsigned char *)src;
unsigned long i = ((srcl + 2) / 3) * 4;
destl = i += 2 * ((i / 60) + 1);
i = 0;
char * ret = new char[destl];
register unsigned char *d((unsigned char *)ret);
unsigned char *d((unsigned char *)ret);
while (srcl != 0) { // Critical loop
*d++ = B64[s[0] >> 2];
*d++ = B64[((s[0] << 4) + (--srcl == 0 ? 0 : s[1] >> 4)) & 0x3f];


+ 3
- 3
tdeabc/vcard/RToken.cpp View File

@@ -40,11 +40,11 @@ RTokenise(const char * str, const char * delim, TQStrList & l)
char * len = (char *)(str + strlen(str)); // End of string.
register char * rstart = new char[strlen(str) + 1];
register char * r = rstart;
char * rstart = new char[strlen(str) + 1];
char * r = rstart;
register const char * i = str; // Cursor.
const char * i = str; // Cursor.
while (i <= len) {



+ 1
- 1
tdecore/kbufferedio.cpp View File

@@ -174,7 +174,7 @@ int TDEBufferedIO::unreadBlock(const char *data, uint len)
unsigned TDEBufferedIO::consumeReadBuffer(unsigned nbytes, char *destbuffer, bool discard)
{
{
register unsigned u = readBufferSize();
unsigned u = readBufferSize();
if (nbytes > u)
nbytes = u; // we can't consume more than there is
}


+ 6
- 6
tdecore/kentities.c View File

@@ -73,7 +73,7 @@ inline
#endif
#endif
static unsigned int
hash_Entity (register const char *str, register unsigned int len)
hash_Entity (register const char *str, unsigned int len)
{
static const unsigned short asso_values[] =
{
@@ -104,7 +104,7 @@ hash_Entity (register const char *str, register unsigned int len)
932, 932, 932, 932, 932, 932, 932, 932, 932, 932,
932, 932, 932, 932, 932, 932, 932
};
register int hval = len;
int hval = len;

switch (hval)
{
@@ -140,7 +140,7 @@ hash_Entity (register const char *str, register unsigned int len)
__inline
#endif
const struct entity *
kde_findEntity (register const char *str, register unsigned int len)
kde_findEntity (register const char *str, unsigned int len)
{
enum
{
@@ -815,15 +815,15 @@ kde_findEntity (register const char *str, register unsigned int len)

if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
{
register int key = hash_Entity (str, len);
int key = hash_Entity (str, len);

if (key <= MAX_HASH_VALUE && key >= 0)
{
register int index = lookup[key];
int index = lookup[key];

if (index >= 0)
{
register const char *s = wordlist_Entity[index].name;
const char *s = wordlist_Entity[index].name;

if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
return &wordlist_Entity[index];


+ 1
- 1
tdecore/kextsock.cpp View File

@@ -1509,7 +1509,7 @@ TQT_TQIO_LONG KExtendedSocket::tqwriteBlock(const char *data, TQT_TQIO_ULONG len

// LOCK BUFFER MUTEX

register unsigned wsize = writeBufferSize();
unsigned wsize = writeBufferSize();
if (d->outMaxSize == (int)wsize) // (int) to get rid of annoying warning
{
// buffer is full!


+ 1
- 1
tdecore/kmdcodec.cpp View File

@@ -139,7 +139,7 @@ const unsigned int KCodecs::maxQPLineLength = 70;
// strchr(3) for broken systems.
static int rikFindChar(register const char * _s, const char c)
{
register const char * s = _s;
const char * s = _s;

while (true)
{


+ 1
- 1
tdecore/kstringhandler.cpp View File

@@ -567,7 +567,7 @@ TQString KStringHandler::obscure( const TQString &str )
bool KStringHandler::isUtf8(const char *buf)
{
int i, n;
register unsigned char c;
unsigned char c;
bool gotone = false;
if (!buf)


+ 5
- 5
tdecore/tdeconfigbackend.cpp View File

@@ -114,8 +114,8 @@ static TQCString printableToString(const char *str, int l)

static TQCString stringToPrintable(const TQCString& str){
TQCString result(str.length()*2); // Maximum 2x as long as source string
register char *r = const_cast<TQCString&>(result).data();
register char *s = const_cast<TQCString&>(str).data();
char *r = const_cast<TQCString&>(result).data();
char *s = const_cast<TQCString&>(str).data();

if (!s) return TQCString("");

@@ -166,7 +166,7 @@ static TQCString stringToPrintable(const TQCString& str){
static TQCString decodeGroup(const char*s, int l)
{
TQCString result(l);
register char *r = result.data();
char *r = result.data();

l--; // Correct for trailing \0
while(l)
@@ -198,8 +198,8 @@ static TQCString encodeGroup(const TQCString &str)
{
int l = str.length();
TQCString result(l*2+1);
register char *r = const_cast<TQCString&>(result).data();
register char *s = const_cast<TQCString&>(str).data();
char *r = const_cast<TQCString&>(result).data();
char *s = const_cast<TQCString&>(str).data();
while(l)
{
if ((*s == '[') || (*s == ']'))


+ 1
- 1
tdecore/tdehw/tdehardwaredevices.cpp View File

@@ -107,7 +107,7 @@ timespec diff(timespec start, timespec end)

// This routine is courtsey of an answer on "Stack Overflow"
// It takes an LSB-first int and makes it an MSB-first int (or vice versa)
unsigned int reverse_bits(register unsigned int x)
unsigned int reverse_bits(unsigned int x)
{
x = (((x & 0xaaaaaaaa) >> 1) | ((x & 0x55555555) << 1));
x = (((x & 0xcccccccc) >> 2) | ((x & 0x33333333) << 2));


+ 3
- 3
tdecore/tdelocale.cpp View File

@@ -1976,7 +1976,7 @@ TQString TDELocale::formatDateTime(const TQDateTime &pDateTime,

TQString i18n(const char* text)
{
register TDELocale *instance = TDEGlobal::locale();
TDELocale *instance = TDEGlobal::locale();
if (instance)
return instance->translate(text);
return TQString::fromUtf8(text);
@@ -1984,7 +1984,7 @@ TQString i18n(const char* text)

TQString i18n(const char* index, const char *text)
{
register TDELocale *instance = TDEGlobal::locale();
TDELocale *instance = TDEGlobal::locale();
if (instance)
return instance->translate(index, text);
return TQString::fromUtf8(text);
@@ -1992,7 +1992,7 @@ TQString i18n(const char* index, const char *text)

TQString i18n(const char* singular, const char* plural, unsigned long n)
{
register TDELocale *instance = TDEGlobal::locale();
TDELocale *instance = TDEGlobal::locale();
if (instance)
return instance->translate(singular, plural, n);
if (n == 1)


+ 6
- 6
tdecore/tdesycocadict.cpp View File

@@ -182,7 +182,7 @@ uint
KSycocaDict::hashKey( const TQString &key)
{
int l = key.length();
register uint h = 0;
uint h = 0;
for(uint i = 0; i < mHashList.count(); i++)
{
@@ -217,10 +217,10 @@ calcDiversity(KSycocaDictStringList *d, int pos, int sz)
pos = -pos-1;
for(string_entry *entry=d->first(); entry; entry = d->next())
{
register int l = entry->length;
int l = entry->length;
if (pos < l && pos != 0)
{
register uint hash = ((entry->hash * 13) + (entry->key[l-pos].cell() % 29)) & 0x3ffffff;
uint hash = ((entry->hash * 13) + (entry->key[l-pos].cell() % 29)) & 0x3ffffff;
matrix[ hash % usz ] = true;
}
}
@@ -232,7 +232,7 @@ calcDiversity(KSycocaDictStringList *d, int pos, int sz)
{
if (pos < entry->length)
{
register uint hash = ((entry->hash * 13) + (entry->key[pos].cell() % 29)) & 0x3ffffff;
uint hash = ((entry->hash * 13) + (entry->key[pos].cell() % 29)) & 0x3ffffff;
matrix[ hash % usz ] = true;
}
}
@@ -257,7 +257,7 @@ addDiversity(KSycocaDictStringList *d, int pos)
pos = -pos-1;
for(string_entry *entry=d->first(); entry; entry = d->next())
{
register int l = entry->length;
int l = entry->length;
if (pos < l)
entry->hash = ((entry->hash * 13) + (entry->key[l-pos].cell() % 29)) & 0x3fffffff;
}
@@ -306,7 +306,7 @@ KSycocaDict::save(TQDataStream &str)
// use "almost prime" number for sz (to calculate diversity) and later
// for the table size of big tables
// int sz = d->count()*5-1;
register unsigned int sz = count()*4 + 1;
unsigned int sz = count()*4 + 1;
while(!(((sz % 3) && (sz % 5) && (sz % 7) && (sz % 11) && (sz % 13)))) sz+=2;

int maxDiv = 0;


+ 52
- 52
tdefx/kimageeffect.cpp View File

@@ -136,7 +136,7 @@ TQImage KImageEffect::gradient(const TQSize &size, const TQColor &ca,
return image;
}

register int x, y;
int x, y;

rDiff = (rcb = cb.red()) - (rca = ca.red());
gDiff = (gcb = cb.green()) - (gca = ca.green());
@@ -147,9 +147,9 @@ TQImage KImageEffect::gradient(const TQSize &size, const TQColor &ca,
uint *p;
uint rgb;

register int rl = rca << 16;
register int gl = gca << 16;
register int bl = bca << 16;
int rl = rca << 16;
int gl = gca << 16;
int bl = bca << 16;

if( eff == VerticalGradient ) {

@@ -424,7 +424,7 @@ TQImage KImageEffect::unbalancedGradient(const TQSize &size, const TQColor &ca,
return image;
}

register int x, y;
int x, y;
unsigned int *scanline;

rDiff = (rcb = cb.red()) - (rca = ca.red());
@@ -949,7 +949,7 @@ TQImage& KImageEffect::modulate(TQImage &image, TQImage &modImage, bool reverse,
TQColor clr;
int mod=0;
unsigned int x1, x2, y1, y2;
register int x, y;
int x, y;

// for image, we handle only depth 32
if (image.depth()<32) image = image.convertDepth(32);
@@ -1280,12 +1280,12 @@ TQImage& KImageEffect::blend(const TQColor& clr, TQImage& dst, float opacity)
clr.rgb(&rcol, &gcol, &bcol);

#ifdef WORDS_BIGENDIAN // ARGB (skip alpha)
register unsigned char *data = (unsigned char *)dst.bits() + 1;
unsigned char *data = (unsigned char *)dst.bits() + 1;
#else // BGRA
register unsigned char *data = (unsigned char *)dst.bits();
unsigned char *data = (unsigned char *)dst.bits();
#endif

for (register int i=0; i<pixels; i++)
for (int i=0; i<pixels; i++)
{
#ifdef WORDS_BIGENDIAN
*data += (unsigned char)((rcol - *data) * opacity);
@@ -1513,14 +1513,14 @@ TQImage& KImageEffect::blend(TQImage& src, TQImage& dst, float opacity)

{
#ifdef WORDS_BIGENDIAN // ARGB (skip alpha)
register unsigned char *data1 = (unsigned char *)dst.bits() + 1;
register unsigned char *data2 = (unsigned char *)src.bits() + 1;
unsigned char *data1 = (unsigned char *)dst.bits() + 1;
unsigned char *data2 = (unsigned char *)src.bits() + 1;
#else // BGRA
register unsigned char *data1 = (unsigned char *)dst.bits();
register unsigned char *data2 = (unsigned char *)src.bits();
unsigned char *data1 = (unsigned char *)dst.bits();
unsigned char *data2 = (unsigned char *)src.bits();
#endif

for (register int i=0; i<pixels; i++)
for (int i=0; i<pixels; i++)
{
#ifdef WORDS_BIGENDIAN
*data1 += (unsigned char)((*(data2++) - *data1) * opacity);
@@ -1582,7 +1582,7 @@ TQImage& KImageEffect::blend(TQImage &image, float initial_intensity,
var = -var;
}

register int x, y;
int x, y;

unsigned int *data = (unsigned int *)image.bits();

@@ -1790,7 +1790,7 @@ TQImage& KImageEffect::blend(TQImage &image1, TQImage &image2,
unsigned int x1, x2, x3, y1, y2, y3;
unsigned int a;

register int x, y;
int x, y;

// for image1 and image2, we only handle depth 32
if (image1.depth()<32) image1 = image1.convertDepth(32);
@@ -1884,7 +1884,7 @@ TQImage& KImageEffect::hash(TQImage &image, Lighting lite, unsigned int spacing)
return image;
}

register int x, y;
int x, y;
unsigned int *data = (unsigned int *)image.bits();
unsigned int ind;

@@ -2142,9 +2142,9 @@ TQImage& KImageEffect::toGray(TQImage &img, bool fast)

if(fast){
if (img.depth() == 32) {
register uchar * r(img.bits());
register uchar * g(img.bits() + 1);
register uchar * b(img.bits() + 2);
uchar * r(img.bits());
uchar * g(img.bits() + 1);
uchar * b(img.bits() + 2);

uchar * end(img.bits() + img.numBytes());

@@ -2161,11 +2161,11 @@ TQImage& KImageEffect::toGray(TQImage &img, bool fast)
{
for (int i = 0; i < img.numColors(); i++)
{
register uint r = tqRed(img.color(i));
register uint g = tqGreen(img.color(i));
register uint b = tqBlue(img.color(i));
uint r = tqRed(img.color(i));
uint g = tqGreen(img.color(i));
uint b = tqBlue(img.color(i));

register uint gray = (((r + g) >> 1) + b) >> 1;
uint gray = (((r + g) >> 1) + b) >> 1;
img.setColor(i, tqRgba(gray, gray, gray, tqAlpha(img.color(i))));
}
}
@@ -2408,10 +2408,10 @@ bool KImageEffect::blend(

output = lower.copy();

register uchar *i, *o;
register int a;
register int col;
register int w = upper.width();
uchar *i, *o;
int a;
int col;
int w = upper.width();
int row(upper.height() - 1);

do {
@@ -2490,10 +2490,10 @@ bool KImageEffect::blend(
// output.setAlphaBuffer(true); // I should do some benchmarks to see if
// this is worth the effort

register TQRgb *i, *o, *b;
TQRgb *i, *o, *b;

register int a;
register int j,k;
int a;
int j,k;
for (j=0; j<ch; j++)
{
b=reinterpret_cast<TQRgb *>(&const_cast<TQImage&>(lower).scanLine(y+j) [ (x+cw) << 2 ]);
@@ -2549,9 +2549,9 @@ bool KImageEffect::blendOnLower(
if ( cw <= 0 || ch <= 0 ) return true;
}

register uchar *i, *b;
register int a;
register int k;
uchar *i, *b;
int a;
int k;

for (int j=0; j<ch; j++)
{
@@ -3102,7 +3102,7 @@ unsigned int KImageEffect::generateNoise(unsigned int pixel,
}
case PoissonNoise:
{
register int
int
i;

for (i=0; alpha > exp(-SigmaPoisson*pixel); i++)
@@ -3709,7 +3709,7 @@ void KImageEffect::normalize(TQImage &image)
TQ_INT64 number_pixels;
int x, y;
unsigned int *p, *q;
register long i;
long i;
unsigned long threshold_intensity;
unsigned char r, g, b, a;

@@ -4016,7 +4016,7 @@ TQImage KImageEffect::edge(TQImage &image, double radius)
{
double *kernel;
int width;
register long i;
long i;
TQImage dest;

if(radius == 50.0){
@@ -4054,7 +4054,7 @@ TQImage KImageEffect::emboss(TQImage &image, double radius, double sigma)
{
double alpha, *kernel;
int j, width;
register long i, u, v;
long i, u, v;
TQImage dest;

if(sigma == 0.0){
@@ -4099,10 +4099,10 @@ void KImageEffect::blurScanLine(double *kernel, int width,
unsigned int *src, unsigned int *dest,
int columns)
{
register double *p;
double *p;
unsigned int *q;
register int x;
register long i;
int x;
long i;
double red, green, blue, alpha;
double scale = 0.0;

@@ -4239,7 +4239,7 @@ int KImageEffect::getBlurKernel(int width, double sigma, double **kernel)
{
#define KernelRank 3
double alpha, normalize;
register long i;
long i;
int bias;

assert(sigma != 0.0);
@@ -4352,8 +4352,8 @@ bool KImageEffect::convolveImage(TQImage *image, TQImage *dest,
long width;
double red, green, blue, alpha;
double normalize, *normal_kernel;
register const double *k;
register unsigned int *q;
const double *k;
unsigned int *q;
int x, y, mx, my, sx, sy;
long i;
int mcx, mcy;
@@ -4425,7 +4425,7 @@ int KImageEffect::getOptimalKernelWidth(double radius, double sigma)
{
double normalize, value;
long width;
register long u;
long u;

assert(sigma != 0.0);
if(radius > 0.0)
@@ -4453,7 +4453,7 @@ TQImage KImageEffect::sharpen(TQImage &image, double radius, double sigma)
{
double alpha, normalize, *kernel;
int width;
register long i, u, v;
long i, u, v;
TQImage dest;

if(sigma == 0.0){
@@ -4957,12 +4957,12 @@ TQImage KImageEffect::convertToPremultipliedAlpha(TQImage input) {
int w = alphaImage.width();
int h = alphaImage.height();

register int r;
register int g;
register int b;
register int a;
register float alpha_adjust;
register TQRgb l;
int r;
int g;
int b;
int a;
float alpha_adjust;
TQRgb l;
TQRgb *ls;
for (int y = 0; y < h; ++y) {
ls = (TQRgb *)alphaImage.scanLine( y );


+ 1
- 1
tdefx/kpixmap.cpp View File

@@ -34,7 +34,7 @@
// Based on Qt's image conversion functions
static bool kdither_32_to_8( const TQImage *src, TQImage *dst )
{
// register QRgb *p;
// TQRgb *p;
uchar *b;
int y;


+ 4
- 4
tdefx/kpixmapeffect.cpp View File

@@ -30,15 +30,15 @@ KPixmap& KPixmapEffect::gradient(KPixmap &pixmap, const TQColor &ca,
int rDiff, gDiff, bDiff;
int rca, gca, bca /*, rcb, gcb, bcb*/;

register int x, y;
int x, y;

rDiff = (/*rcb = */ cb.red()) - (rca = ca.red());
gDiff = (/*gcb = */ cb.green()) - (gca = ca.green());
bDiff = (/*bcb = */ cb.blue()) - (bca = ca.blue());

register int rl = rca << 16;
register int gl = gca << 16;
register int bl = bca << 16;
int rl = rca << 16;
int gl = gca << 16;
int bl = bca << 16;

int rcdelta = ((1<<16) / (eff == VerticalGradient ? pixmap.height() : pixmap.width())) * rDiff;
int gcdelta = ((1<<16) / (eff == VerticalGradient ? pixmap.height() : pixmap.width())) * gDiff;


+ 10
- 10
tdefx/tdestyle.cpp View File

@@ -2031,11 +2031,11 @@ void TransparencyHandler::rightShadow(TQImage& dst)
// blend top-right corner.
int pixels = dst.width() * dst.height();
#ifdef WORDS_BIGENDIAN
register unsigned char* data = dst.bits() + 1; // Skip alpha
unsigned char* data = dst.bits() + 1; // Skip alpha
#else
register unsigned char* data = dst.bits(); // Skip alpha
unsigned char* data = dst.bits(); // Skip alpha
#endif
for(register int i = 0; i < 16; i++) {
for(int i = 0; i < 16; i++) {
if (have_composite) {
data++;
data++;
@@ -2051,8 +2051,8 @@ void TransparencyHandler::rightShadow(TQImage& dst)
}

pixels -= 32; // tint right strip without rounded edges.
register int c = 0;
for(register int i = 0; i < pixels; i++) {
int c = 0;
for(int i = 0; i < pixels; i++) {
if (have_composite) {
data++;
data++;
@@ -2070,7 +2070,7 @@ void TransparencyHandler::rightShadow(TQImage& dst)
}

// tint bottom edge
for(register int i = 0; i < 16; i++) {
for(int i = 0; i < 16; i++) {
if (have_composite) {
data++;
data++;
@@ -2099,15 +2099,15 @@ void TransparencyHandler::bottomShadow(TQImage& dst)
double* corner = const_cast<double*>(bottom_left_corner);

#ifdef WORDS_BIGENDIAN
register unsigned char* data = dst.bits() + 1; // Skip alpha
unsigned char* data = dst.bits() + 1; // Skip alpha
#else
register unsigned char* data = dst.bits(); // Skip alpha
unsigned char* data = dst.bits(); // Skip alpha
#endif

for(int y = 0; y < 4; y++)
{
// Bottom-left Corner
for(register int x = 0; x < 4; x++) {
for(int x = 0; x < 4; x++) {
if (have_composite) {
data++;
data++;
@@ -2124,7 +2124,7 @@ void TransparencyHandler::bottomShadow(TQImage& dst)
}

// Scanline
for(register int x = 0; x < width; x++) {
for(int x = 0; x < width; x++) {
if (have_composite) {
data++;
data++;


+ 7
- 7
tdehtml/css/cssproperties.c View File

@@ -39,7 +39,7 @@ struct props {
int id;
};

static const struct props * findProp (register const char *str, register unsigned int len);
static const struct props * findProp (register const char *str, unsigned int len);
/* maximum key range = 469, duplicates = 0 */

#ifdef __GNUC__
@@ -50,7 +50,7 @@ inline
#endif
#endif
static unsigned int
hash_prop (register const char *str, register unsigned int len)
hash_prop (register const char *str, unsigned int len)
{
static const unsigned short asso_values[] =
{
@@ -81,7 +81,7 @@ hash_prop (register const char *str, register unsigned int len)
472, 472, 472, 472, 472, 472, 472, 472, 472, 472,
472, 472, 472, 472, 472, 472
};
register int hval = len;
int hval = len;

switch (hval)
{
@@ -189,7 +189,7 @@ hash_prop (register const char *str, register unsigned int len)
__inline
#endif
const struct props *
findProp (register const char *str, register unsigned int len)
findProp (register const char *str, unsigned int len)
{
enum
{
@@ -516,15 +516,15 @@ findProp (register const char *str, register unsigned int len)

if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
{
register int key = hash_prop (str, len);
int key = hash_prop (str, len);

if (key <= MAX_HASH_VALUE && key >= 0)
{
register int index = lookup[key];
int index = lookup[key];

if (index >= 0)
{
register const char *s = wordlist_prop[index].name;
const char *s = wordlist_prop[index].name;

if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
return &wordlist_prop[index];


+ 7
- 7
tdehtml/css/cssvalues.c View File

@@ -39,7 +39,7 @@ struct css_value {
int id;
};

static const css_value* findValue (register const char *str, register unsigned int len);
static const css_value* findValue (register const char *str, unsigned int len);
/* maximum key range = 2876, duplicates = 0 */

#ifdef __GNUC__
@@ -50,7 +50,7 @@ inline
#endif
#endif
static unsigned int
hash_val (register const char *str, register unsigned int len)
hash_val (register const char *str, unsigned int len)
{
static const unsigned short asso_values[] =
{
@@ -81,7 +81,7 @@ hash_val (register const char *str, register unsigned int len)
2876, 2876, 2876, 2876, 2876, 2876, 2876, 2876, 2876, 2876,
2876, 2876, 2876, 2876, 2876, 2876, 2876
};
register int hval = 0;
int hval = 0;

switch (len)
{
@@ -177,7 +177,7 @@ hash_val (register const char *str, register unsigned int len)
__inline
#endif
const struct css_value *
findValue (register const char *str, register unsigned int len)
findValue (register const char *str, unsigned int len)
{
enum
{
@@ -1036,15 +1036,15 @@ findValue (register const char *str, register unsigned int len)

if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
{
register int key = hash_val (str, len);
int key = hash_val (str, len);

if (key <= MAX_HASH_VALUE && key >= 0)
{
register int index = lookup[key];
int index = lookup[key];

if (index >= 0)
{
register const char *s = wordlist_value[index].name;
const char *s = wordlist_value[index].name;

if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
return &wordlist_value[index];


+ 1
- 1
tdehtml/css/makeprop View File

@@ -23,7 +23,7 @@
#
grep "^[^\#]" cssproperties.in > cssproperties.strip

echo -e '%{\n/* This file is automatically generated from cssproperties.in by makeprop, do not edit */\n/* Copyright 1999 W. Bastian */\n#include "cssproperties.h"\n%}\nstruct props {\n const char *name;\n int id;\n};\n\nstatic const struct props * findProp (register const char *str, register unsigned int len);\n\n%%' > cssproperties.gperf
echo -e '%{\n/* This file is automatically generated from cssproperties.in by makeprop, do not edit */\n/* Copyright 1999 W. Bastian */\n#include "cssproperties.h"\n%}\nstruct props {\n const char *name;\n int id;\n};\n\nstatic const struct props * findProp (register const char *str, unsigned int len);\n\n%%' > cssproperties.gperf
cat cssproperties.strip | awk '{ do { prop = $0; gsub("-", "_"); print prop ", CSS_PROP_" toupper($0) } while (getline) }' >> cssproperties.gperf
echo '%%' >> cssproperties.gperf
echo -e '/* This file is automatically generated from cssproperties.in by makeprop, do not edit */\n/* Copyright 1998 W. Bastian */\n\n#ifndef CSSPROPERTIES_H\n#define CSSPROPERTIES_H\n\nDOM::DOMString getPropertyName(unsigned short id) KDE_NO_EXPORT;\n' > cssproperties.h


+ 1
- 1
tdehtml/css/makevalues View File

@@ -24,7 +24,7 @@
#
grep "^[^\#]" cssvalues.in > cssvalues.strip

echo -e '%{\n/* This file is automatically generated from cssvalues.in by makevalues, do not edit */\n/* Copyright 1999 W. Bastian */\n#include "cssvalues.h"\n%}\nstruct css_value {\n const char *name;\n int id;\n};\n\nstatic const css_value* findValue (register const char *str, register unsigned int len);\n\n%%' > cssvalues.gperf
echo -e '%{\n/* This file is automatically generated from cssvalues.in by makevalues, do not edit */\n/* Copyright 1999 W. Bastian */\n#include "cssvalues.h"\n%}\nstruct css_value {\n const char *name;\n int id;\n};\n\nstatic const css_value* findValue (register const char *str, unsigned int len);\n\n%%' > cssvalues.gperf
cat cssvalues.strip | awk '{ do { prop = $0; gsub("-", "_"); print prop ", CSS_VAL_" toupper($0) } while (getline) }' >> cssvalues.gperf
echo '%%' >> cssvalues.gperf
echo -e '/* This file is automatically generated from cssvalues.in by


+ 8
- 8
tdehtml/css/parser.cpp View File

@@ -385,7 +385,7 @@ union yyalloc
# define YYCOPY(To, From, Count) \
do \
{ \
register YYSIZE_T yyi; \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
@@ -1122,7 +1122,7 @@ yystrlen (yystr)
const char *yystr;
# endif
{
register const char *yys = yystr;
const char *yys = yystr;

while (*yys++ != '\0')
continue;
@@ -1147,8 +1147,8 @@ yystpcpy (yydest, yysrc)
const char *yysrc;
# endif
{
register char *yyd = yydest;
register const char *yys = yysrc;
char *yyd = yydest;
const char *yys = yysrc;

while ((*yyd++ = *yys++) != '\0')
continue;
@@ -1338,8 +1338,8 @@ YYSTYPE yylval;
/* Number of syntax errors so far. */
int yynerrs;

register int yystate;
register int yyn;
int yystate;
int yyn;
int yyresult;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus;
@@ -1357,12 +1357,12 @@ int yynerrs;
/* The state stack. */
short int yyssa[YYINITDEPTH];
short int *yyss = yyssa;
register short int *yyssp;
short int *yyssp;

/* The semantic value stack. */
YYSTYPE yyvsa[YYINITDEPTH];
YYSTYPE *yyvs = yyvsa;
register YYSTYPE *yyvsp;
YYSTYPE *yyvsp;





+ 4
- 4
tdehtml/css/tokenizer.cpp View File

@@ -592,9 +592,9 @@ static yyconst short int yy_chk[1695] =

YY_DECL
{
register yy_state_type yy_current_state;
register unsigned short *yy_cp, *yy_bp;
register int yy_act;
yy_state_type yy_current_state;
unsigned short *yy_cp, *yy_bp;
int yy_act;

#line 25 "tokenizer.flex"

@@ -617,7 +617,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;


+ 5
- 5
tdehtml/html/doctypes.cpp View File

@@ -51,7 +51,7 @@ inline
#endif
#endif
static unsigned int
hash (register const char *str, register unsigned int len)
hash (register const char *str, unsigned int len)
{
static const unsigned short asso_values[] =
{
@@ -82,7 +82,7 @@ hash (register const char *str, register unsigned int len)
731, 731, 731, 731, 731, 731, 731, 731, 731, 731,
731, 731, 731, 731, 731, 731
};
register int hval = len;
int hval = len;

switch (hval)
{
@@ -334,7 +334,7 @@ hash (register const char *str, register unsigned int len)
__inline
#endif
const struct PubIDInfo *
findDoctypeEntry (register const char *str, register unsigned int len)
findDoctypeEntry (register const char *str, unsigned int len)
{
enum
{
@@ -1160,11 +1160,11 @@ findDoctypeEntry (register const char *str, register unsigned int len)

if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
{
register int key = hash (str, len);
int key = hash (str, len);

if (key <= MAX_HASH_VALUE && key >= 0)
{
register const char *s = wordlist[key].name;
const char *s = wordlist[key].name;

if (*str == *s && !strcmp (str + 1, s + 1))
return &wordlist[key];


+ 6
- 6
tdehtml/misc/htmlattrs.c View File

@@ -57,7 +57,7 @@ inline
#endif
#endif
static unsigned int
hash_attr (register const char *str, register unsigned int len)
hash_attr (register const char *str, unsigned int len)
{
static const unsigned short asso_values[] =
{
@@ -88,7 +88,7 @@ hash_attr (register const char *str, register unsigned int len)
577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
577, 577, 577, 577, 577, 577, 577