Last change
on this file since 238 was
233,
checked in by meunier, 12 years ago
|
Added the malloc files, forgotten at the previous commit...
|
File size:
888 bytes
|
Line | |
---|
1 | //////////////////////////////////////////////////////////////////////////// |
---|
2 | // File : malloc_private.h |
---|
3 | // Date : 05/03/2013 |
---|
4 | // Author : Jean-Baptiste Bréjon |
---|
5 | // Copyright (c) UPMC-LIP6 |
---|
6 | //////////////////////////////////////////////////////////////////////////// |
---|
7 | |
---|
8 | #ifndef _MALLOC_PRIVATE_H_ |
---|
9 | #define _MALLOC_PRIVATE_H_ |
---|
10 | |
---|
11 | |
---|
12 | typedef struct heap_linked_list { |
---|
13 | struct heap_linked_list * next; |
---|
14 | unsigned int chunk_length; |
---|
15 | } heap_ll; |
---|
16 | |
---|
17 | #if MALLOC_SELECTED == 1 || MALLOC_SELECTED == 2 |
---|
18 | static heap_ll * get_prev_fit_chunk(unsigned int size); |
---|
19 | #else |
---|
20 | int get_prev_fit_chunk(unsigned int size); |
---|
21 | #endif |
---|
22 | |
---|
23 | static void print_all_heap(void); |
---|
24 | static void frag(int turn); |
---|
25 | |
---|
26 | #endif |
---|
27 | |
---|
28 | // Local Variables: |
---|
29 | // tab-width: 4 |
---|
30 | // c-basic-offset: 4 |
---|
31 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
32 | // indent-tabs-mode: nil |
---|
33 | // End: |
---|
34 | // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.