Removed explicit usage of the 'register' keyword.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5d8b924a62)
r14.0.x
Michele Calgaro 5 years ago
parent 916053040f
commit b7b523bfbe
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

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

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

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

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

Loading…
Cancel
Save