[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] rounding off the heap size_t change to allow initial l
From: |
Andrei Barbu |
Subject: |
[Chicken-hackers] rounding off the heap size_t change to allow initial large heaps |
Date: |
Sun, 24 Mar 2013 16:32:56 -0400 |
Hi,
I've attached a patch that allows for initial large heaps given that
heap is now a size_t.
The original patch did not update CHICKEN_initialize to have a size_t heap.
-C_fctexport int CHICKEN_initialize(int heap, int stack, int symbols,
void *toplevel);
+C_fctexport int CHICKEN_initialize(size_t heap, int stack, int
symbols, void *toplevel);
The patch also did not update the debugging message in
C_set_or_change_heap_size.
- C_dbg(C_text("debug"), C_text("heap resized to %d bytes\n"), (int)heap);
+ C_dbg(C_text("debug"), C_text("heap resized to %zu bytes\n"), heap);
%zu is a C99-ism, I don't know if people are ok with that.
Andrei
initial-heap-size.diff
Description: Binary data
- [Chicken-hackers] rounding off the heap size_t change to allow initial large heaps,
Andrei Barbu <=