Added __p__amblksiz implementation.
This commit is contained in:
parent
6c0cd69f22
commit
8c2ba6f93c
|
@ -37,6 +37,8 @@ typedef void (*MSVCRT_new_handler_func)(unsigned long size);
|
||||||
static MSVCRT_new_handler_func MSVCRT_new_handler;
|
static MSVCRT_new_handler_func MSVCRT_new_handler;
|
||||||
static int MSVCRT_new_mode;
|
static int MSVCRT_new_mode;
|
||||||
|
|
||||||
|
/* FIXME - According to documentation it should be 8*1024, at runtime it returns 16 */
|
||||||
|
static unsigned int MSVCRT_amblksiz = 16;
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* ??2@YAPAXI@Z (MSVCRT.@)
|
* ??2@YAPAXI@Z (MSVCRT.@)
|
||||||
|
@ -281,3 +283,11 @@ void* MSVCRT_realloc(void* ptr, MSVCRT_size_t size)
|
||||||
MSVCRT_free(ptr);
|
MSVCRT_free(ptr);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*********************************************************************
|
||||||
|
* __p__amblksiz (MSVCRT.@)
|
||||||
|
*/
|
||||||
|
unsigned int* __p__amblksiz(void)
|
||||||
|
{
|
||||||
|
return &MSVCRT_amblksiz;
|
||||||
|
}
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
@ cdecl __p___wargv()
|
@ cdecl __p___wargv()
|
||||||
@ cdecl __p___winitenv()
|
@ cdecl __p___winitenv()
|
||||||
@ cdecl __p__acmdln()
|
@ cdecl __p__acmdln()
|
||||||
@ stub __p__amblksiz #()
|
@ cdecl __p__amblksiz()
|
||||||
@ cdecl __p__commode()
|
@ cdecl __p__commode()
|
||||||
@ cdecl __p__daylight() MSVCRT___p__daylight
|
@ cdecl __p__daylight() MSVCRT___p__daylight
|
||||||
@ stub __p__dstbias #()
|
@ stub __p__dstbias #()
|
||||||
|
|
|
@ -50,6 +50,9 @@ typedef struct _heapinfo
|
||||||
} _HEAPINFO;
|
} _HEAPINFO;
|
||||||
#endif /* _HEAPINFO_DEFINED */
|
#endif /* _HEAPINFO_DEFINED */
|
||||||
|
|
||||||
|
extern unsigned int* __p__amblksiz(void);
|
||||||
|
#define _amblksiz (*__p__amblksiz());
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue