Home | History | Annotate | Download | only in unix

Lines Matching defs:memory

28   /* memory-mapping includes and definitions */
75 /* MEMORY MANAGEMENT INTERFACE */
86 /* The memory allocation function. */
89 /* memory :: A pointer to the memory object. */
97 ft_alloc( FT_Memory memory,
100 FT_UNUSED( memory );
112 /* The memory reallocation function. */
115 /* memory :: A pointer to the memory object. */
117 /* cur_size :: The current size of the allocated memory block. */
121 /* block :: The current address of the block in memory. */
124 /* The address of the reallocated memory block. */
127 ft_realloc( FT_Memory memory,
132 FT_UNUSED( memory );
145 /* The memory release function. */
148 /* memory :: A pointer to the memory object. */
150 /* block :: The address of block in memory to be freed. */
153 ft_free( FT_Memory memory,
156 FT_UNUSED( memory );
315 FT_ERROR(( " could not `alloc' memory\n" ));
376 ft_mem_debug_init( FT_Memory memory );
379 ft_mem_debug_done( FT_Memory memory );
389 FT_Memory memory;
392 memory = (FT_Memory)malloc( sizeof ( *memory ) );
393 if ( memory )
395 memory->user = 0;
396 memory->alloc = ft_alloc;
397 memory->realloc = ft_realloc;
398 memory->free = ft_free;
400 ft_mem_debug_init( memory );
404 return memory;
411 FT_Done_Memory( FT_Memory memory )
414 ft_mem_debug_done( memory );
416 memory->free( memory, memory );