140,8 → 140,18 |
parm [bx] [dx] [cx] [di] \ |
value [ax] |
|
unsigned short dos_resizeblock(unsigned short siz, unsigned short segn); |
|
#pragma aux dos_resizeblock = \ |
"mov ah, 0x4a" \ |
"int 0x21" \ |
"jc done" \ |
"xor ax, ax" \ |
"done:" \ |
parm [bx] [es] \ |
value [ax] |
|
|
/***************************************************************************** |
* functions * |
*****************************************************************************/ |
198,7 → 208,7 |
struct line far *newptr; |
|
/* try resizing the block (much faster) */ |
if (mdr_dos_resizeblock((sizeof(struct line) + newsiz + 15) / 16, FP_SEG(db->cursor)) == 0) return(0); |
if (dos_resizeblock((sizeof(struct line) + newsiz + 15) / 16, FP_SEG(db->cursor)) == 0) return(0); |
|
/* create a new block and copy data over */ |
newptr = line_calloc(newsiz); |