X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_hc.h;h=010d04f29011292c3f5915b125fe7e6c6b178750;hb=a565be31ce92d6168ae6983042da75b0b683e52b;hp=36b95841ea0b8ee38a1b74985a00c41ba3e12a7e;hpb=4b957f5e39b063de7e50121ce333b84413407820;p=16.git diff --git a/src/lib/16_hc.h b/src/lib/16_hc.h index 36b95841..010d04f2 100755 --- a/src/lib/16_hc.h +++ b/src/lib/16_hc.h @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2019 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -34,23 +34,20 @@ typedef struct heapusage int heap_status; } hc_use_t; -#ifdef __BORLANDC__ -#if 0 -/*typedef */struct _heapinfo -{ - int _far *_pentry; //- heap entry pointer - size_t _size; //- size of heap entry - int _useflag; //- entry in use return value -};// _heapinfo_t; +#ifdef __WATCOMC__ +#define NPTR __near #endif +#ifdef __BORLANDC__ +#define NPTR + #define _HEAPBADBEGIN 2 /* heap header is corrupted */ #define _HEAPBADNODE 3 /* heap entry is corrupted */ #define _HEAPBADPTR 5 /* invalid heap entry pointer (_heapwalk) */ #endif //long HC_Newfarcoreleft(); -void __near* HC_LargestFreeBlock(size_t* Size); +void NPTR* HC_LargestFreeBlock(size_t* Size); size_t HC_coreleft(void); void far* HC_LargestFarFreeBlock(dword* Size); unsigned long HC_farcoreleft(void);