Removed explicit usage of the 'register' keyword.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 4 years ago
parent a42dcb06ac
commit 3c3924c909
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -616,9 +616,9 @@ class LogInfo
REQUIRE_VOID_RETURN(stmt)
#define REQUIRE_SUCCESS_RETURN_QUIET(expr) \
do { register HX_RESULT const res = expr; if (FAILED (res)) return res; } while (0)
do { HX_RESULT const res = expr; if (FAILED (res)) return res; } while (0)
#define REQUIRE_SUCCESS_RETURN(expr) \
do { register HX_RESULT const res = expr; if (FAILED (res)) { REQUIRE_REPORT("False condition, Aborting...",__FILE__,__LINE__); return res; } } while (0)
do { HX_RESULT const res = expr; if (FAILED (res)) { REQUIRE_REPORT("False condition, Aborting...",__FILE__,__LINE__); return res; } } while (0)
//
// REQUIRE_SUCCESS reports the error if an expected result failed

@ -995,8 +995,8 @@ extern "C" {
inline UINT32
HXAtomicIncRetUINT32(register UINT32* pNum)
{
register UINT32 zeroOffset = 0;
register UINT32 temp;
UINT32 zeroOffset = 0;
UINT32 temp;
asm
{
@ -1013,8 +1013,8 @@ HXAtomicIncRetUINT32(register UINT32* pNum)
inline UINT32
HXAtomicDecRetUINT32(register UINT32* pNum)
{
register UINT32 zeroOffset = 0;
register UINT32 temp;
UINT32 zeroOffset = 0;
UINT32 temp;
asm
{

@ -974,7 +974,7 @@ void PlaylistItem::imageTransparency( TQImage& image, float factor ) //static
uint *data = reinterpret_cast<unsigned int *>( image.bits() );
const int pixels = image.width() * image.height();
uint table[256];
register int c;
int c;
// Precalculate lookup table
for( int i = 0; i < 256; ++i ) {

@ -8697,8 +8697,8 @@ static int vxprintf(
}
bufpt = &buf[etBUFSIZE-1];
{
register const char *cset; /* Use registers for speed */
register int base;
const char *cset; /* Use registers for speed */
int base;
cset = &aDigits[infop->charset];
base = infop->base;
do{ /* Convert to ascii */
@ -8964,7 +8964,7 @@ static int vxprintf(
** the output.
*/
if( !flag_leftjustify ){
register int nspace;
int nspace;
nspace = width-length;
if( nspace>0 ){
count += nspace;
@ -8980,7 +8980,7 @@ static int vxprintf(
count += length;
}
if( flag_leftjustify ){
register int nspace;
int nspace;
nspace = width-length;
if( nspace>0 ){
count += nspace;
@ -10435,14 +10435,14 @@ const unsigned char sqlite3UpperToLower[] = {
** there is no consistency, we will define our own.
*/
SQLITE_PRIVATE int sqlite3StrICmp(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 UpperToLower[*a] - UpperToLower[*b];
}
SQLITE_PRIVATE int sqlite3StrNICmp(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++; }
@ -48320,7 +48320,7 @@ static int patternCompare(
const struct compareInfo *pInfo, /* Information about how to do the compare */
const int esc /* The escape character */
){
register int c;
int c;
int invert;
int seen;
int c2;

Loading…
Cancel
Save