/[guile]/guile/guile-core/devel/memory.text
ViewVC logotype

Diff of /guile/guile-core/devel/memory.text

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mvo, Mon Jan 14 20:45:36 2002 UTC revision 1.4 by mvo, Mon Feb 11 16:29:20 2002 UTC
# Line 71  everybody else to systematically review Line 71  everybody else to systematically review
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
# Line 114  everybody else to systematically review Line 114  everybody else to systematically review
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    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26