summaryrefslogtreecommitdiffstats
path: root/libtdepim
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:36 +0900
commit90c6a46c9c8d9d18e74302fa43b80ef77ce48f93 (patch)
tree7ad483a05ee27cd86b26d2461951f20ef21d5f77 /libtdepim
parentdcbadd8017836649a71783b3a2d8162b8d227d4a (diff)
downloadtdepim-90c6a46c9c8d9d18e74302fa43b80ef77ce48f93.tar.gz
tdepim-90c6a46c9c8d9d18e74302fa43b80ef77ce48f93.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'libtdepim')
-rw-r--r--libtdepim/kxface.cpp64
-rw-r--r--libtdepim/kxface.h16
2 files changed, 40 insertions, 40 deletions
diff --git a/libtdepim/kxface.cpp b/libtdepim/kxface.cpp
index 210fefb5f..3363851c7 100644
--- a/libtdepim/kxface.cpp
+++ b/libtdepim/kxface.cpp
@@ -191,10 +191,10 @@ void KXFace::BigPush(Prob *p)
BigAdd(tmp + p->p_offset);
}
-int KXFace::BigPop(register const Prob *p)
+int KXFace::BigPop(const Prob *p)
{
static unsigned char tmp;
- register int i;
+ int i;
BigDiv(0, &tmp);
i = 0;
@@ -212,11 +212,11 @@ int KXFace::BigPop(register const Prob *p)
/* Divide B by a storing the result in B and the remainder in the word
* pointer to by r
*/
-void KXFace::BigDiv(register unsigned char a, register unsigned char *r)
+void KXFace::BigDiv(unsigned char a, unsigned char *r)
{
- register int i;
- register unsigned char *w;
- register COMP c, d;
+ int i;
+ unsigned char *w;
+ COMP c, d;
a &= WORDMASK;
if ((a == 1) || (B.b_words == 0))
@@ -254,11 +254,11 @@ void KXFace::BigDiv(register unsigned char a, register unsigned char *r)
/* Multiply a by B storing the result in B
*/
-void KXFace::BigMul(register unsigned char a)
+void KXFace::BigMul(unsigned char a)
{
- register int i;
- register unsigned char *w;
- register COMP c;
+ int i;
+ unsigned char *w;
+ COMP c;
a &= WORDMASK;
if ((a == 1) || (B.b_words == 0))
@@ -297,9 +297,9 @@ void KXFace::BigMul(register unsigned char a)
*/
void KXFace::BigAdd(unsigned char a)
{
- register int i;
- register unsigned char *w;
- register COMP c;
+ int i;
+ unsigned char *w;
+ COMP c;
a &= WORDMASK;
if (a == 0)
@@ -329,8 +329,8 @@ void KXFace::BigClear()
TQCString KXFace::WriteFace()
{
- register char *s;
- register int i, j, bits, digits, words;
+ char *s;
+ int i, j, bits, digits, words;
int digsperword = DIGSPERWORD;
int wordsperline = WORDSPERLINE;
TQCString t( "#define noname_width 48\n#define noname_height 48\nstatic char noname_bits[] = {\n " );
@@ -379,7 +379,7 @@ TQCString KXFace::WriteFace()
void KXFace::UnCompAll(char *fbuf)
{
- register char *p;
+ char *p;
BigClear();
BigRead(fbuf);
@@ -418,12 +418,12 @@ void KXFace::UnCompress(char *f, int wid, int hei, int lev)
}
}
-void KXFace::BigWrite(register char *fbuf)
+void KXFace::BigWrite(char *fbuf)
{
static unsigned char tmp;
static char buf[DIGITS];
- register char *s;
- register int i;
+ char *s;
+ int i;
s = buf;
while (B.b_words > 0)
@@ -449,9 +449,9 @@ void KXFace::BigWrite(register char *fbuf)
*(fbuf++) = '\0';
}
-void KXFace::BigRead(register char *fbuf)
+void KXFace::BigRead(char *fbuf)
{
- register int c;
+ int c;
while (*fbuf != '\0')
{
@@ -465,8 +465,8 @@ void KXFace::BigRead(register char *fbuf)
void KXFace::ReadFace(char *fbuf)
{
- register int c, i;
- register char *s, *t;
+ int c, i;
+ char *s, *t;
t = s = fbuf;
for(i = strlen(s); i > 0; i--)
@@ -521,9 +521,9 @@ void KXFace::ReadFace(char *fbuf)
void KXFace::GenFace()
{
static char newp[PIXELS];
- register char *f1;
- register char *f2;
- register int i;
+ char *f1;
+ char *f2;
+ int i;
f1 = newp;
f2 = F;
@@ -539,9 +539,9 @@ void KXFace::UnGenFace()
}
// static
-void KXFace::Gen(register char *f)
+void KXFace::Gen(char *f)
{
- register int m, l, k, j, i, h;
+ int m, l, k, j, i, h;
for (j = 0; j < HEIGHT; j++)
{
@@ -649,7 +649,7 @@ void KXFace::CompAll(char *fbuf)
BigWrite(fbuf);
}
-void KXFace::Compress(register char *f, register int wid, register int hei, register int lev)
+void KXFace::Compress(char *f, int wid, int hei, int lev)
{
if (AllWhite(f, wid, hei))
{
@@ -691,10 +691,10 @@ int KXFace::AllBlack(char *f, int wid, int hei)
return (*f || *(f + 1) || *(f + WIDTH) || *(f + WIDTH + 1));
}
-int KXFace::Same(register char *f, register int wid, register int hei)
+int KXFace::Same(char *f, int wid, int hei)
{
- register char val, *row;
- register int x;
+ char val, *row;
+ int x;
val = *f;
while (hei--)
diff --git a/libtdepim/kxface.h b/libtdepim/kxface.h
index 85d3d9fa7..d6a235d8a 100644
--- a/libtdepim/kxface.h
+++ b/libtdepim/kxface.h
@@ -566,26 +566,26 @@ namespace KPIM {
void RevPush(const Prob *p);
void BigPush(Prob *p);
int BigPop(register const Prob *p);
- void BigDiv(register unsigned char a, register unsigned char *r);
- void BigMul(register unsigned char a);
+ void BigDiv(unsigned char a, unsigned char *r);
+ void BigMul(unsigned char a);
void BigAdd(unsigned char a);
void BigClear();
TQCString WriteFace();
void UnCompAll(char *fbuf);
- void UnCompress(register char *f, register int wid, register int hei, register int lev);
- void BigWrite(register char *fbuf);
- void BigRead(register char *fbuf);
+ void UnCompress(char *f, int wid, int hei, int lev);
+ void BigWrite(char *fbuf);
+ void BigRead(char *fbuf);
void ReadFace(char *fbuf);
void GenFace();
void UnGenFace();
- void Gen(register char *f);
+ void Gen(char *f);
void PopGreys(char *f, int wid, int hei);
void CompAll(char *fbuf);
- void Compress(register char *f, register int wid, register int hei, register int lev);
+ void Compress(char *f, int wid, int hei, int lev);
int AllWhite(char *f, int wid, int hei);
int AllBlack(char *f, int wid, int hei);
- int Same(register char *f, register int wid, register int hei);
+ int Same(char *f, int wid, int hei);
void PushGreys(char *f, int wid, int hei);