From d15c00601eafa8bbdb1eb68f2134c16f63c10648 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 17 Jun 2011 10:19:49 +0200 Subject: [PATCH] Disable moving memory in buflib for now. --- firmware/buflib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/buflib.c b/firmware/buflib.c index c7ee1c07c..8e6808bd5 100644 --- a/firmware/buflib.c +++ b/firmware/buflib.c @@ -179,6 +179,10 @@ handle_table_shrink(struct buflib_context *ctx) static bool move_block(struct buflib_context* ctx, union buflib_data* block, int shift) { +#if 1 /* moving temporarily disabled */ + (void)ctx;(void)block;(void)shift; + return false; +#else char* new_start; union buflib_data *new_block, *tmp = block[1].handle; struct buflib_callbacks *ops = block[2].ops; @@ -198,6 +202,7 @@ move_block(struct buflib_context* ctx, union buflib_data* block, int shift) memmove(new_block, block, block->val * sizeof(union buflib_data)); return true; +#endif } /* Compact allocations and handle table, adjusting handle pointers as needed. -- 2.11.4.GIT