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
e3aa47c3
Commit
e3aa47c3
authored
Feb 17, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Annotate xmalloc() and xrealloc() with allocation size attribute.
parent
d5936f42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
winetest.h
programs/winetest/winetest.h
+7
-3
No files found.
programs/winetest/winetest.h
View file @
e3aa47c3
...
@@ -28,9 +28,6 @@
...
@@ -28,9 +28,6 @@
void
fatal
(
const
char
*
msg
);
void
fatal
(
const
char
*
msg
);
void
warning
(
const
char
*
msg
);
void
warning
(
const
char
*
msg
);
void
*
xmalloc
(
size_t
len
);
void
*
xrealloc
(
void
*
op
,
size_t
len
);
char
*
xstrdup
(
const
char
*
str
);
void
xprintf
(
const
char
*
fmt
,
...);
void
xprintf
(
const
char
*
fmt
,
...);
char
*
vstrmake
(
size_t
*
lenp
,
va_list
ap
);
char
*
vstrmake
(
size_t
*
lenp
,
va_list
ap
);
char
*
strmake
(
size_t
*
lenp
,
...);
char
*
strmake
(
size_t
*
lenp
,
...);
...
@@ -45,6 +42,13 @@ extern HANDLE logfile;
...
@@ -45,6 +42,13 @@ extern HANDLE logfile;
#include <windows.h>
#include <windows.h>
#ifndef __WINE_ALLOC_SIZE
#define __WINE_ALLOC_SIZE(x)
#endif
void
*
xmalloc
(
size_t
len
)
__WINE_ALLOC_SIZE
(
1
);
void
*
xrealloc
(
void
*
op
,
size_t
len
)
__WINE_ALLOC_SIZE
(
2
);
char
*
xstrdup
(
const
char
*
str
);
enum
report_type
{
enum
report_type
{
R_STATUS
=
0
,
R_STATUS
=
0
,
R_PROGRESS
,
R_PROGRESS
,
...
...
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