mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
Merge pull request #227 from smcv/old-style-declaration
Don't use mostly obsolete 'register' keyword (Merge or get off the pot.)
This commit is contained in:
commit
bf3c88dcc1
6 changed files with 10 additions and 10 deletions
|
@ -548,7 +548,7 @@ void PC_PrintDefineHashTable(define_t **definehash)
|
|||
|
||||
int PC_NameHash(char *name)
|
||||
{
|
||||
int register hash, i;
|
||||
int hash, i;
|
||||
|
||||
hash = 0;
|
||||
for (i = 0; name[i] != '\0'; i++)
|
||||
|
|
|
@ -53,10 +53,10 @@ static void swapfunc(char *, char *, int, int);
|
|||
*/
|
||||
#define swapcode(TYPE, parmi, parmj, n) { \
|
||||
long i = (n) / sizeof (TYPE); \
|
||||
register TYPE *pi = (TYPE *) (parmi); \
|
||||
register TYPE *pj = (TYPE *) (parmj); \
|
||||
TYPE *pi = (TYPE *) (parmi); \
|
||||
TYPE *pj = (TYPE *) (parmj); \
|
||||
do { \
|
||||
register TYPE t = *pi; \
|
||||
TYPE t = *pi; \
|
||||
*pi++ = *pj; \
|
||||
*pj++ = t; \
|
||||
} while (--i > 0); \
|
||||
|
|
|
@ -78,7 +78,7 @@ static void MD5Init(struct MD5Context *ctx)
|
|||
static void MD5Transform(uint32_t buf[4],
|
||||
uint32_t const in[16])
|
||||
{
|
||||
register uint32_t a, b, c, d;
|
||||
uint32_t a, b, c, d;
|
||||
|
||||
a = buf[0];
|
||||
b = buf[1];
|
||||
|
|
|
@ -317,8 +317,8 @@ locals from sp
|
|||
|
||||
int VM_CallInterpreted( vm_t *vm, int *args ) {
|
||||
byte stack[OPSTACK_SIZE + 15];
|
||||
register int *opStack;
|
||||
register uint8_t opStackOfs;
|
||||
int *opStack;
|
||||
uint8_t opStackOfs;
|
||||
int programCounter;
|
||||
int programStack;
|
||||
int stackOnEntry;
|
||||
|
|
|
@ -563,8 +563,8 @@ static void VectorArrayNormalize(vec4_t *normals, unsigned int count)
|
|||
|
||||
#if idppc
|
||||
{
|
||||
register float half = 0.5;
|
||||
register float one = 1.0;
|
||||
float half = 0.5;
|
||||
float one = 1.0;
|
||||
float *components = (float *)normals;
|
||||
|
||||
// Vanilla PPC code, but since PPC has a reciprocal square root estimate instruction,
|
||||
|
|
|
@ -4366,7 +4366,7 @@ typedef struct keywordHash_s
|
|||
} keywordHash_t;
|
||||
|
||||
int KeywordHash_Key(char *keyword) {
|
||||
int register hash, i;
|
||||
int hash, i;
|
||||
|
||||
hash = 0;
|
||||
for (i = 0; keyword[i] != '\0'; i++) {
|
||||
|
|
Loading…
Reference in a new issue