Mercurial > hg > xemacs-beta
comparison src/mc-alloc.h @ 4117:229bd619740a
[xemacs-hg @ 2007-08-15 11:06:02 by crestani]
2007-08-15 Marcus Crestani <crestani@xemacs.org>
* buffer.c (Fkill_buffer):
* console-tty.c (free_tty_console_struct):
* device-gtk.c (free_gtk_device_struct):
* device-msw.c (mswindows_delete_device):
* device-msw.c (msprinter_delete_device):
* device-x.c (free_x_device_struct):
* device-x.c (x_delete_device):
* dynarr.c (Dynarr_lisp_realloc):
* dynarr.c (Dynarr_free):
* elhash.c:
* elhash.c (finalize_hash_table):
* elhash.c (resize_hash_table):
* elhash.c (pdump_reorganize_hash_table):
* extents.c (gap_array_delete_marker):
* frame-gtk.c (gtk_delete_frame):
* frame-msw.c (mswindows_delete_frame):
* frame-x.c (x_delete_frame):
* glyphs.c (check_for_ignored_expose):
* mc-alloc.c (mc_realloc_1):
* mc-alloc.h:
* objects-tty.c (tty_finalize_color_instance):
* objects-tty.c (tty_finalize_font_instance):
* objects-tty.c (console_type_create_objects_tty):
* syntax.c:
* syntax.c (uninit_buffer_syntax_cache):
* vdb.c (Ftest_vdb): Remove all calls to mc_free.
author | crestani |
---|---|
date | Wed, 15 Aug 2007 11:06:10 +0000 |
parents | 1043bbfa24cf |
children | 1fae11d56ad2 |
comparison
equal
deleted
inserted
replaced
4116:9a42c5e5eb4e | 4117:229bd619740a |
---|---|
46 objects that are allocated in one consecutive block of memory with | 46 objects that are allocated in one consecutive block of memory with |
47 each element being a fully qualified object---that is, it has a | 47 each element being a fully qualified object---that is, it has a |
48 Lisp object header and a mark bit. Objects like hash tables and | 48 Lisp object header and a mark bit. Objects like hash tables and |
49 dynamic arrays use this function. */ | 49 dynamic arrays use this function. */ |
50 void *mc_alloc_array (size_t size, EMACS_INT elemcount); | 50 void *mc_alloc_array (size_t size, EMACS_INT elemcount); |
51 | |
52 /* Free the object pointed to by ptr and make its memory re-usable | |
53 again. The memory must have been returned by a previous call to | |
54 mc_alloc(). This can be used to free memory explicitly, outside a | |
55 garbage collection. */ | |
56 void mc_free (void *ptr); | |
57 | 51 |
58 /* Modify the size of the memory block pointed to by ptr. Return the | 52 /* Modify the size of the memory block pointed to by ptr. Return the |
59 address of the new block of given size. The content of the memory | 53 address of the new block of given size. The content of the memory |
60 block will be unchanged to the minimum of the old and new sizes: if | 54 block will be unchanged to the minimum of the old and new sizes: if |
61 the new size is smaller, the overlaying data is cut off; if the new | 55 the new size is smaller, the overlaying data is cut off; if the new |