Home | History | Annotate | Download | only in base

Lines Matching defs:memory

21   /* low-level, i.e. memory management, i/o access as well as thread       */
39 /* MEMORY MANAGEMENT INTERFACE */
58 /* The memory allocation function. */
61 /* memory :: A pointer to the memory object. */
69 ft_alloc( FT_Memory memory,
72 FT_UNUSED( memory );
84 /* The memory reallocation function. */
87 /* memory :: A pointer to the memory object. */
89 /* cur_size :: The current size of the allocated memory block. */
93 /* block :: The current address of the block in memory. */
96 /* The address of the reallocated memory block. */
99 ft_realloc( FT_Memory memory,
104 FT_UNUSED( memory );
117 /* The memory release function. */
120 /* memory :: A pointer to the memory object. */
122 /* block :: The address of block in memory to be freed. */
125 ft_free( FT_Memory memory,
128 FT_UNUSED( memory );
276 ft_mem_debug_init( FT_Memory memory );
279 ft_mem_debug_done( FT_Memory memory );
289 FT_Memory memory;
292 memory = (FT_Memory)ft_smalloc( sizeof ( *memory ) );
293 if ( memory )
295 memory->user = NULL;
296 memory->alloc = ft_alloc;
297 memory->realloc = ft_realloc;
298 memory->free = ft_free;
300 ft_mem_debug_init( memory );
304 return memory;
311 FT_Done_Memory( FT_Memory memory )
314 ft_mem_debug_done( memory );
316 ft_sfree( memory );