summaryrefslogtreecommitdiffstats
path: root/kscd
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:37 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:37 +0900
commit6db8697910438fd063598f66a73b68d2dcd70a36 (patch)
tree17ad616e4add01128162bad2e8b2aec21ebd18de /kscd
parentc1ac60f0fc2ba193f7219d25d727dec4fc97fd1b (diff)
downloadtdemultimedia-6db8697910438fd063598f66a73b68d2dcd70a36.tar.gz
tdemultimedia-6db8697910438fd063598f66a73b68d2dcd70a36.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kscd')
-rw-r--r--kscd/cddaslave.c4
-rw-r--r--kscd/kscdmagic/core.cpp4
-rw-r--r--kscd/kscdmagic/xlib.c2
-rw-r--r--kscd/kscdmagic/xlibwrap.cpp18
-rw-r--r--kscd/libwm/cddaslave.c4
-rw-r--r--kscd/libwm/plat_sun.c2
6 files changed, 17 insertions, 17 deletions
diff --git a/kscd/cddaslave.c b/kscd/cddaslave.c
index 6b65c640..685023e8 100644
--- a/kscd/cddaslave.c
+++ b/kscd/cddaslave.c
@@ -258,8 +258,8 @@ wmcdda_transform(unsigned char *rawbuf, long buflen, struct cdda_block *block)
{
long i;
long *buf32 = (long *)rawbuf;
- register short *buf16 = (short *)rawbuf;
- register int aval;
+ short *buf16 = (short *)rawbuf;
+ int aval;
/*
* Loudness transformation. Basically this is a self-adjusting
diff --git a/kscd/kscdmagic/core.cpp b/kscd/kscdmagic/core.cpp
index 937ac8b9..1b03534f 100644
--- a/kscd/kscdmagic/core.cpp
+++ b/kscd/kscdmagic/core.cpp
@@ -116,7 +116,7 @@ inline void addPixelFast(unsigned char *p,int br1,int br2) {
}
void fadeFade() {
- register unsigned long *ptr = (unsigned long*)ucoutput;
+ unsigned long *ptr = (unsigned long*)ucoutput;
int i = outWidth*outHeight*2/4;
do {
//Bytewize version was: *(ptr++) -= *ptr+(*ptr>>1)>>4;
@@ -322,7 +322,7 @@ int coreGo() {
// Asger Alstrupt's optimized 32 bit fade
// (alstrup@diku.dk)
- /*register unsigned long *ptr = (unsigned long*)output;
+ /*unsigned long *ptr = (unsigned long*)output;
i = outWidth*outHeight*2/4;
do {
//Bytewize version was: *(ptr++) -= *ptr+(*ptr>>1)>>4;
diff --git a/kscd/kscdmagic/xlib.c b/kscd/kscdmagic/xlib.c
index b28a0650..115b89ac 100644
--- a/kscd/kscdmagic/xlib.c
+++ b/kscd/kscdmagic/xlib.c
@@ -141,7 +141,7 @@ void draw_screen(xdisplay * d)
#ifdef MITSHM
int alloc_shm_image(xdisplay * new)
{
- register char *ptr;
+ char *ptr;
int temp, size = 0, i;
ptr = DisplayString(new->display);
if (!ptr || (*ptr == ':') || !strncmp(ptr, "localhost:", 10) ||
diff --git a/kscd/kscdmagic/xlibwrap.cpp b/kscd/kscdmagic/xlibwrap.cpp
index d885c727..e0ff74ba 100644
--- a/kscd/kscdmagic/xlibwrap.cpp
+++ b/kscd/kscdmagic/xlibwrap.cpp
@@ -138,24 +138,24 @@ void inputUpdate(int &mouseX,int &mouseY,int &mouseButtons,char &keyHit) {
}
void screenShow(void) {
- register unsigned long *ptr2 = (unsigned long*)ucoutput;
+ unsigned long *ptr2 = (unsigned long*)ucoutput;
unsigned long *ptr1 = (unsigned long*)d->back;
int i = outWidth*outHeight/4;
if (lowColor)
do {
- register unsigned int const r1 = *(ptr2++);
- register unsigned int const r2 = *(ptr2++);
+ unsigned int const r1 = *(ptr2++);
+ unsigned int const r2 = *(ptr2++);
//if (r1 || r2) {
#ifdef LITTLEENDIAN
- register unsigned int const v =
+ unsigned int const v =
mapping[((r1&0xe0ul)>>5)|((r1&0xe000ul)>>10)]
|mapping[((r1&0xe00000ul)>>21)|((r1&0xe0000000ul)>>26)]*256U;
*(ptr1++) = v |
mapping[((r2&0xe0ul)>>5)|((r2&0xe000ul)>>10)]*65536U
|mapping[((r2&0xe00000ul)>>21)|((r2&0xe0000000ul)>>26)]*16777216U;
#else
- register unsigned int const v =
+ unsigned int const v =
mapping[((r2&0xe0ul)>>5)|((r2&0xe000ul)>>10)]
|mapping[((r2&0xe00000ul)>>21)|((r2&0xe0000000ul)>>26)]*256U;
*(ptr1++) = v |
@@ -168,12 +168,12 @@ void screenShow(void) {
do {
// Asger Alstrup Nielsen's (alstrup@diku.dk)
// optimized 32 bit screen loop
- register unsigned int const r1 = *(ptr2++);
- register unsigned int const r2 = *(ptr2++);
+ unsigned int const r1 = *(ptr2++);
+ unsigned int const r2 = *(ptr2++);
//if (r1 || r2) {
#ifdef LITTLEENDIAN
- register unsigned int const v =
+ unsigned int const v =
((r1 & 0x000000f0ul) >> 4)
| ((r1 & 0x0000f000ul) >> 8)
| ((r1 & 0x00f00000ul) >> 12)
@@ -184,7 +184,7 @@ void screenShow(void) {
| ((r2 & 0x00f00000ul) << 16 -12)
| ((r2 & 0xf0000000ul) << 16 -16);
#else
- register unsigned int const v =
+ unsigned int const v =
((r2 & 0x000000f0ul) >> 4)
| ((r2 & 0x0000f000ul) >> 8)
| ((r2 & 0x00f00000ul) >> 12)
diff --git a/kscd/libwm/cddaslave.c b/kscd/libwm/cddaslave.c
index b378f95d..35e14e0f 100644
--- a/kscd/libwm/cddaslave.c
+++ b/kscd/libwm/cddaslave.c
@@ -307,8 +307,8 @@ wmcdda_transform(unsigned char *rawbuf, long buflen, struct cdda_block *block)
{
long i;
long *buf32 = (long *)rawbuf;
- register short *buf16 = (short *)rawbuf;
- register int aval;
+ short *buf16 = (short *)rawbuf;
+ int aval;
/*
* Loudness transformation. Basically this is a self-adjusting
diff --git a/kscd/libwm/plat_sun.c b/kscd/libwm/plat_sun.c
index bb87a8e2..824da881 100644
--- a/kscd/libwm/plat_sun.c
+++ b/kscd/libwm/plat_sun.c
@@ -807,7 +807,7 @@ int internal_audio = 1;
codec_init( void )
{
- register int i;
+ int i;
char* ctlname;
audio_info_t foo;
audio_device_t aud_dev;