Commit 926433fa authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

include: Add corecrt_malloc.h.

parent 3797a664
...@@ -474,6 +474,7 @@ SOURCES = \ ...@@ -474,6 +474,7 @@ SOURCES = \
msvcrt/conio.h \ msvcrt/conio.h \
msvcrt/corecrt.h \ msvcrt/corecrt.h \
msvcrt/corecrt_io.h \ msvcrt/corecrt_io.h \
msvcrt/corecrt_malloc.h \
msvcrt/corecrt_startup.h \ msvcrt/corecrt_startup.h \
msvcrt/corecrt_stdio_config.h \ msvcrt/corecrt_stdio_config.h \
msvcrt/corecrt_wctype.h \ msvcrt/corecrt_wctype.h \
......
/*
* Heap definitions
*
* Copyright 2001 Francois Gouget.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_CORECRT_MALLOC_H
#define __WINE_CORECRT_MALLOC_H
#include <corecrt.h>
#ifdef __cplusplus
extern "C" {
#endif
_ACRTIMP void* __cdecl calloc(size_t,size_t);
_ACRTIMP void __cdecl free(void*);
_ACRTIMP void* __cdecl malloc(size_t);
_ACRTIMP void* __cdecl realloc(void*,size_t);
_ACRTIMP void* __cdecl _expand(void*,size_t);
_ACRTIMP size_t __cdecl _msize(void*);
_ACRTIMP void __cdecl _aligned_free(void*);
_ACRTIMP void* __cdecl _aligned_malloc(size_t,size_t);
_ACRTIMP void* __cdecl _aligned_offset_malloc(size_t,size_t,size_t);
_ACRTIMP void* __cdecl _aligned_realloc(void*,size_t,size_t);
_ACRTIMP void* __cdecl _aligned_offset_realloc(void*,size_t,size_t,size_t);
#ifdef __cplusplus
}
#endif
#endif /* __WINE_CORECRT_MALLOC_H */
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#define __WINE_MALLOC_H #define __WINE_MALLOC_H
#include <corecrt.h> #include <corecrt.h>
#include <corecrt_malloc.h>
/* heap function constants */ /* heap function constants */
#define _HEAPEMPTY -1 #define _HEAPEMPTY -1
...@@ -54,25 +55,12 @@ extern unsigned int _amblksiz; ...@@ -54,25 +55,12 @@ extern unsigned int _amblksiz;
extern "C" { extern "C" {
#endif #endif
_ACRTIMP void* __cdecl _expand(void*,size_t);
_ACRTIMP int __cdecl _heapadd(void*,size_t); _ACRTIMP int __cdecl _heapadd(void*,size_t);
_ACRTIMP int __cdecl _heapchk(void); _ACRTIMP int __cdecl _heapchk(void);
_ACRTIMP int __cdecl _heapmin(void); _ACRTIMP int __cdecl _heapmin(void);
_ACRTIMP int __cdecl _heapset(unsigned int); _ACRTIMP int __cdecl _heapset(unsigned int);
_ACRTIMP size_t __cdecl _heapused(size_t*,size_t*); _ACRTIMP size_t __cdecl _heapused(size_t*,size_t*);
_ACRTIMP int __cdecl _heapwalk(_HEAPINFO*); _ACRTIMP int __cdecl _heapwalk(_HEAPINFO*);
_ACRTIMP size_t __cdecl _msize(void*);
_ACRTIMP void* __cdecl calloc(size_t,size_t);
_ACRTIMP void __cdecl free(void*);
_ACRTIMP void* __cdecl malloc(size_t);
_ACRTIMP void* __cdecl realloc(void*,size_t);
_ACRTIMP void __cdecl _aligned_free(void*);
_ACRTIMP void* __cdecl _aligned_malloc(size_t,size_t);
_ACRTIMP void* __cdecl _aligned_offset_malloc(size_t,size_t,size_t);
_ACRTIMP void* __cdecl _aligned_realloc(void*,size_t,size_t);
_ACRTIMP void* __cdecl _aligned_offset_realloc(void*,size_t,size_t,size_t);
_ACRTIMP size_t __cdecl _get_sbh_threshold(void); _ACRTIMP size_t __cdecl _get_sbh_threshold(void);
_ACRTIMP int __cdecl _set_sbh_threshold(size_t size); _ACRTIMP int __cdecl _set_sbh_threshold(size_t size);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#ifndef __WINE_STDLIB_H #ifndef __WINE_STDLIB_H
#define __WINE_STDLIB_H #define __WINE_STDLIB_H
#include <corecrt_malloc.h>
#include <corecrt_wstdlib.h> #include <corecrt_wstdlib.h>
#include <limits.h> #include <limits.h>
...@@ -208,23 +209,19 @@ _ACRTIMP int __cdecl atoi(const char*); ...@@ -208,23 +209,19 @@ _ACRTIMP int __cdecl atoi(const char*);
_ACRTIMP int __cdecl _atoi_l(const char*,_locale_t); _ACRTIMP int __cdecl _atoi_l(const char*,_locale_t);
_ACRTIMP __msvcrt_long __cdecl atol(const char*); _ACRTIMP __msvcrt_long __cdecl atol(const char*);
_ACRTIMP __int64 __cdecl atoll(const char*); _ACRTIMP __int64 __cdecl atoll(const char*);
_ACRTIMP void* __cdecl calloc(size_t,size_t);
#ifndef __i386__ #ifndef __i386__
_ACRTIMP div_t __cdecl div(int,int); _ACRTIMP div_t __cdecl div(int,int);
_ACRTIMP ldiv_t __cdecl ldiv(__msvcrt_long,__msvcrt_long); _ACRTIMP ldiv_t __cdecl ldiv(__msvcrt_long,__msvcrt_long);
#endif #endif
_ACRTIMP lldiv_t __cdecl lldiv(__int64,__int64); _ACRTIMP lldiv_t __cdecl lldiv(__int64,__int64);
_ACRTIMP DECLSPEC_NORETURN void __cdecl exit(int); _ACRTIMP DECLSPEC_NORETURN void __cdecl exit(int);
_ACRTIMP void __cdecl free(void*);
_ACRTIMP char* __cdecl getenv(const char*); _ACRTIMP char* __cdecl getenv(const char*);
_ACRTIMP __msvcrt_long __cdecl labs(__msvcrt_long); _ACRTIMP __msvcrt_long __cdecl labs(__msvcrt_long);
_ACRTIMP __int64 __cdecl llabs(__int64); _ACRTIMP __int64 __cdecl llabs(__int64);
_ACRTIMP void* __cdecl malloc(size_t);
_ACRTIMP int __cdecl mblen(const char*,size_t); _ACRTIMP int __cdecl mblen(const char*,size_t);
_ACRTIMP void __cdecl perror(const char*); _ACRTIMP void __cdecl perror(const char*);
_ACRTIMP int __cdecl rand(void); _ACRTIMP int __cdecl rand(void);
_ACRTIMP errno_t __cdecl rand_s(unsigned int*); _ACRTIMP errno_t __cdecl rand_s(unsigned int*);
_ACRTIMP void* __cdecl realloc(void*,size_t);
_ACRTIMP void __cdecl srand(unsigned int); _ACRTIMP void __cdecl srand(unsigned int);
_ACRTIMP float __cdecl strtof(const char*,char**); _ACRTIMP float __cdecl strtof(const char*,char**);
_ACRTIMP double __cdecl strtod(const char*,char**); _ACRTIMP double __cdecl strtod(const char*,char**);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment