Implementation of _expand and _msize.

svn path=/trunk/; revision=6906
This commit is contained in:
Filip Navara 2003-12-07 22:59:13 +00:00
parent 24c9fab813
commit 088e628e66
2 changed files with 19 additions and 3 deletions

View file

@ -1,4 +1,4 @@
; $Id: msvcrt.def,v 1.25 2003/10/05 18:13:27 navaraf Exp $ ; $Id: msvcrt.def,v 1.26 2003/12/07 22:59:13 navaraf Exp $
; ;
; ReactOS MSVCRT Compatibility Library ; ReactOS MSVCRT Compatibility Library
; ;
@ -258,7 +258,7 @@ _execve
_execvp _execvp
_execvpe _execvpe
_exit _exit
;_expand _expand
_fcloseall _fcloseall
_fcvt _fcvt
_fdopen _fdopen
@ -443,7 +443,7 @@ _memicmp
_mkdir _mkdir
_mktemp _mktemp
;_mktime64 ;_mktime64
;_msize _msize
_nextafter _nextafter
_onexit _onexit
_open _open

View file

@ -69,6 +69,22 @@ void* realloc(void* _ptr, size_t _size)
return HeapReAlloc(hHeap, 0, _ptr, _size); return HeapReAlloc(hHeap, 0, _ptr, _size);
} }
/*
* @implemented
*/
void* _expand(void* _ptr, size_t _size)
{
return HeapReAlloc(GetProcessHeap(), HEAP_REALLOC_IN_PLACE_ONLY, _ptr, _size);
}
/*
* @implemented
*/
size_t _msize(void* _ptr)
{
return HeapSize(GetProcessHeap(), 0, _ptr);
}
/* ?_set_new_mode@@YAHH@Z (MSVCRT.@) */ /* ?_set_new_mode@@YAHH@Z (MSVCRT.@) */
int MSVCRT__set_new_mode(int mode) int MSVCRT__set_new_mode(int mode)
{ {