|
|
@ -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); \
|
|
|
|