Removed explicit usage of the 'register' keyword.

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

@ -324,8 +324,8 @@ ARITH_INL void arith_encode(struct jbg_arenc_state *s, int cx, int pix)
{ {
extern short jbg_lsz[]; extern short jbg_lsz[];
extern unsigned char jbg_nmps[], jbg_nlps[]; extern unsigned char jbg_nmps[], jbg_nlps[];
register unsigned lsz, ss; unsigned lsz, ss;
register unsigned char *st; unsigned char *st;
long temp; long temp;
#ifdef DEBUG #ifdef DEBUG
@ -437,8 +437,8 @@ ARITH_INL int arith_decode(struct jbg_ardec_state *s, int cx)
{ {
extern short jbg_lsz[]; extern short jbg_lsz[];
extern unsigned char jbg_nmps[], jbg_nlps[]; extern unsigned char jbg_nmps[], jbg_nlps[];
register unsigned lsz, ss; unsigned lsz, ss;
register unsigned char *st; unsigned char *st;
int pix; int pix;
/* renormalization */ /* renormalization */
@ -2031,8 +2031,8 @@ static size_t decode_pscd(struct jbg_dec_state *s, unsigned char *data,
unsigned int layer, plane; unsigned int layer, plane;
unsigned long hl, ll, y, hx, hy, lx, ly, hbpl, lbpl; unsigned long hl, ll, y, hx, hy, lx, ly, hbpl, lbpl;
unsigned char *hp, *lp1, *lp2, *p1, *q1; unsigned char *hp, *lp1, *lp2, *p1, *q1;
register unsigned long line_h1, line_h2, line_h3; unsigned long line_h1, line_h2, line_h3;
register unsigned long line_l1, line_l2, line_l3; unsigned long line_l1, line_l2, line_l3;
struct jbg_ardec_state *se; struct jbg_ardec_state *se;
unsigned long x; unsigned long x;
long o; long o;
@ -2978,7 +2978,7 @@ void jbg_split_planes(unsigned long x, unsigned long y, int has_planes,
unsigned k = 8; unsigned k = 8;
int p; int p;
unsigned prev; /* previous *src byte shifted by 8 bit to the left */ unsigned prev; /* previous *src byte shifted by 8 bit to the left */
register int bits, msb = has_planes - 1; int bits, msb = has_planes - 1;
int bitno; int bitno;
/* sanity checks */ /* sanity checks */

@ -201,7 +201,7 @@ PmPutRow(RowBuf,numComp,numCol,Pt)
MCU *RowBuf; MCU *RowBuf;
int numCol,Pt; int numCol,Pt;
{ {
register int col,v; int col,v;
/* /*
* Mulitply 2^Pt before output. Pt is the point * Mulitply 2^Pt before output. Pt is the point
@ -240,7 +240,7 @@ PmPutRow(RowBuf,numComp,numCol,Pt)
*-------------------------------------------------------------- *--------------------------------------------------------------
*/ */
#define PmPutRow(RowBuf,numComp,numCol,Pt) \ #define PmPutRow(RowBuf,numComp,numCol,Pt) \
{ register int col,v; \ { int col,v; \
if (numComp==1) { /*pgm*/ \ if (numComp==1) { /*pgm*/ \
for (col = 0; col < numCol; col++) { \ for (col = 0; col < numCol; col++) { \
v=RowBuf[col][0]<<Pt; \ v=RowBuf[col][0]<<Pt; \
@ -479,9 +479,9 @@ void DecodeFirstRow(dcPtr,curRowBuf)
DecompressInfo *dcPtr; DecompressInfo *dcPtr;
MCU *curRowBuf; MCU *curRowBuf;
{ {
register short curComp,ci; short curComp,ci;
register int s,col,compsInScan,numCOL; int s,col,compsInScan,numCOL;
register JpegComponentInfo *compptr; JpegComponentInfo *compptr;
int Pr,Pt,d; int Pr,Pt,d;
HuffmanTable *dctbl; HuffmanTable *dctbl;
@ -568,8 +568,8 @@ void
DecodeImage(dcPtr) DecodeImage(dcPtr)
DecompressInfo *dcPtr; DecompressInfo *dcPtr;
{ {
register int s,d,col,row; int s,d,col,row;
register short curComp, ci; short curComp, ci;
HuffmanTable *dctbl; HuffmanTable *dctbl;
JpegComponentInfo *compptr; JpegComponentInfo *compptr;
int predictor; int predictor;

@ -57,7 +57,7 @@ Predict(row,col,curComp,curRowBuf,prevRowBuf,Pr,Pt,psv,predictor)
int psv; /* predictor selection value */ int psv; /* predictor selection value */
int *predictor; /* preditor value (output) */ int *predictor; /* preditor value (output) */
{ {
register int left,upper,diag,leftcol; int left,upper,diag,leftcol;
leftcol=col-1; leftcol=col-1;
if (row==0) { if (row==0) {
@ -146,7 +146,7 @@ QuickPredict(col,curComp,curRowBuf,prevRowBuf,psv,predictor)
int psv; /* predictor selection value */ int psv; /* predictor selection value */
int *predictor; /* preditor value (output) */ int *predictor; /* preditor value (output) */
{ {
register int left,upper,diag,leftcol; int left,upper,diag,leftcol;
leftcol=col-1; leftcol=col-1;
upper=prevRowBuf[col][curComp]; upper=prevRowBuf[col][curComp];

@ -49,7 +49,7 @@
*-------------------------------------------------------------- *--------------------------------------------------------------
*/ */
#define Predict(row,col,curComp,curRowBuf,prevRowBuf,Pr,Pt,psv,predictor)\ #define Predict(row,col,curComp,curRowBuf,prevRowBuf,Pr,Pt,psv,predictor)\
{ register int left,upper,diag,leftcol; \ { int left,upper,diag,leftcol; \
\ \
leftcol=col-1; \ leftcol=col-1; \
if (row==0) { \ if (row==0) { \
@ -131,7 +131,7 @@
*-------------------------------------------------------------- *--------------------------------------------------------------
*/ */
#define QuickPredict(col,curComp,curRowBuf,prevRowBuf,psv,predictor){ \ #define QuickPredict(col,curComp,curRowBuf,prevRowBuf,psv,predictor){ \
register int left,upper,diag,leftcol; \ int left,upper,diag,leftcol; \
\ \
leftcol=col-1; \ leftcol=col-1; \
upper=prevRowBuf[col][curComp]; \ upper=prevRowBuf[col][curComp]; \

Loading…
Cancel
Save