mirror of
https://github.com/FDOS/kernel.git
synced 2025-05-05 07:10:20 +02:00
dosnames.c: macro to function conversion, optimisation and clean-up dyninit.c: "what" passed to the DynAlloc() function only in DEBUG mode inithma.c: InstallVDISK() function inlined, optimised and cleaned up prf.c: fixed long argument bug introduced in the previous optimisation git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1035 6ac86273-5f31-0410-b378-82cca8765d1b
26 lines
587 B
C
26 lines
587 B
C
/*
|
|
DynData.h
|
|
|
|
declarations for dynamic NEAR data allocations
|
|
|
|
the DynBuffer must initially be large enough to hold
|
|
the PreConfig data.
|
|
after the disksystem has been initialized, the kernel is
|
|
moveable and Dyn.Buffer resizable, but not before
|
|
*/
|
|
|
|
#ifdef DEBUG
|
|
void far *DynAlloc(char *what, unsigned num, unsigned size);
|
|
#else
|
|
void far *_DynAlloc(unsigned num, unsigned size);
|
|
#define DynAlloc(what, num, size) (_DynAlloc((num), (size)))
|
|
#endif
|
|
|
|
void far *DynLast(void);
|
|
void DynFree(void *ptr);
|
|
|
|
struct DynS {
|
|
unsigned Allocated;
|
|
char Buffer[1];
|
|
};
|