X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_hc.h;h=86c6ff12e2154670b3096ed8e75e6feba183c89b;hb=34abe02e0e49c2b73912babf54fc63b5cdc56284;hp=d9677d1087bb71fc04dfc266cf4d638f2ae914a1;hpb=591b42161c7fe70f89f8dac6c8afa6e6fb7cb1f8;p=16.git diff --git a/src/lib/16_hc.h b/src/lib/16_hc.h old mode 100644 new mode 100755 index d9677d10..86c6ff12 --- a/src/lib/16_hc.h +++ b/src/lib/16_hc.h @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 * * This file is part of Project 16. * @@ -28,9 +28,12 @@ #include "src/lib/16_head.h" -extern int heaphandle; - +#ifdef __BORLANDC__ +void * LargestFreeBlock(size_t* Size); +#endif +#ifdef __WATCOMC__ void __near* LargestFreeBlock(size_t* Size); +#endif size_t _coreleft(void); void far* LargestFarFreeBlock(size_t* Size); size_t _farcoreleft(void); @@ -41,11 +44,11 @@ size_t _hugecoreleft(void); size_t GetFreeSize(void); size_t GetFarFreeSize(void); size_t GetNearFreeSize(void); -void heapdump(void); -void heapstat(int heap_status, byte *str); +void heapdump(global_game_variables_t *gvar); +void heapstat(global_game_variables_t *gvar, int heap_status, byte *str); void heapstat0(int heap_status); -void HC_OpenDebug(); -void HC_CloseDebug(); +void HC_OpenDebug(global_game_variables_t *gvar); +void HC_CloseDebug(global_game_variables_t *gvar); #endif /* __16HC__ */