mirror of https://github.com/FDOS/kernel.git
Make unnecessary far pointers near.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@870 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
2aa4789bfc
commit
46df83483b
|
@ -112,8 +112,7 @@ void FAR * adjust_far(const void FAR * fp)
|
||||||
size is the minimum size of the block to search for,
|
size is the minimum size of the block to search for,
|
||||||
even if mode == LARGEST.
|
even if mode == LARGEST.
|
||||||
*/
|
*/
|
||||||
COUNT DosMemAlloc(UWORD size, COUNT mode, seg FAR * para,
|
COUNT DosMemAlloc(UWORD size, COUNT mode, seg *para, UWORD *asize)
|
||||||
UWORD FAR * asize)
|
|
||||||
{
|
{
|
||||||
REG mcb FAR *p;
|
REG mcb FAR *p;
|
||||||
mcb FAR *foundSeg;
|
mcb FAR *foundSeg;
|
||||||
|
@ -265,7 +264,7 @@ stopIt: /* reached from FIRST_FIT on match */
|
||||||
* Known bug: a memory area with a size of the data area of 0 (zero) is
|
* Known bug: a memory area with a size of the data area of 0 (zero) is
|
||||||
* not considered a "largest" block. <<Perhaps this is a feature ;-)>>
|
* not considered a "largest" block. <<Perhaps this is a feature ;-)>>
|
||||||
*/
|
*/
|
||||||
COUNT DosMemLargest(UWORD FAR * size)
|
COUNT DosMemLargest(UWORD *size)
|
||||||
{
|
{
|
||||||
seg dummy;
|
seg dummy;
|
||||||
*size = 0;
|
*size = 0;
|
||||||
|
|
|
@ -241,14 +241,13 @@ seg far2para(VOID FAR * p);
|
||||||
seg long2para(ULONG size);
|
seg long2para(ULONG size);
|
||||||
void FAR *add_far(void FAR * fp, unsigned off);
|
void FAR *add_far(void FAR * fp, unsigned off);
|
||||||
VOID FAR *adjust_far(const void FAR * fp);
|
VOID FAR *adjust_far(const void FAR * fp);
|
||||||
COUNT DosMemAlloc(UWORD size, COUNT mode, seg FAR * para,
|
COUNT DosMemAlloc(UWORD size, COUNT mode, seg * para, UWORD * asize);
|
||||||
UWORD FAR * asize);
|
COUNT DosMemLargest(UWORD * size);
|
||||||
COUNT DosMemLargest(UWORD FAR * size);
|
|
||||||
COUNT DosMemFree(UWORD para);
|
COUNT DosMemFree(UWORD para);
|
||||||
COUNT DosMemChange(UWORD para, UWORD size, UWORD * maxSize);
|
COUNT DosMemChange(UWORD para, UWORD size, UWORD * maxSize);
|
||||||
COUNT DosMemCheck(void);
|
COUNT DosMemCheck(void);
|
||||||
COUNT FreeProcessMem(UWORD ps);
|
COUNT FreeProcessMem(UWORD ps);
|
||||||
COUNT DosGetLargestBlock(UWORD FAR * block);
|
COUNT DosGetLargestBlock(UWORD * block);
|
||||||
VOID show_chain(void);
|
VOID show_chain(void);
|
||||||
VOID DosUmbLink(BYTE n);
|
VOID DosUmbLink(BYTE n);
|
||||||
VOID mcb_print(mcb FAR * mcbp);
|
VOID mcb_print(mcb FAR * mcbp);
|
||||||
|
@ -257,7 +256,7 @@ VOID mcb_print(mcb FAR * mcbp);
|
||||||
COUNT lfn_allocate_inode(VOID);
|
COUNT lfn_allocate_inode(VOID);
|
||||||
COUNT lfn_free_inode(COUNT handle);
|
COUNT lfn_free_inode(COUNT handle);
|
||||||
|
|
||||||
COUNT lfn_setup_inode(COUNT handle, ULONG dirstart, ULONG diroff);
|
COUNT lfn_setup_inode(COUNT handle, ULONG dirstart, UWORD diroff);
|
||||||
|
|
||||||
COUNT lfn_create_entries(COUNT handle, lfn_inode_ptr lip);
|
COUNT lfn_create_entries(COUNT handle, lfn_inode_ptr lip);
|
||||||
COUNT lfn_remove_entries(COUNT handle);
|
COUNT lfn_remove_entries(COUNT handle);
|
||||||
|
|
Loading…
Reference in New Issue