X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_t.h;h=c24ddb37d1960cb3ba8afd0673fe606fd338db4d;hb=6021fc3f27b895d382fbd30488ead35657e39196;hp=db1871f7f5d05d14f860eab9b45e45d7636c7abc;hpb=11757203baaa7f57f795025a3326e97a4a5f2b70;p=16.git diff --git a/src/lib/16_t.h b/src/lib/16_t.h index db1871f7..c24ddb37 100755 --- a/src/lib/16_t.h +++ b/src/lib/16_t.h @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2018 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -56,9 +56,6 @@ MK_FP(segment value, 0)*/ //typedef unsigned short _seg; // it will contains segment value (as Borland _seg) #define _seg __based( void ) #endif - #ifdef __BORLANDC__ -#define _memavl() coreleft() - #endif typedef void _seg * memptr; @@ -72,6 +69,18 @@ typedef void _seg * memptr; //#define SDFPTRANDPERCONV & //#define OBTPTRANDPERCONV & //#define SDTPTRANDPERCONV & + +#define _nmalloc malloc +#define _nfree free + +#define _nheapwalk heapwalk +#define _fheapwalk farheapwalk + +//heapinfo vars +#define _heapinfo heapinfo +#define _pentry ptr +#define _size size +#define _useflag in_use #endif // @@ -103,13 +112,19 @@ typedef void _seg * memptr; #define getvect _dos_getvect #define setvect _dos_setvect +#define farmalloc _fmalloc +#define farfree _ffree +#define nearmalloc _nmalloc +#define nearfree _nfree + //from http://www.verycomputer.com/3_65d875cc818b54ec_1.htm void clrscr(void); -#pragma aux clrscr= \ - " mov ah, 0fh " \ - " int 10h " \ - " xor ah, ah " \ - " int 10h " ; +#pragma aux clrscr=\ + " mov ah, 0fh "\ + " int 10h "\ + " xor ah, ah "\ + " int 10h "; + //from http://stackoverflow.com/questions/18425748/gotoxy-function-using-printf-s-position inline void gotoxy(int x,int y) { @@ -118,4 +133,6 @@ inline void gotoxy(int x,int y) } #endif +#define PFDT printf("."); + #endif/*_TYPE_H_*/