Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
1c4131ba
Commit
1c4131ba
authored
Apr 28, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
May 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add WINE_ALLOC_SIZE attribute to heap_calloc().
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f214d0c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
heap.h
include/wine/heap.h
+1
-1
winnt.h
include/winnt.h
+2
-2
No files found.
include/wine/heap.h
View file @
1c4131ba
...
@@ -46,7 +46,7 @@ static inline void heap_free(void *mem)
...
@@ -46,7 +46,7 @@ static inline void heap_free(void *mem)
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
}
}
static
inline
void
*
heap_calloc
(
SIZE_T
count
,
SIZE_T
size
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
,
2
)
heap_calloc
(
SIZE_T
count
,
SIZE_T
size
)
{
{
SIZE_T
len
=
count
*
size
;
SIZE_T
len
=
count
*
size
;
...
...
include/winnt.h
View file @
1c4131ba
...
@@ -199,9 +199,9 @@ extern "C" {
...
@@ -199,9 +199,9 @@ extern "C" {
#endif
#endif
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
#define __WINE_ALLOC_SIZE(
x) __attribute__((__alloc_size__(x
)))
#define __WINE_ALLOC_SIZE(
...) __attribute__((__alloc_size__(__VA_ARGS__
)))
#else
#else
#define __WINE_ALLOC_SIZE(
x
)
#define __WINE_ALLOC_SIZE(
...
)
#endif
#endif
/* Anonymous union/struct handling */
/* Anonymous union/struct handling */
...
...
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