OSDN Git Service

attempted font system added
[proj16/16.git] / 16 / v2 / source / ENGINE / A_MEMORY.H
1 /*\r
2 Copyright (C) 1998 BJ Eirich (aka vecna)\r
3 This program is free software; you can redistribute it and/or\r
4 modify it under the terms of the GNU General Public License\r
5 as published by the Free Software Foundation; either version 2\r
6 of the License, or (at your option) any later version.\r
7 This program is distributed in the hope that it will be useful,\r
8 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r
10 See the GNU General Public Lic\r
11 See the GNU General Public License for more details.\r
12 You should have received a copy of the GNU General Public License\r
13 along with this program; if not, write to the Free Software\r
14 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
15 */\r
16 \r
17 #ifndef MEMORY_H\r
18 #define MEMORY_H\r
19 \r
20 extern void *valloc(int amount, char *desc, int owner);\r
21 extern void *qvalloc(int amount);\r
22 extern void qvfree(void *ptr);\r
23 extern int  TotalBytesAllocated(void);\r
24 extern int  FindChunk(void *pointer);\r
25 extern void FreeChunk(int i);\r
26 extern int  vfree(void *pointer);\r
27 extern void FreeByOwner(int owner);\r
28 extern void MemReport(void);\r
29 extern int  ChunkIntegrity(int i);\r
30 extern void CheckCorruption(void);\r
31 \r
32 // Standardized OID (Owner ID) values\r
33 \r
34 #define OID_TEMP    0\r
35 #define OID_VFILE   1\r
36 #define OID_IMAGE   2\r
37 #define OID_MISC    3\r
38 #define OID_MAP     4\r
39 #define OID_VC      5\r
40 \r
41 #endif // MEMORY_H\r