1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/sourcepawn/compiler/sctracker.h Sun Oct 15 20:26:51 2006 +0000
1.3 @@ -0,0 +1,26 @@
1.4 +#ifndef _INCLUDE_SOURCEPAWN_COMPILER_TRACKER_H_
1.5 +#define _INCLUDE_SOURCEPAWN_COMPILER_TRACKER_H_
1.6 +
1.7 +#define HEAPUSE_STATIC 0
1.8 +#define HEAPUSE_DYNAMIC 1
1.9 +
1.10 +typedef struct heapuse_s {
1.11 + int type; /* HEAPUSE_STATIC or HEAPUSE_DYNAMIC */
1.12 + int size; /* size of array for static (0 for dynamic) */
1.13 + struct heapuse_s *prev; /* previous array on the list */
1.14 +} heapuse_t;
1.15 +
1.16 +typedef struct heapuse_list_s {
1.17 + struct heapuse_list_s *prev; /* last used list */
1.18 + heapuse_t *head; /* head of the current list */
1.19 +} heapuse_list_t;
1.20 +
1.21 +extern heapuse_list_t *heapusage;
1.22 +
1.23 +void pushheaplist();
1.24 +void freeheapusage(heapuse_list_t *heap);
1.25 +heapuse_list_t *popsaveheaplist();
1.26 +void popheaplist();
1.27 +int markheap(int type, int size);
1.28 +
1.29 +#endif //_INCLUDE_SOURCEPAWN_COMPILER_TRACKER_H_