LEFT | RIGHT |
| 1 /* |
| 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
| 3 * |
| 4 * This program is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU General Public License |
| 6 * as published by the Free Software Foundation; either version 2 |
| 7 * of the License, or (at your option) any later version. |
| 8 * |
| 9 * This program is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with this program; if not, write to the Free Software Foundation, |
| 16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 * |
| 18 * Contributor(s): Tao Ju |
| 19 * |
| 20 * ***** END GPL LICENSE BLOCK ***** |
| 21 */ |
| 22 |
1 #ifndef MEMORYALLOCATOR_H | 23 #ifndef MEMORYALLOCATOR_H |
2 #define MEMORYALLOCATOR_H | 24 #define MEMORYALLOCATOR_H |
3 | 25 |
4 #include <stdio.h> | 26 #include <stdio.h> |
5 #include <stdlib.h> | 27 #include <stdlib.h> |
6 | 28 |
7 #define HEAP_BASE 16 | 29 #define HEAP_BASE 16 |
8 #define UCHAR unsigned char | 30 #define UCHAR unsigned char |
9 | 31 |
10 /** | 32 /** |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 return HEAP_UNIT * datablocknum ; | 210 return HEAP_UNIT * datablocknum ; |
189 }; | 211 }; |
190 | 212 |
191 int getBytes( ) | 213 int getBytes( ) |
192 { | 214 { |
193 return N ;······ | 215 return N ;······ |
194 }; | 216 }; |
195 }; | 217 }; |
196 | 218 |
197 #endif | 219 #endif |
LEFT | RIGHT |