From e5dc5b5be9900b9c8b2d7988216d56156c806b20 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 20:17:52 +0900 Subject: Removed explicit usage of the 'register' keyword. Signed-off-by: Michele Calgaro --- kexi/3rdparty/kexisql3/src/func.c | 2 +- kexi/3rdparty/kexisql3/src/md5.c | 2 +- kexi/3rdparty/kexisql3/src/printf.c | 8 ++++---- kexi/3rdparty/kexisql3/src/util.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'kexi/3rdparty/kexisql3/src') diff --git a/kexi/3rdparty/kexisql3/src/func.c b/kexi/3rdparty/kexisql3/src/func.c index 9917f4e2..3f78c59d 100644 --- a/kexi/3rdparty/kexisql3/src/func.c +++ b/kexi/3rdparty/kexisql3/src/func.c @@ -363,7 +363,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; diff --git a/kexi/3rdparty/kexisql3/src/md5.c b/kexi/3rdparty/kexisql3/src/md5.c index 32fcb6b6..a527b256 100644 --- a/kexi/3rdparty/kexisql3/src/md5.c +++ b/kexi/3rdparty/kexisql3/src/md5.c @@ -81,7 +81,7 @@ static void byteReverse (unsigned char *buf, unsigned longs){ * the data and converts bytes into longwords for this routine. */ static void MD5Transform(uint32 buf[4], const uint32 in[16]){ - register uint32 a, b, c, d; + uint32 a, b, c, d; a = buf[0]; b = buf[1]; diff --git a/kexi/3rdparty/kexisql3/src/printf.c b/kexi/3rdparty/kexisql3/src/printf.c index a669eb8d..a980e79c 100644 --- a/kexi/3rdparty/kexisql3/src/printf.c +++ b/kexi/3rdparty/kexisql3/src/printf.c @@ -397,8 +397,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 */ @@ -659,7 +659,7 @@ static int vxprintf( ** the output. */ if( !flag_leftjustify ){ - register int nspace; + int nspace; nspace = width-length; if( nspace>0 ){ count += nspace; @@ -675,7 +675,7 @@ static int vxprintf( count += length; } if( flag_leftjustify ){ - register int nspace; + int nspace; nspace = width-length; if( nspace>0 ){ count += nspace; diff --git a/kexi/3rdparty/kexisql3/src/util.c b/kexi/3rdparty/kexisql3/src/util.c index 0bbcb019..dd01a1c7 100644 --- a/kexi/3rdparty/kexisql3/src/util.c +++ b/kexi/3rdparty/kexisql3/src/util.c @@ -545,14 +545,14 @@ const unsigned char sqlite3UpperToLower[] = { ** there is no consistency, we will define our own. */ 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]; } 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++; } -- cgit v1.2.1