mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 11:25:33 +00:00
Remove traces of old custom undo memory manager.
There were two memory management implementations, standard malloc-based, and a custom allocator. Removed in rev 2230 in the Mercurial repo.
This commit is contained in:
committed by
Thiago de Arruda
parent
d8b37824b5
commit
a21c8589ef
@@ -291,32 +291,6 @@ struct u_header {
|
||||
#define UH_CHANGED 0x01 /* b_changed flag before undo/after redo */
|
||||
#define UH_EMPTYBUF 0x02 /* buffer was empty */
|
||||
|
||||
/*
|
||||
* structures used in undo.c
|
||||
*/
|
||||
#if SIZEOF_INT > 2
|
||||
# define ALIGN_LONG /* longword alignment and use filler byte */
|
||||
# define ALIGN_SIZE (sizeof(long))
|
||||
#else
|
||||
# define ALIGN_SIZE (sizeof(short))
|
||||
#endif
|
||||
|
||||
#define ALIGN_MASK (ALIGN_SIZE - 1)
|
||||
|
||||
typedef struct m_info minfo_T;
|
||||
|
||||
/*
|
||||
* structure used to link chunks in one of the free chunk lists.
|
||||
*/
|
||||
struct m_info {
|
||||
#ifdef ALIGN_LONG
|
||||
long_u m_size; /* size of the chunk (including m_info) */
|
||||
#else
|
||||
short_u m_size; /* size of the chunk (including m_info) */
|
||||
#endif
|
||||
minfo_T *m_next; /* pointer to next free chunk in the list */
|
||||
};
|
||||
|
||||
/*
|
||||
* things used in memfile.c
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user