71 |
[ Note: this function will not consider the memory block to be |
[ Note: this function will not consider the memory block to be |
72 |
under GC control. ] |
under GC control. ] |
73 |
|
|
74 |
Function: void *scm_realloc (void *mem, size_t newsize); |
Function: void *scm_realloc (void *mem, size_t new_size); |
75 |
|
|
76 |
Change the size of the memory block at MEM to NEWSIZE. A new |
Change the size of the memory block at MEM to NEWSIZE. A new |
77 |
pointer is returned. When NEWSIZE is 0 this is the same as |
pointer is returned. When NEWSIZE is 0 this is the same as |
78 |
calling scm_free on MEM and NULL is returned. When MEM is |
calling free on MEM and NULL is returned. When MEM is NULL, |
79 |
NULL, this function behaves like scm_malloc and allocates a |
this function behaves like scm_malloc and allocates a new |
80 |
new block of size SIZE. |
block of size SIZE. |
81 |
|
|
82 |
When not enough memory is available, signal an error. This |
When not enough memory is available, signal an error. This |
83 |
function runs the GC to free up some memory when it deems it |
function runs the GC to free up some memory when it deems it |
114 |
on and run much less efficiently than it could. |
on and run much less efficiently than it could. |
115 |
|
|
116 |
Function: void *scm_gc_malloc (size_t size, const char *what); |
Function: void *scm_gc_malloc (size_t size, const char *what); |
117 |
Function: void *scm_gc_realloc (void *mem, size_t size, |
Function: void *scm_gc_realloc (void *mem, size_t old_size, |
118 |
const char *what); |
size_t new_size, const char *what); |
119 |
|
|
120 |
Like scm_malloc, but also call scm_gc_register_collectable_memory. |
Like scm_malloc or scm_realloc, but also call |
121 |
|
scm_gc_register_collectable_memory. |
122 |
|
|
123 |
Function: void scm_gc_free (void *mem, size_t size, const char *what); |
Function: void scm_gc_free (void *mem, size_t size, const char *what); |
124 |
|
|