Browse Source

Removed explicit usage of the 'register' keyword.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/4/head
Michele Calgaro 1 year ago
parent
commit
5d8b924a62
Signed by: MicheleC GPG Key ID: 2A75B7CA8ADED5CF
4 changed files with 12 additions and 12 deletions
  1. +3
    -3
      kpat/freecell-solver/alloc.h
  2. +4
    -4
      kpat/freecell-solver/lookup2.c
  3. +3
    -3
      kpat/freecell-solver/lookup2.h
  4. +2
    -2
      ksame/StoneField.cpp

+ 3
- 3
kpat/freecell-solver/alloc.h View File

@ -35,7 +35,7 @@ extern char *
#else
#define fcs_compact_alloc_into_var(result,allocator_orig,what_t) \
{ \
register fcs_compact_allocator_t * allocator = (allocator_orig); \
fcs_compact_allocator_t * allocator = (allocator_orig); \
if (allocator->max_ptr - allocator->ptr < sizeof(what_t)) \
{ \
freecell_solver_compact_allocator_extend(allocator); \
@ -47,8 +47,8 @@ extern char *
#define fcs_compact_alloc_typed_ptr_into_var(result, type_t, allocator_orig, how_much_orig) \
{ \
register fcs_compact_allocator_t * allocator = (allocator_orig); \
register int how_much = (how_much_orig); \
fcs_compact_allocator_t * allocator = (allocator_orig); \
int how_much = (how_much_orig); \
if (allocator->max_ptr - allocator->ptr < how_much) \
{ \
freecell_solver_compact_allocator_extend(allocator); \


+ 4
- 4
kpat/freecell-solver/lookup2.c View File

@ -73,12 +73,12 @@ mix() was built out of 36 single-cycle latency instructions in a
*/
ub4 freecell_solver_lookup2_hash_function(
register ub1 *k, /* the key */
register ub4 length, /* the length of the key */
register ub4 initval /* the previous hash, or an arbitrary value */
ub1 *k, /* the key */
ub4 length, /* the length of the key */
ub4 initval /* the previous hash, or an arbitrary value */
)
{
register ub4 a,b,c,len;
ub4 a,b,c,len;
/* Set up the internal state */
len = length;


+ 3
- 3
kpat/freecell-solver/lookup2.h View File

@ -5,9 +5,9 @@ typedef unsigned long int ub4; /* unsigned 4-byte quantities */
typedef unsigned char ub1;
ub4 freecell_solver_lookup2_hash_function(
register ub1 *k, /* the key */
register ub4 length, /* the length of the key */
register ub4 initval /* the previous hash, or an arbitrary value */
ub1 *k, /* the key */
ub4 length, /* the length of the key */
ub4 initval /* the previous hash, or an arbitrary value */
);
#endif /* FC_SOLVE__LOOKUP2_H */

+ 2
- 2
ksame/StoneField.cpp View File

@ -329,8 +329,8 @@ StoneField::undo(int count) {
bool
StoneField::isGameover() const {
register int i=maxstone-1;;
register unsigned char color;
int i=maxstone-1;;
unsigned char color;
if (gameover>=0) return (bool)gameover;
// kdDebug() << "-->gameover" << endl;


Loading…
Cancel
Save