Generic Trace Generator (GTG)
0.1
Main Page
Modules
Data Structures
Files
File List
Globals
inc
GTGMemory.h
Go to the documentation of this file.
1
9
#ifndef GTG_MEMORY_H
10
#define GTG_MEMORY_H
11
12
#include <stdlib.h>
13
14
19
struct
gtg_memory
{
20
void
*
first_mem
;
21
void
*
current_mem
;
22
size_t
block_len
;
23
long
mem_len
;
24
void
*
first_free
;
25
long
first_new
;
26
long
nb_allocated
;
27
};
28
typedef
struct
gtg_memory
*
gtg_memory_t
;
29
38
void
gtg_block_memory_init
(gtg_memory_t *memory,
size_t
block_size,
long
initial_block_number);
39
47
void
*
gtg_block_malloc
(gtg_memory_t memory);
48
57
void
gtg_block_free
(gtg_memory_t memory,
void
*ptr);
58
59
#endif
Generated on Sun Mar 16 2014 14:57:03 for Generic Trace Generator (GTG) by
1.8.1.2