Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
926433fa
Commit
926433fa
authored
Dec 07, 2022
by
Alex Henrie
Committed by
Alexandre Julliard
Dec 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add corecrt_malloc.h.
parent
3797a664
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
17 deletions
+50
-17
Makefile.in
include/Makefile.in
+1
-0
corecrt_malloc.h
include/msvcrt/corecrt_malloc.h
+47
-0
malloc.h
include/msvcrt/malloc.h
+1
-13
stdlib.h
include/msvcrt/stdlib.h
+1
-4
No files found.
include/Makefile.in
View file @
926433fa
...
@@ -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
\
...
...
include/msvcrt/corecrt_malloc.h
0 → 100644
View file @
926433fa
/*
* 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 */
include/msvcrt/malloc.h
View file @
926433fa
...
@@ -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
);
...
...
include/msvcrt/stdlib.h
View file @
926433fa
...
@@ -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
**
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment